19 implementations of GetSpan
Microsoft.CodeAnalysis.EditorFeatures (3)
Classification\TotalClassificationTaggerProvider.cs (1)
270public TextSpan GetSpan(TagSpan<IClassificationTag> value)
InlineRename\TrackingSpanIntrospector.cs (1)
14public TextSpan GetSpan(ITrackingSpan value)
Shared\Tagging\Utilities\TagSpanIntervalTree.IntervalIntrospector.cs (1)
20public TextSpan GetSpan(TagSpan<TTag> value)
Microsoft.CodeAnalysis.Features (1)
Copilot\ICopilotChangeAnalysisService.cs (1)
384public TextSpan GetSpan(CodeFixCollection value)
Microsoft.CodeAnalysis.Workspaces (9)
Classification\ClassifiedSpanIntervalIntrospector.cs (1)
16public TextSpan GetSpan(ClassifiedSpan value)
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
24public TextSpan GetSpan(TextChange value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.Enumerator.cs (1)
23public TextSpan GetSpan(T value) => throw new System.NotImplementedException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\TextSpanMutableIntervalTree.cs (1)
12public TextSpan GetSpan(TextSpan value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.AnchorData.cs (3)
34TextSpan IIntervalIntrospector<AnchorData>.GetSpan(AnchorData value) 37TextSpan IIntervalIntrospector<IndentationData>.GetSpan(IndentationData value) 40TextSpan IIntervalIntrospector<RelativeIndentationData>.GetSpan(RelativeIndentationData value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\SuppressIntervalIntrospector.cs (2)
14TextSpan IIntervalIntrospector<SuppressSpacingData>.GetSpan(SuppressSpacingData value) 17TextSpan IIntervalIntrospector<SuppressWrappingData>.GetSpan(SuppressWrappingData value)
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
UtilityTest\IntervalTreeTests.cs (4)
20public TextSpan GetSpan(Tuple<int, int, T> value) 261public TextSpan GetSpan(int value) 396public TextSpan GetSpan(int value) 402public TextSpan GetSpan(char value)
Microsoft.VisualStudio.LanguageServices (2)
DocumentOutline\DocumentOutlineViewModel.IntervalIntrospector.cs (1)
19public TextSpan GetSpan(DocumentSymbolDataViewModel value)
InheritanceMargin\InheritanceGlyphManager_IntervalTreeData.cs (1)
35public TextSpan GetSpan(GlyphData data)
21 references to GetSpan
Microsoft.CodeAnalysis.Workspaces (21)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (5)
59values.Sort((t1, t2) => localIntrospector.GetSpan(t1).Start - localIntrospector.GetSpan(t2).Start); 79Debug.Assert(values.IsSorted(Comparer<T>.Create((t1, t2) => localIntrospector.GetSpan(t1).Start - localIntrospector.GetSpan(t2).Start))); 227var thisEndValue = introspector.GetSpan(currentNode.Value).End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (3)
105var thisSpan = introspector.GetSpan(value); 125var thisSpan = introspector.GetSpan(value); 138var thisSpan = introspector.GetSpan(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (3)
124if (introspector.GetSpan(witness.GetValue(tree, currentNode)).Start <= end) 127introspector.GetSpan(witness.GetValue(tree, witness.GetMaxEndNode(tree, rightNode))).End >= start) 153introspector.GetSpan(witness.GetValue(tree, witness.GetMaxEndNode(tree, left))).End >= start)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (3)
60var newNodeStart = introspector.GetSpan(newNode.Value).Start; 74if (newNodeStart < introspector.GetSpan(root.Value).Start) 138=> introspector.GetSpan(value).End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (7)
40var thisSpan = introspector.GetSpan(value); 52var thisSpan = introspector.GetSpan(value); 92if (Introspector.GetSpan(currentNode.Value).Start <= start) 125var resultSpan = Introspector.GetSpan(result!); 126var currentNodeSpan = Introspector.GetSpan(currentNode.Value); 160Introspector.GetSpan(parentNode.Value).Start == Introspector.GetSpan(currentNode.Value).Start)