2 instantiations of EmbeddedSyntaxNodeOrToken
Microsoft.CodeAnalysis.CodeStyle (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNodeOrToken.cs (2)
47
=>
new
(node);
50
=>
new
(token);
14 references to EmbeddedSyntaxNodeOrToken
Microsoft.CodeAnalysis.CodeStyle (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (3)
17
public ImmutableArray<
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; }
25
ImmutableArray<
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>> nodesAndTokens)
67
var
nodeOrToken = NodesAndTokens[index * 2];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (9)
51
internal abstract
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> ChildAt(int index);
53
public
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> this[int index] => ChildAt(index);
54
public
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> this[Index index] => this[index.GetOffset(this.ChildCount)];
82
var
child = ChildAt(i);
95
var
child = ChildAt(i);
107
foreach (
var
child in this)
127
foreach (
var
child in this)
181
var
child = this[i];
213
public
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode> Current { get; private set; }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNodeOrToken.cs (2)
46
public static implicit operator
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>(TSyntaxNode? node)
49
public static implicit operator
EmbeddedSyntaxNodeOrToken
<TSyntaxKind, TSyntaxNode>(EmbeddedSyntaxToken<TSyntaxKind> token)