10 references to GetSpans
Microsoft.CodeAnalysis.EditorFeatures (8)
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (8)
64
RaiseTagsChanged(snapshot.TextBuffer, new DiffResult(added: null, removed: new(oldTagTree.
GetSpans
(snapshot).Select(s => s.Span))));
142
var allTags = treeForBuffer.
GetSpans
(e.After).ToList();
368
? oldTagTree.
GetSpans
(snapshot)
380
return oldTagTree.
GetSpans
(snapshot).Except(
424
bufferToChanges[latestBuffer] = new DiffResult(added: new(latestSpans.
GetSpans
(snapshot).Select(t => t.Span)), removed: null);
433
bufferToChanges[oldBuffer] = new DiffResult(added: null, removed: new(previousSpans.
GetSpans
(oldBuffer.CurrentSnapshot).Select(t => t.Span)));
449
var latestSpans = latestTree.
GetSpans
(snapshot);
450
var previousSpans = previousTree.
GetSpans
(snapshot);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Tagging\TagSpanIntervalTreeTests.cs (2)
33
Assert.Empty(tree.
GetSpans
(tree.Buffer.CurrentSnapshot));
41
Assert.Equal(new Span(0, 5), tree.
GetSpans
(tree.Buffer.CurrentSnapshot).Single().Span);