2 overrides of GetChildPosition
Microsoft.CodeAnalysis (2)
Syntax\SyntaxList.SeparatedWithManyChildren.cs (1)
41
internal override int
GetChildPosition
(int index)
Syntax\SyntaxList.WithManyWeakChildren.cs (1)
40
internal override int
GetChildPosition
(int index)
9 references to GetChildPosition
Microsoft.CodeAnalysis (9)
Syntax\ChildSyntaxList.cs (1)
199
position = red.
GetChildPosition
(idx);
Syntax\SeparatedSyntaxList.cs (1)
154
return new SyntaxToken(node.Parent, green, node.
GetChildPosition
(index), _list.index + index);
Syntax\SyntaxList.SeparatedWithManyChildren.cs (1)
57
return base.
GetChildPosition
(index);
Syntax\SyntaxNode.cs (5)
145
Interlocked.CompareExchange(ref field, green.CreateRed(this, this.
GetChildPosition
(slot)), null);
180
Interlocked.CompareExchange(ref field, (T)green.CreateRed(this, this.
GetChildPosition
(slot)), null);
221
Interlocked.CompareExchange(ref element, green.CreateRed(this.Parent, this.
GetChildPosition
(slot)), null);
243
Interlocked.CompareExchange(ref element, green.CreateRed(this.Parent, this.
GetChildPosition
(1)), null);
266
var newNode = greenChild.CreateRed(this.Parent,
GetChildPosition
(index));
Syntax\SyntaxNodeOrTokenList.cs (1)
152
return new SyntaxToken(this.Parent, green, _node.
GetChildPosition
(index), this.index + index);