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)
75static ImmutableArray<StackFrameNodeOrToken> CommaSeparateList(StackFrameParameterDeclarationNode[] parameters) 77var builder = ImmutableArray.CreateBuilder<StackFrameNodeOrToken>(); 174using var _ = PooledObjects.ArrayBuilder<StackFrameNodeOrToken>.GetInstance(out var builder);
Microsoft.CodeAnalysis.Features (4)
EmbeddedLanguages\Json\JsonParser.cs (1)
344using var _ = ArrayBuilder<JsonNodeOrToken>.GetInstance(out var result);
EmbeddedLanguages\RegularExpressions\RegexParser.cs (1)
265using var _ = ArrayBuilder<RegexNodeOrToken>.GetInstance(out var builder);
EmbeddedLanguages\StackFrame\StackFrameParser.cs (2)
375using var _ = ArrayBuilder<StackFrameNodeOrToken>.GetInstance(out var builder); 431using var _ = ArrayBuilder<StackFrameNodeOrToken>.GetInstance(out var builder);
Microsoft.CodeAnalysis.Workspaces (14)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSeparatedSyntaxNodeList.cs (3)
17public ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> NodesAndTokens { get; } 25ImmutableArray<EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>> nodesAndTokens) 67var nodeOrToken = NodesAndTokens[index * 2];
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (9)
51internal abstract EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode> ChildAt(int index); 53public EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode> this[int index] => ChildAt(index); 54public EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode> this[Index index] => this[index.GetOffset(this.ChildCount)]; 82var child = ChildAt(i); 95var child = ChildAt(i); 107foreach (var child in this) 127foreach (var child in this) 181var child = this[i]; 213public EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode> Current { get; private set; }
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNodeOrToken.cs (2)
46public static implicit operator EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>(TSyntaxNode? node) 49public static implicit operator EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>(EmbeddedSyntaxToken<TSyntaxKind> token)