9 implementations of GetSpan
Microsoft.CodeAnalysis.Workspaces (9)
Classification\ClassifiedSpanIntervalIntrospector.cs (1)
16public TextSpan GetSpan(ClassifiedSpan value)
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (1)
23public 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)
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)
104var thisSpan = introspector.GetSpan(value); 124var thisSpan = introspector.GetSpan(value); 137var thisSpan = introspector.GetSpan(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (3)
123if (introspector.GetSpan(witness.GetValue(tree, currentNode)).Start <= end) 126introspector.GetSpan(witness.GetValue(tree, witness.GetMaxEndNode(tree, rightNode))).End >= start) 152introspector.GetSpan(witness.GetValue(tree, witness.GetMaxEndNode(tree, left))).End >= start)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (3)
59var newNodeStart = introspector.GetSpan(newNode.Value).Start; 73if (newNodeStart < introspector.GetSpan(root.Value).Start) 137=> introspector.GetSpan(value).End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (7)
47var thisSpan = Introspector.GetSpan(value); 59var thisSpan = Introspector.GetSpan(value); 96if (Introspector.GetSpan(currentNode.Value).Start <= start) 129var resultSpan = Introspector.GetSpan(result!); 130var currentNodeSpan = Introspector.GetSpan(currentNode.Value); 164Introspector.GetSpan(parentNode.Value).Start == Introspector.GetSpan(currentNode.Value).Start)