60 references to SyntaxTokenList
Microsoft.CodeAnalysis (11)
Syntax\SyntaxListBuilderExtensions.cs (1)
16
return new
SyntaxTokenList
(null, builder.ToListNode(), 0, 0);
Syntax\SyntaxTokenList.cs (6)
53
:
this
(null, CreateNodeFromSpan(tokens), 0, 0)
61
:
this
(null, CreateNode(tokens), 0, 0)
70
return new
SyntaxTokenList
(parent: null, CreateNodeFromSpan(tokens), position: 0, index: 0);
375
return new
SyntaxTokenList
(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0);
391
return new
SyntaxTokenList
(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0);
437
return new
SyntaxTokenList
(null, GreenNode.CreateList(list, static n => n.RequiredNode), 0, 0);
Syntax\SyntaxTokenListBuilder.cs (4)
96
return new
SyntaxTokenList
(null, _nodes[0], 0, 0);
100
return new
SyntaxTokenList
(null, InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!), 0, 0);
105
return new
SyntaxTokenList
(null, InternalSyntax.SyntaxList.List(_nodes[0]!, _nodes[1]!, _nodes[2]!), 0, 0);
107
return new
SyntaxTokenList
(null, InternalSyntax.SyntaxList.List(_nodes, _count), 0, 0);
Microsoft.CodeAnalysis.CSharp (37)
Syntax.xml.Syntax.Generated.cs (37)
3084
return slot != null ? new
SyntaxTokenList
(this, slot, Position, 0) : default;
3218
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
3376
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
3976
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(2), GetChildIndex(2)) : default;
6177
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
6336
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
6482
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(3), GetChildIndex(3)) : default;
9557
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
9678
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10345
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10511
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10677
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10843
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11015
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11154
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11263
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11343
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12048
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12127
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12301
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12449
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12595
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12740
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12914
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13070
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13230
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13342
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13513
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13784
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13876
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13949
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
14017
return slot != null ? new
SyntaxTokenList
(this, slot, Position, 0) : default;
15152
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(3), GetChildIndex(3)) : default;
15345
return slot != null ? new
SyntaxTokenList
(this, slot, Position, 0) : default;
15394
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
15450
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(2), GetChildIndex(2)) : default;
15504
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (12)
Syntax\SyntaxTokenListTests.cs (12)
25
EqualityTesting.AssertEqual(new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0), new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0));
28
EqualityTesting.AssertNotEqual(new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 1), new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0));
31
EqualityTesting.AssertEqual(new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 1, 0), new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0));
41
EqualityTesting.AssertEqual(new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0).Reverse(), new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0).Reverse());
44
EqualityTesting.AssertNotEqual(new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 1).Reverse(), new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0).Reverse());
47
EqualityTesting.AssertEqual(new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 1, 0).Reverse(), new
SyntaxTokenList
(node1, node1.ReturnKeyword.Node, 0, 0).Reverse());