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