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)
43var child = green.GetSlot(i); 153greenChild = green.GetSlot(slotIndex); 199greenChild = greenChild.GetSlot(idx); 207greenChild = greenChild.GetSlot(idx); 240GreenNode? greenChild = green.GetSlot(slot); 288green = green.GetSlot(slot); 323greenChild = green.GetSlot(slotIndex);
Syntax\GreenNode.cs (18)
169var node = GetSlot(index); 190var child = this.GetSlot(i); 231var child = GetSlot(i); 672var child = currentNode.GetSlot(i); 690var child = node.GetSlot(firstIndex); 706var child = node.GetSlot(lastIndex); 755var child = node.GetSlot(i); 781var child = node.GetSlot(i); 807var child = node.GetSlot(i); 877var node1Child = node1.GetSlot(i); 878var node2Child = node2.GetSlot(i); 986var child = GetSlot(i); 1003this.GetSlot(0) == child1; 1013this.GetSlot(0) == child1 && 1014this.GetSlot(1) == child2; 1024this.GetSlot(0) == child1 && 1025this.GetSlot(1) == child2 && 1026this.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)
58this.Add(item.GetSlot(i));
Syntax\InternalSyntax\SyntaxNodeCache.cs (1)
177if (!ChildInCache(node.GetSlot(i)))
Syntax\SyntaxNode.cs (10)
143var green = this.Green.GetSlot(slot); 161var green = this.Green.GetSlot(0); 178var green = this.Green.GetSlot(slot); 196var green = this.Green.GetSlot(0); 489stack.Push(current.GetSlot(i)); 509var child = triviaNode.GetSlot(i); 592var item = this.Green.GetSlot(i); 634var greenChild = green.GetSlot(index); 654int offset = green.GetSlot(index)?.FullWidth ?? 0; 664var greenChild = green.GetSlot(index);
Syntax\SyntaxTokenList.cs (2)
136return new SyntaxToken(_parent, Node.GetSlot(index), Position + Node.GetSlotOffset(index), _index + index); 281return node.IsList ? node.GetSlot(i) : node;
Syntax\SyntaxTriviaList.cs (2)
134return new SyntaxTrivia(Token, Node.GetSlot(index), Position + Node.GetSlotOffset(index), Index + index); 460return node.IsList ? node.GetSlot(i) : node;