3 overrides of GetSlot
Microsoft.CodeAnalysis (3)
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (1)
51internal override GreenNode GetSlot(int index)
Syntax\InternalSyntax\SyntaxList.WithThreeChildren.cs (1)
40internal override GreenNode? GetSlot(int index)
Syntax\InternalSyntax\SyntaxList.WithTwoChildren.cs (1)
35internal override GreenNode? GetSlot(int index)
51 references to GetSlot
Microsoft.CodeAnalysis (51)
Syntax\ChildSyntaxList.cs (7)
42var child = green.GetSlot(i); 152greenChild = green.GetSlot(slotIndex); 198greenChild = greenChild.GetSlot(idx); 206greenChild = greenChild.GetSlot(idx); 239GreenNode? greenChild = green.GetSlot(slot); 287green = green.GetSlot(slot); 322greenChild = green.GetSlot(slotIndex);
Syntax\GreenNode.cs (18)
168var node = GetSlot(index); 189var child = this.GetSlot(i); 230var child = GetSlot(i); 671var child = currentNode.GetSlot(i); 689var child = node.GetSlot(firstIndex); 705var child = node.GetSlot(lastIndex); 754var child = node.GetSlot(i); 780var child = node.GetSlot(i); 806var child = node.GetSlot(i); 876var node1Child = node1.GetSlot(i); 877var node2Child = node2.GetSlot(i); 985var child = GetSlot(i); 1002this.GetSlot(0) == child1; 1012this.GetSlot(0) == child1 && 1013this.GetSlot(1) == child2; 1023this.GetSlot(0) == child1 && 1024this.GetSlot(1) == child2 && 1025this.GetSlot(2) == child3;
Syntax\InternalSyntax\ChildSyntaxList.Enumerator.cs (3)
36_currentChild = _list.GetSlot(_listIndex); 53var child = _node.GetSlot(_childIndex); 66_currentChild = _list.GetSlot(_listIndex);
Syntax\InternalSyntax\ChildSyntaxList.Reversed.Enumerator.cs (3)
46_currentChild = _list.GetSlot(_listIndex); 56var child = _node.GetSlot(_childIndex); 68_currentChild = _list.GetSlot(_listIndex);
Syntax\InternalSyntax\SyntaxDiagnosticInfoList.cs (1)
90var child = node.GetSlot(slotIndex);
Syntax\InternalSyntax\SyntaxList`1.cs (3)
44return (TNode?)_node.GetSlot(index); 70return node.GetSlot(index); 116return (TNode?)node.GetSlot(node.SlotCount - 1);
Syntax\InternalSyntax\SyntaxListBuilder.cs (1)
56this.Add(item.GetSlot(i));
Syntax\InternalSyntax\SyntaxNodeCache.cs (1)
177if (!ChildInCache(node.GetSlot(i)))
Syntax\SyntaxNode.cs (10)
142var green = this.Green.GetSlot(slot); 160var green = this.Green.GetSlot(0); 177var green = this.Green.GetSlot(slot); 195var green = this.Green.GetSlot(0); 488stack.Push(current.GetSlot(i)); 508var child = triviaNode.GetSlot(i); 591var item = this.Green.GetSlot(i); 633var greenChild = green.GetSlot(index); 653int offset = green.GetSlot(index)?.FullWidth ?? 0; 663var greenChild = green.GetSlot(index);
Syntax\SyntaxTokenList.cs (2)
135return new SyntaxToken(_parent, Node.GetSlot(index), Position + Node.GetSlotOffset(index), _index + index); 280return node.IsList ? node.GetSlot(i) : node;
Syntax\SyntaxTriviaList.cs (2)
133return new SyntaxTrivia(Token, Node.GetSlot(index), Position + Node.GetSlotOffset(index), Index + index); 459return node.IsList ? node.GetSlot(i) : node;