36 references to IsList
Microsoft.CodeAnalysis (36)
Syntax\ChildSyntaxList.cs (6)
45
if (!child.
IsList
)
83
return green.
IsList
? green.SlotCount : 1;
176
if (!greenChild.
IsList
)
230
Debug.Assert(!green.
IsList
);
257
if (!green.
IsList
)
346
if (greenChild.
IsList
&& red != null)
Syntax\GreenNode.cs (2)
847
if (node1.
IsList
&& node1.SlotCount == 1)
852
if (node2.
IsList
&& node2.SlotCount == 1)
Syntax\InternalSyntax\ChildSyntaxList.Reversed.Enumerator.cs (1)
62
if (child.
IsList
)
Syntax\InternalSyntax\SyntaxList`1.cs (4)
27
return _node == null ? 0 : (_node.
IsList
? _node.SlotCount : 1);
39
else if (_node.
IsList
)
68
if (node.
IsList
)
114
if (node.
IsList
)
Syntax\InternalSyntax\SyntaxListBuilder.cs (1)
47
if (item.
IsList
)
Syntax\SyntaxNode.cs (4)
34
RoslynDebug.Assert(parent?.Green.
IsList
!= true, "list cannot be a parent");
79
internal bool IsList => this.Green.
IsList
;
504
if (triviaNode.
IsList
)
594
if (item.
IsList
)
Syntax\SyntaxNodeOrToken.cs (2)
46
Debug.Assert(!node.Green.
IsList
, "node cannot be a list");
54
Debug.Assert(parent == null || !parent.Green.
IsList
, "parent cannot be a list");
Syntax\SyntaxNodeOrTokenList.cs (1)
125
get { return _node == null ? 0 : _node.Green.
IsList
? _node.SlotCount : 1; }
Syntax\SyntaxToken.cs (2)
30
Debug.Assert(parent == null || !parent.Green.
IsList
, "list cannot be a parent");
432
index = leading.
IsList
? leading.SlotCount : 1;
Syntax\SyntaxTokenList.cs (6)
32
Debug.Assert(tokenOrList == null || (tokenOrList.IsToken) || (tokenOrList.
IsList
));
116
public int Count => Node == null ? 0 : (Node.
IsList
? Node.SlotCount : 1);
131
if (Node.
IsList
)
279
Debug.Assert(node.
IsList
|| (i == 0 && !node.
IsList
));
280
return node.
IsList
? node.GetSlot(i) : node;
Syntax\SyntaxTriviaList.cs (5)
108
get { return Node == null ? 0 : (Node.
IsList
? Node.SlotCount : 1); }
129
if (Node.
IsList
)
458
Debug.Assert(node.
IsList
|| (i == 0 && !node.
IsList
));
459
return node.
IsList
? node.GetSlot(i) : node;
Syntax\SyntaxTriviaList.Enumerator.cs (2)
45
_count = greenNode.
IsList
? greenNode.SlotCount : 1;
73
index = leading.
IsList
? leading.SlotCount : 1;