5 writes to SlotCount
Microsoft.CodeAnalysis (5)
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (1)
36
this.
SlotCount
= n < SlotCountTooLarge
Syntax\InternalSyntax\SyntaxList.WithThreeChildren.cs (2)
19
this.
SlotCount
= 3;
31
this.
SlotCount
= 3;
Syntax\InternalSyntax\SyntaxList.WithTwoChildren.cs (2)
18
this.
SlotCount
= 2;
28
this.
SlotCount
= 2;
56 references to SlotCount
Microsoft.CodeAnalysis (56)
Syntax\ChildSyntaxList.cs (3)
40
for (int i = 0, s = green.
SlotCount
; i < s; i++)
51
n += child.
SlotCount
;
83
return green.IsList ? green.
SlotCount
: 1;
Syntax\GreenNode.cs (15)
229
Debug.Assert(i <
SlotCount
);
685
int n = node.
SlotCount
;
701
int n = node.
SlotCount
;
752
for (int i = 0, n = node.
SlotCount
; i < n; i++)
778
for (int i = node.
SlotCount
- 1; i >= 0; i--)
804
for (int i = node.
SlotCount
- 1; i >= 0; i--)
847
if (node1.IsList && node1.
SlotCount
== 1)
852
if (node2.IsList && node2.
SlotCount
== 1)
868
var n = node1.
SlotCount
;
869
if (n != node2.
SlotCount
)
973
this.
SlotCount
<= GreenNode.MaxCachedChildNum;
982
int cnt = this.
SlotCount
;
1001
this.
SlotCount
== 1 &&
1011
this.
SlotCount
== 2 &&
1022
this.
SlotCount
== 3 &&
Syntax\GreenNode.NodeFlagsAndSlotCount.cs (1)
12
/// Combination of <see cref="NodeFlags"/> and <see cref="
SlotCount
"/> stored in a single 16bit value.
Syntax\InternalSyntax\ChildSyntaxList.Enumerator.cs (3)
34
if (_listIndex < _list.
SlotCount
)
48
if (_childIndex == _node.
SlotCount
)
64
if (_listIndex < _list.
SlotCount
)
Syntax\InternalSyntax\ChildSyntaxList.Reversed.Enumerator.cs (2)
24
_childIndex = node.
SlotCount
;
65
_listIndex = _list.
SlotCount
;
Syntax\InternalSyntax\SyntaxDiagnosticInfoList.cs (1)
87
if (slotIndex < node.
SlotCount
- 1)
Syntax\InternalSyntax\SyntaxList.cs (6)
118
var tmp = new ArrayElement<GreenNode>[left.
SlotCount
+ right.
SlotCount
];
120
rightList.CopyTo(tmp, left.
SlotCount
);
125
var tmp = new ArrayElement<GreenNode>[left.
SlotCount
+ 1];
127
tmp[left.
SlotCount
].Value = right;
133
var tmp = new ArrayElement<GreenNode>[rightList.
SlotCount
+ 1];
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (2)
63
var separated = this.
SlotCount
> 1 && HasNodeTokenPattern();
80
for (int i = 0; i < this.
SlotCount
; i++)
Syntax\InternalSyntax\SyntaxList`1.cs (3)
27
return _node == null ? 0 : (_node.IsList ? _node.
SlotCount
: 1);
42
Debug.Assert(index <= _node.
SlotCount
);
116
return (TNode?)node.GetSlot(node.
SlotCount
- 1);
Syntax\InternalSyntax\SyntaxListBuilder.cs (1)
49
int slotCount = item.
SlotCount
;
Syntax\InternalSyntax\SyntaxNodeCache.cs (2)
164
if (child == null || child.
SlotCount
== 0) return true;
174
var cnt = node.
SlotCount
;
Syntax\SyntaxList.SeparatedWithManyChildren.cs (2)
16
_children = new ArrayElement<SyntaxNode?>[(green.
SlotCount
+ 1) >> 1];
52
&& (valueIndex >= Green.
SlotCount
- 2 || GetCachedSlot(valueIndex + 2) is { }))
Syntax\SyntaxList.SeparatedWithManyWeakChildren.cs (1)
18
_children = new ArrayElement<WeakReference<SyntaxNode>?>[(((green.
SlotCount
+ 1) >> 1) - 1)];
Syntax\SyntaxList.WithManyChildren.cs (1)
18
_children = new ArrayElement<SyntaxNode?>[green.
SlotCount
];
Syntax\SyntaxList.WithManyWeakChildren.cs (1)
24
int count = green.
SlotCount
;
Syntax\SyntaxNode.cs (5)
86
internal int SlotCount => this.Green.
SlotCount
;
487
for (int i = current.
SlotCount
- 1; i >= 0; i--)
506
for (int i = 0, n = triviaNode.
SlotCount
; i < n; i++)
596
index += item.
SlotCount
;
654
int slotCount = green.
SlotCount
;
Syntax\SyntaxToken.cs (1)
432
index = leading.IsList ? leading.
SlotCount
: 1;
Syntax\SyntaxTokenList.cs (2)
116
public int Count => Node == null ? 0 : (Node.IsList ? Node.
SlotCount
: 1);
133
if (unchecked((uint)index < (uint)Node.
SlotCount
))
Syntax\SyntaxTriviaList.cs (2)
108
get { return Node == null ? 0 : (Node.IsList ? Node.
SlotCount
: 1); }
131
if (unchecked((uint)index < (uint)Node.
SlotCount
))
Syntax\SyntaxTriviaList.Enumerator.cs (2)
45
_count = greenNode.IsList ? greenNode.
SlotCount
: 1;
73
index = leading.IsList ? leading.
SlotCount
: 1;