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;
6221
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
6380
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
6526
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(3), GetChildIndex(3)) : default;
9601
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
9722
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10389
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10555
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10721
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
10887
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11059
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11198
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11307
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
11387
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12092
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12171
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12345
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12493
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12639
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12784
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
12958
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13114
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13274
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13386
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13557
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13828
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13920
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
13993
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
14061
return slot != null ? new
SyntaxTokenList
(this, slot, Position, 0) : default;
15196
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(3), GetChildIndex(3)) : default;
15389
return slot != null ? new
SyntaxTokenList
(this, slot, Position, 0) : default;
15438
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(1), GetChildIndex(1)) : default;
15494
return slot != null ? new
SyntaxTokenList
(this, slot, GetChildPosition(2), GetChildIndex(2)) : default;
15548
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());