2 instantiations of EmbeddedSyntaxNodeOrToken
Microsoft.CodeAnalysis.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNodeOrToken.cs (2)
47
=>
new
(node);
50
=>
new
(token);
21 references to EmbeddedSyntaxNodeOrToken
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (3)
EmbeddedLanguages\StackFrame\StackFrameSyntaxFactory.cs (3)
75
static ImmutableArray<
StackFrameNodeOrToken
> CommaSeparateList(StackFrameParameterDeclarationNode[] parameters)
77
var builder = ImmutableArray.CreateBuilder<
StackFrameNodeOrToken
>();
174
using var _ = PooledObjects.ArrayBuilder<
StackFrameNodeOrToken
>.GetInstance(out var builder);
Microsoft.CodeAnalysis.Features (4)
EmbeddedLanguages\Json\JsonParser.cs (1)
344
using var _ = ArrayBuilder<
JsonNodeOrToken
>.GetInstance(out var result);
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
265
using var _ = ArrayBuilder<
RegexNodeOrToken
>.GetInstance(out var builder);
EmbeddedLanguages\StackFrame\StackFrameParser.cs (2)
375
using var _ = ArrayBuilder<
StackFrameNodeOrToken
>.GetInstance(out var builder);
431
using var _ = ArrayBuilder<
StackFrameNodeOrToken
>.GetInstance(out var builder);
Microsoft.CodeAnalysis.Workspaces (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)