3 instantiations of Node
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (1)
32
result.root = Insert(result.root, new
Node
(value), in introspector);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (2)
23
root = Insert(root, new
Node
(value), introspector);
36
var newNode = new
Node
(value);
49 references to Node
Microsoft.CodeAnalysis.CodeStyle (49)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (27)
24
protected
Node
? root;
43
=> IntervalTreeHelpers<T, MutableIntervalTree<T>,
Node
, BinaryIntervalTreeWitness>.Any(this, start, length, in introspector, in intervalTester);
50
return IntervalTreeHelpers<T, MutableIntervalTree<T>,
Node
, BinaryIntervalTreeWitness>.FillWithIntervalsThatMatch(
56
protected static
Node
Insert<TIntrospector>(
Node
? root,
Node
newNode, in TIntrospector introspector)
63
private static
Node
Insert<TIntrospector>(
Node
? root,
Node
newNode, int newNodeStart, in TIntrospector introspector)
71
Node
? newLeft, newRight;
85
var
newRoot = root;
89
static
Node
Balance(
Node
node, in TIntrospector introspector)
122
static int BalanceFactor(
Node
? node)
126
public IntervalTreeHelpers<T, MutableIntervalTree<T>,
Node
, BinaryIntervalTreeWitness>.Enumerator GetEnumerator()
127
=> IntervalTreeHelpers<T, MutableIntervalTree<T>,
Node
, BinaryIntervalTreeWitness>.GetEnumerator(this);
139
protected static int MaxEndValue<TIntrospector>(
Node
? node, in TIntrospector introspector)
143
private static int Height(
Node
? node)
149
internal readonly struct BinaryIntervalTreeWitness : IIntervalTreeWitness<T, MutableIntervalTree<T>,
Node
>
151
public T GetValue(MutableIntervalTree<T> tree,
Node
node)
154
public
Node
GetMaxEndNode(MutableIntervalTree<T> tree,
Node
node)
157
public bool TryGetRoot(MutableIntervalTree<T> tree, [NotNullWhen(true)] out
Node
? root)
163
public bool TryGetLeftNode(MutableIntervalTree<T> tree,
Node
node, [NotNullWhen(true)] out
Node
? leftNode)
169
public bool TryGetRightNode(MutableIntervalTree<T> tree,
Node
node, [NotNullWhen(true)] out
Node
? rightNode)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.Node.cs (15)
16
internal
Node
? Left { get; private set; }
17
internal
Node
? Right { get; private set; }
20
internal
Node
MaxEndNode { get; private set; }
29
internal void SetLeftRight<TIntrospector>(
Node
? left,
Node
? right, in TIntrospector introspector)
69
internal
Node
RightRotation<TIntrospector>(in TIntrospector introspector)
74
var
oldLeft = this.Left;
89
internal
Node
LeftRotation<TIntrospector>(in TIntrospector introspector)
94
var
oldRight = this.Right;
108
internal
Node
InnerRightOuterLeftRotation<TIntrospector>(in TIntrospector introspector)
114
var
newTop = this.Right.Left;
115
var
oldRight = this.Right;
132
internal
Node
InnerLeftOuterRightRotation<TIntrospector>(in TIntrospector introspector)
138
var
newTop = this.Left.Right;
139
var
oldLeft = this.Left;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (2)
36
var
newNode = new Node(value);
70
protected int MaxEndValue(
Node
node)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\ContextMutableIntervalTree.cs (5)
86
using var pooledObject = SharedPools.Default<Stack<
Node
>>().GetPooledObject();
93
var
currentNode = spineNodes.Peek();
98
var
right = currentNode.Right;
108
var
left = currentNode.Left;
146
var
parentNode = spineNodes.Peek();