21 references to GetIntersectingSpans
Microsoft.CodeAnalysis.EditorFeatures (6)
Shared\Tagging\Utilities\TagSpanIntervalTree.cs (3)
108
?
GetIntersectingSpans
(requestedSpans[0])
120
result.AddRange(
GetIntersectingSpans
(s));
132
var result =
GetIntersectingSpans
(mergedSpan);
Tagging\AbstractAsynchronousTaggerProvider.TagSource_ProduceTags.cs (3)
43
if (currentTags != null && currentTags.
GetIntersectingSpans
(new SnapshotSpan(caret.Value, 0)).Count > 0)
138
var tagsToRemove = e.Changes.SelectMany(c => treeForBuffer.
GetIntersectingSpans
(new SnapshotSpan(snapshot, c.NewSpan)));
381
spansToInvalidate.SelectMany(oldTagTree.
GetIntersectingSpans
),
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
Tagging\TagSpanIntervalTreeTests.cs (15)
51
var spans = tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 107, 0));
62
var spans = tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 112, 0));
74
Assert.Equal(50, tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 150, 50)).Count());
77
Assert.Equal(26, tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 175, 25)).Count());
88
Assert.Equal(1, tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 0, 1)).Count());
89
Assert.Equal(1, tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 50, 1)).Count());
92
Assert.Equal(2, tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 100, 1)).Count());
106
Assert.Equal(51, tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 0, 1)).Count());
120
Assert.Equal(51, tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 99, 1)).Count());
130
foreach (var tag in tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, 0, tree.Buffer.CurrentSnapshot.Length)))
141
var spans = tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, new Span(0, 0)));
149
var spans = tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, new Span(0, "goo".Length)));
157
var spans = tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, new Span(0, 1)));
165
var spans = tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, new Span(1, 0)));
173
var spans = tree.
GetIntersectingSpans
(new SnapshotSpan(tree.Buffer.CurrentSnapshot, new Span(1, 1)));