1 write to _lexer
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
29
_lexer
= lexer;
36 references to _lexer
Microsoft.CodeAnalysis.Features (36)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (36)
32
private readonly StackFrameToken CurrentCharAsToken() =>
_lexer
.CurrentCharAsToken();
85
var remainingTrivia =
_lexer
.TryScanRemainingTrivia();
89
Contract.ThrowIfFalse(
_lexer
.Position ==
_lexer
.Text.Length);
94
return new(
_lexer
.Text, root);
149
var currentIdentifer =
_lexer
.TryScanIdentifier(scanAtTrivia: scanAtTrivia, scanLeadingWhitespace: true, scanTrailingWhitespace: false);
188
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DotToken, out var dotToken))
213
var identifier =
_lexer
.TryScanIdentifier();
255
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.LessThanToken, out var lessThanToken))
260
if (
_lexer
.CurrentCharAsToken().Kind == StackFrameKind.LessThanToken)
267
var identifier =
_lexer
.TryScanIdentifier();
273
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GreaterThanToken, out var greaterThanToken))
278
if (
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DollarToken, out var dollarToken))
283
var currentChar =
_lexer
.CurrentChar.Value;
291
var (success, generatedNameSeparator) =
_lexer
.TryScanRequiredGeneratedNameSeparator();
297
var generatedIdentifier =
_lexer
.TryScanIdentifier();
303
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.PipeToken, out var suffixSeparator))
308
(success, var suffix) =
_lexer
.TryScanRequiredGeneratedNameSuffix();
334
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GraveAccentToken, out var graveAccentToken))
344
var arity =
_lexer
.TryScanNumbers();
364
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(
376
var currentIdentifier =
_lexer
.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true);
383
if (
_lexer
.ScanCurrentCharAsTokenIfMatch(closeBracketKind, out closeToken))
388
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken))
394
currentIdentifier =
_lexer
.TryScanIdentifier();
421
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenParenToken, scanTrailingWhitespace: true, out var openParen))
426
if (
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out var closeParen))
444
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken))
452
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out closeParen))
487
var identifier =
_lexer
.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true);
510
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenBracketToken, scanTrailingWhitespace: true, out var openBracket))
515
while (
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, scanTrailingWhitespace: true, out var commaToken))
520
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseBracketToken, scanTrailingWhitespace: true, out var closeBracket))
538
var (success, path) =
_lexer
.TryScanPath();
549
if (!
_lexer
.ScanCurrentCharAsTokenIfMatch(StackFrameKind.ColonToken, out var colonToken))
554
var lineNumber =
_lexer
.TryScanRequiredLineNumber();