2 instantiations of EmbeddedSyntaxNodeOrToken
Microsoft.AspNetCore.App.Analyzers (2)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxNodeOrToken.cs (2)
46
=>
new
(node);
49
=>
new
(token);
45 references to EmbeddedSyntaxNodeOrToken
Microsoft.AspNetCore.App.Analyzers (45)
Infrastructure\EmbeddedSyntax\EmbeddedSeparatedSyntaxNodeList.cs (4)
16
public ImmutableArray<
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; }
21
= new(ImmutableArray<
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>>.Empty);
24
ImmutableArray<
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
66
var
nodeOrToken = NodesAndTokens[index * 2];
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxHelpers.cs (1)
30
foreach (
var
child in node)
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxNode.cs (8)
30
internal abstract
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> ChildAt(int index);
32
public
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> this[int index] => ChildAt(index);
62
var
child = ChildAt(i);
77
var
child = ChildAt(i);
91
foreach (
var
child in this)
111
foreach (
var
child in this)
165
var
child = this[i];
195
public
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> Current { get; private set; }
Infrastructure\EmbeddedSyntax\EmbeddedSyntaxNodeOrToken.cs (2)
45
public static implicit operator
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>(TSyntaxNode? node)
48
public static implicit operator
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>(EmbeddedSyntaxToken<TSyntaxKind> token)
Infrastructure\RoutePattern\RoutePatternHelpers.cs (1)
22
public static bool TryGetNode<TSyntaxKind, TSyntaxNode>(this
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> nodeOrToken, TSyntaxKind kind, [NotNullWhen(true)] out TSyntaxNode? node)
Infrastructure\RoutePattern\RoutePatternNodes.cs (15)
11
using RoutePatternNodeOrToken =
EmbeddedSyntaxNodeOrToken
<RoutePatternKind, RoutePatternNode>;
30
internal override
RoutePatternNodeOrToken
ChildAt(int index)
56
internal override
RoutePatternNodeOrToken
ChildAt(int index)
86
internal override
RoutePatternNodeOrToken
ChildAt(int index)
121
internal override
RoutePatternNodeOrToken
ChildAt(int index)
154
internal override
RoutePatternNodeOrToken
ChildAt(int index)
178
internal override
RoutePatternNodeOrToken
ChildAt(int index)
202
internal override
RoutePatternNodeOrToken
ChildAt(int index)
226
internal override
RoutePatternNodeOrToken
ChildAt(int index)
250
internal override
RoutePatternNodeOrToken
ChildAt(int index)
277
internal override
RoutePatternNodeOrToken
ChildAt(int index)
302
internal override
RoutePatternNodeOrToken
ChildAt(int index)
328
internal override
RoutePatternNodeOrToken
ChildAt(int index)
359
internal override
RoutePatternNodeOrToken
ChildAt(int index)
385
internal override
RoutePatternNodeOrToken
ChildAt(int index)
Infrastructure\RoutePattern\RoutePatternParser.cs (9)
128
foreach (
var
part in root)
140
foreach (
var
segmentPart in segmentNode)
162
foreach (
var
part in root)
166
foreach (
var
segmentPart in segmentNode)
215
foreach (
var
part in root)
219
foreach (
var
segmentPart in segmentNode)
229
foreach (
var
parameterPart in parameterNode)
294
foreach (
var
part in root)
317
foreach (
var
child in node)
RouteEmbeddedLanguage\RoutePatternBraceMatcher.cs (1)
87
foreach (
var
child in node)
RouteEmbeddedLanguage\RoutePatternClassifier.cs (2)
34
foreach (
var
child in node)
141
foreach (
var
child in node)
RouteEmbeddedLanguage\RoutePatternCompletionProvider.cs (1)
284
foreach (
var
child in parent)
RouteEmbeddedLanguage\RoutePatternHighlighter.cs (1)
119
foreach (
var
child in node)