21 references to TextToken
Microsoft.CodeAnalysis.Features (21)
EmbeddedLanguages\RegularExpressions\RegexLexer.cs (4)
35
/// cref="RegexTextNode"/>s in a row (each containing a <see cref="RegexKind.
TextToken
"/> a
96
_ => RegexKind.
TextToken
,
392
RegexKind.
TextToken
, [], GetSubPatternToCurrentPos(start));
453
RegexKind.
TextToken
, [], GetSubPatternToCurrentPos(start));
EmbeddedLanguages\RegularExpressions\RegexParser.cs (17)
361
RegexKind.
TextToken
, startTextNode.TextToken.LeadingTrivia,
593
var openBraceToken = _currentToken.With(kind: RegexKind.
TextToken
);
611
var token = _currentToken.With(kind: RegexKind.
TextToken
).AddDiagnosticIfNone(
627
return new RegexTextNode(token.With(kind: RegexKind.
TextToken
));
1174
=> currentToken.Kind == RegexKind.
TextToken
&& currentToken.VirtualChars.Length == 1 && currentToken.VirtualChars[0].Value == ch;
1516
backslashToken, ConsumeCurrentToken(allowTrivia: false).With(kind: RegexKind.
TextToken
));
1555
var token = CreateToken(RegexKind.
TextToken
, [], textChars);
1573
ConsumeCurrentToken(allowTrivia: false).With(kind: RegexKind.
TextToken
));
1607
return new RegexSimpleEscapeNode(backslashToken, CreateMissingToken(RegexKind.
TextToken
));
1653
return new RegexSimpleEscapeNode(backslashToken, CreateMissingToken(RegexKind.
TextToken
));
1784
return new RegexSimpleEscapeNode(backslashToken, typeToken.With(kind: RegexKind.
TextToken
));
1876
var typeToken = ConsumeCurrentToken(allowTrivia: allowTriviaAfterEnd).With(kind: RegexKind.
TextToken
);
1915
return new RegexControlEscapeNode(backslashToken, typeToken, CreateMissingToken(RegexKind.
TextToken
));
1947
var controlToken = ConsumeCurrentToken(allowTrivia: allowTriviaAfterEnd).With(kind: RegexKind.
TextToken
);
1957
return new RegexControlEscapeNode(backslashToken, typeToken, CreateMissingToken(RegexKind.
TextToken
));
1977
typeToken = typeToken.With(kind: RegexKind.
TextToken
).AddDiagnosticIfNone(new EmbeddedDiagnostic(
2040
return new RegexTextNode(token.With(kind: RegexKind.
TextToken
));