3 instantiations of Node
Microsoft.CodeAnalysis.CodeStyle (3)
IntervalTree`1.cs (1)
42
result.root = Insert(result.root, new
Node
(value), in introspector);
SimpleIntervalTree`2.cs (2)
23
root = Insert(root, new
Node
(value), introspector);
36
var newNode = new
Node
(value);
43 references to Node
Microsoft.CodeAnalysis.CodeStyle (43)
ContextIntervalTree.cs (5)
83
using var pooledObject = SharedPools.Default<Stack<
Node
>>().GetPooledObject();
90
var
currentNode = spineNodes.Peek();
95
var
right = currentNode.Right;
105
var
left = currentNode.Left;
136
var
parentNode = spineNodes.Peek();
IntervalTree`1.cs (21)
24
protected
Node
? root;
29
private static readonly ObjectPool<Stack<(
Node
? node, bool firstTime)>> s_stackPool
30
= SharedPools.Default<Stack<(
Node
? node, bool firstTime)>>();
183
bool stopAfterFirst, Stack<(
Node
? node, bool firstTime)> candidates)
194
var
currentNode = currentTuple.node;
226
var
right = currentNode.Right;
237
var
left = currentNode.Left;
250
protected static
Node
Insert<TIntrospector>(
Node
? root,
Node
newNode, in TIntrospector introspector)
257
private static
Node
Insert<TIntrospector>(
Node
? root,
Node
newNode, int newNodeStart, in TIntrospector introspector)
265
Node
? newLeft, newRight;
279
var
newRoot = root;
284
private static
Node
Balance<TIntrospector>(
Node
node, in TIntrospector introspector)
325
var candidates = new Stack<(
Node
? node, bool firstTime)>();
356
protected static int MaxEndValue<TIntrospector>(
Node
? node, in TIntrospector introspector)
360
private static int Height(
Node
? node)
363
private static int BalanceFactor(
Node
? node)
IntervalTree`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;
SimpleIntervalTree`2.cs (2)
36
var
newNode = new Node(value);
76
protected int MaxEndValue(
Node
node)