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