1 instantiation of EmbeddedSyntaxToken
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (1)
64
return new
EmbeddedSyntaxToken
<TSyntaxKind>(
28 references to EmbeddedSyntaxToken
Microsoft.CodeAnalysis.Features (17)
EmbeddedLanguages\RegularExpressions\RegexParser.cs (7)
593
var
openBraceToken = _currentToken.With(kind: RegexKind.TextToken);
611
var
token = _currentToken.With(kind: RegexKind.TextToken).AddDiagnosticIfNone(
788
RegexToken
innerCloseParenToken;
1453
var
token = component.Token;
1721
var
numberToken = CreateToken(
1876
var
typeToken = ConsumeCurrentToken(allowTrivia: allowTriviaAfterEnd).With(kind: RegexKind.TextToken);
1947
var
controlToken = ConsumeCurrentToken(allowTrivia: allowTriviaAfterEnd).With(kind: RegexKind.TextToken);
EmbeddedLanguages\StackFrame\StackFrameLexer.cs (7)
241
return Result<
StackFrameToken
>.Empty;
279
return Result<
StackFrameToken
>.Abort;
340
return Result<
StackFrameToken
>.Abort;
349
return Result<
StackFrameToken
>.Abort;
365
return Result<
StackFrameToken
>.Abort;
374
return Result<
StackFrameToken
>.Abort;
380
return Result<
StackFrameToken
>.Abort;
EmbeddedLanguages\StackFrame\StackFrameParser.cs (3)
87
var
eolToken = CurrentCharAsToken().With(leadingTrivia: remainingTrivia.ToImmutableArray());
377
StackFrameToken
closeToken = default;
506
using var _1 = ArrayBuilder<
StackFrameToken
>.GetInstance(out var commaBuilder);
Microsoft.CodeAnalysis.Workspaces (11)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxHelpers.cs (2)
12
public static TextSpan GetSpan<TSyntaxKind>(
EmbeddedSyntaxToken
<TSyntaxKind> token1,
EmbeddedSyntaxToken
<TSyntaxKind> token2) where TSyntaxKind : struct
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNode.cs (1)
115
var
token = child.Token;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxNodeOrToken.cs (4)
15
private readonly
EmbeddedSyntaxToken
<TSyntaxKind> _token;
24
private EmbeddedSyntaxNodeOrToken(
EmbeddedSyntaxToken
<TSyntaxKind> token) : this()
30
public readonly
EmbeddedSyntaxToken
<TSyntaxKind> Token
49
public static implicit operator EmbeddedSyntaxNodeOrToken<TSyntaxKind, TSyntaxNode>(
EmbeddedSyntaxToken
<TSyntaxKind> token)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxToken.cs (3)
50
public
EmbeddedSyntaxToken
<TSyntaxKind> AddDiagnosticIfNone(EmbeddedDiagnostic diagnostic)
53
public
EmbeddedSyntaxToken
<TSyntaxKind> WithDiagnostics(ImmutableArray<EmbeddedDiagnostic> diagnostics)
56
public
EmbeddedSyntaxToken
<TSyntaxKind> With(
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\EmbeddedLanguages\Common\EmbeddedSyntaxTrivia.cs (1)
13
/// Trivia on an <see cref="
EmbeddedSyntaxToken
{TSyntaxKind}"/>.