9 writes to SlotCount
Microsoft.CodeAnalysis (8)
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (2)
35
this.
SlotCount
= (byte)n;
39
this.
SlotCount
= byte.MaxValue;
Syntax\InternalSyntax\SyntaxList.WithThreeChildren.cs (3)
25
this.
SlotCount
= 3;
37
this.
SlotCount
= 3;
49
this.
SlotCount
= 3;
Syntax\InternalSyntax\SyntaxList.WithTwoChildren.cs (3)
25
this.
SlotCount
= 2;
35
this.
SlotCount
= 2;
45
this.
SlotCount
= 2;
Microsoft.CodeAnalysis.VisualBasic (1)
Syntax\InternalSyntax\SyntaxNode.vb (1)
102
Me.
SlotCount
= value
80 references to SlotCount
Microsoft.CodeAnalysis (53)
SourceGeneration\ISyntaxHelper.cs (1)
77
for (int i = 0, n = node.
SlotCount
; i < n; i++)
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 (12)
245
Debug.Assert(i <
SlotCount
);
708
int n = node.
SlotCount
;
724
int n = node.
SlotCount
;
775
for (int i = 0, n = node.
SlotCount
; i < n; i++)
797
for (int i = node.
SlotCount
- 1; i >= 0; i--)
819
for (int i = node.
SlotCount
- 1; i >= 0; i--)
859
if (node1.IsList && node1.
SlotCount
== 1)
864
if (node2.IsList && node2.
SlotCount
== 1)
880
var n = node1.
SlotCount
;
881
if (n != node2.
SlotCount
)
985
this.
SlotCount
<= GreenNode.MaxCachedChildNum;
994
int cnt = this.
SlotCount
;
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)
123
var tmp = new ArrayElement<GreenNode>[left.
SlotCount
+ right.
SlotCount
];
125
rightList.CopyTo(tmp, left.
SlotCount
);
130
var tmp = new ArrayElement<GreenNode>[left.
SlotCount
+ 1];
132
tmp[left.
SlotCount
].Value = right;
138
var tmp = new ArrayElement<GreenNode>[rightList.
SlotCount
+ 1];
Syntax\InternalSyntax\SyntaxList.WithManyChildren.cs (2)
93
var separated = this.
SlotCount
> 1 && HasNodeTokenPattern();
110
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)
85
internal int SlotCount => this.Green.
SlotCount
;
484
for (int i = current.
SlotCount
- 1; i >= 0; i--)
503
for (int i = 0, n = triviaNode.
SlotCount
; i < n; i++)
593
index += item.
SlotCount
;
651
int slotCount = green.
SlotCount
;
Syntax\SyntaxToken.cs (1)
435
index = leading.IsList ? leading.
SlotCount
: 1;
Syntax\SyntaxTokenList.cs (2)
106
public int Count => Node == null ? 0 : (Node.IsList ? Node.
SlotCount
: 1);
123
if (unchecked((uint)index < (uint)Node.
SlotCount
))
Syntax\SyntaxTriviaList.cs (2)
90
get { return Node == null ? 0 : (Node.IsList ? Node.
SlotCount
: 1); }
113
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;
Microsoft.CodeAnalysis.CSharp (10)
Parser\SyntaxParser.cs (1)
1007
for (int i = 0, n = root.
SlotCount
; i < n; i++)
Syntax\CSharpSyntaxRewriter.cs (3)
72
Debug.Assert(leadingTrivia == null || !leadingTrivia.IsList || leadingTrivia.
SlotCount
> 0);
73
Debug.Assert(trailingTrivia == null || !trailingTrivia.IsList || trailingTrivia.
SlotCount
> 0);
86
var index = leadingTrivia.IsList ? leadingTrivia.
SlotCount
: 1;
Syntax\InternalSyntax\CSharpSyntaxNode.cs (2)
167
for (int i = 0, n = node.
SlotCount
; i < n; i++)
228
for (int i = 0, n = node.
SlotCount
; i < n; i++)
Syntax\SyntaxEquivalence.cs (2)
210
int slotCount = before.
SlotCount
;
211
if (slotCount != after.
SlotCount
)
Syntax\SyntaxTreeDiagnosticEnumerator.cs (2)
74
if (slotIndex < node.
SlotCount
- 1)
94
if (node.
SlotCount
== 0)
Microsoft.CodeAnalysis.VisualBasic (17)
Parser\ParseXml.vb (2)
1470
For index = 0 To node.
SlotCount
- 1
1482
For index = 0 To node.
SlotCount
- 1
Scanner\Blender.vb (4)
55
Dim cnt = nonterminal.
SlotCount
271
If _currentNode.
SlotCount
= 0 Then
407
If node.
SlotCount
= 0 Then
481
For i As Integer = 0 To asList.
SlotCount
- 1
Scanner\Directives.vb (1)
143
Dim sCount = node.
SlotCount
Syntax\InternalSyntax\DocumentationCommentTriviaSyntax.vb (1)
22
Dim childCnt = node.
SlotCount
Syntax\InternalSyntax\SyntaxNode.vb (2)
98
Return Me.
SlotCount
191
Dim cnt =
SlotCount
()
Syntax\InternalSyntax\SyntaxNodeExtensions.vb (1)
626
For i = 0 To this.
SlotCount
() - 1
Syntax\InternalSyntax\SyntaxReplacer.vb (2)
86
For i As Integer = 0 To node.
SlotCount
- 1
94
allChildrenCnt += child.
SlotCount
Syntax\SyntaxEquivalence.vb (2)
166
Dim slotCount1 = before.
SlotCount
168
If slotCount1 <> after.
SlotCount
Then
Syntax\SyntaxTreeDiagnosticEnumerator.vb (2)
78
If slotIndex < node.
SlotCount
- 1 Then
97
If node.
SlotCount
= 0 Then