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