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;
6176
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
6335
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
6481
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(3), GetChildIndex(3)) : default;
9556
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
9677
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10344
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10510
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10676
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10842
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11014
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11153
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11262
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11342
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12047
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12126
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12300
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12448
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12594
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12739
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12913
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13069
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13229
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13341
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13512
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13780
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13872
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13945
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
14013
return slot != null ? new
SyntaxTokenList
(this, slot, Position, 0) : default;
15148
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(3), GetChildIndex(3)) : default;
15341
return slot != null ? new
SyntaxTokenList
(this, slot, Position, 0) : default;
15390
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
15446
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(2), GetChildIndex(2)) : default;
15500
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());