5 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)
Microsoft.CodeAnalysis.CSharp (2)
Syntax\InternalSyntax\SyntaxToken.cs (1)
65internal override GreenNode GetSlot(int index)
Syntax\InternalSyntax\SyntaxTrivia.cs (1)
41internal override GreenNode GetSlot(int index)
57 references to GetSlot
Microsoft.CodeAnalysis (51)
Syntax\ChildSyntaxList.cs (7)
43var child = green.GetSlot(i); 159greenChild = green.GetSlot(slotIndex); 192var result = greenSlot.IsList ? greenSlot.GetSlot(offsetInSlot) : greenSlot; 229greenChild = greenChild.GetSlot(idx); 237greenChild = greenChild.GetSlot(idx); 270GreenNode? greenChild = green.GetSlot(slot); 318green = green.GetSlot(slot);
Syntax\GreenNode.cs (11)
174var node = GetSlot(index); 195var child = this.GetSlot(i); 236var child = GetSlot(i); 689var child = currentNode.GetSlot(i); 707var child = node.GetSlot(firstIndex); 723var child = node.GetSlot(lastIndex); 772var child = node.GetSlot(i); 798var child = node.GetSlot(i); 824var child = node.GetSlot(i); 894var node1Child = node1.GetSlot(i); 895var node2Child = node2.GetSlot(i);
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 (8)
184if (!ChildInCache(node.GetSlot(i))) 351var child = node.GetSlot(i); 371parent.GetSlot(0) == child1; 384parent.GetSlot(0) == child1 && 385parent.GetSlot(1) == child2; 398parent.GetSlot(0) == child1 && 399parent.GetSlot(1) == child2 && 400parent.GetSlot(2) == child3;
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;
Microsoft.CodeAnalysis.CSharp (6)
Syntax\InternalSyntax\CSharpSyntaxNode.cs (3)
89var child = this.GetSlot(i); 149var child = node.GetSlot(i); 210GetDirectives(node.GetSlot(i), directives);
Syntax\SyntaxEquivalence.cs (2)
243var child1 = before.GetSlot(i); 244var child2 = after.GetSlot(i);
Syntax\SyntaxTreeDiagnosticEnumerator.cs (1)
86var child = node.GetSlot(nextSlotIndex);