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