7 implementations of GetSpan
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.Enumerator.cs (1)
23
public TextSpan
GetSpan
(T value) => throw new System.NotImplementedException();
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\TextSpanMutableIntervalTree.cs (1)
12
public TextSpan
GetSpan
(TextSpan value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.AnchorData.cs (3)
34
TextSpan IIntervalIntrospector<AnchorData>.
GetSpan
(AnchorData value)
37
TextSpan IIntervalIntrospector<IndentationData>.
GetSpan
(IndentationData value)
40
TextSpan IIntervalIntrospector<RelativeIndentationData>.
GetSpan
(RelativeIndentationData value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\SuppressIntervalIntrospector.cs (2)
14
TextSpan IIntervalIntrospector<SuppressSpacingData>.
GetSpan
(SuppressSpacingData value)
17
TextSpan IIntervalIntrospector<SuppressWrappingData>.
GetSpan
(SuppressWrappingData value)
21 references to GetSpan
Microsoft.CodeAnalysis.CodeStyle (21)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (5)
59
values.Sort((t1, t2) => localIntrospector.
GetSpan
(t1).Start - localIntrospector.
GetSpan
(t2).Start);
79
Debug.Assert(values.IsSorted(Comparer<T>.Create((t1, t2) => localIntrospector.
GetSpan
(t1).Start - localIntrospector.
GetSpan
(t2).Start)));
227
var thisEndValue = introspector.
GetSpan
(currentNode.Value).End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (3)
104
var thisSpan = introspector.
GetSpan
(value);
124
var thisSpan = introspector.
GetSpan
(value);
137
var thisSpan = introspector.
GetSpan
(value);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (3)
123
if (introspector.
GetSpan
(witness.GetValue(tree, currentNode)).Start <= end)
126
introspector.
GetSpan
(witness.GetValue(tree, witness.GetMaxEndNode(tree, rightNode))).End >= start)
152
introspector.
GetSpan
(witness.GetValue(tree, witness.GetMaxEndNode(tree, left))).End >= start)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (3)
59
var newNodeStart = introspector.
GetSpan
(newNode.Value).Start;
73
if (newNodeStart < introspector.
GetSpan
(root.Value).Start)
137
=> introspector.
GetSpan
(value).End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (7)
47
var thisSpan = Introspector.
GetSpan
(value);
59
var thisSpan = Introspector.
GetSpan
(value);
96
if (Introspector.
GetSpan
(currentNode.Value).Start <= start)
129
var resultSpan = Introspector.
GetSpan
(result!);
130
var currentNodeSpan = Introspector.
GetSpan
(currentNode.Value);
164
Introspector.
GetSpan
(parentNode.Value).Start == Introspector.
GetSpan
(currentNode.Value).Start)