1 write to _lexer
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
29_lexer = lexer;
39 references to _lexer
Microsoft.CodeAnalysis.Features (39)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (39)
32private readonly StackFrameToken CurrentCharAsToken() => _lexer.CurrentCharAsToken(); 85var remainingTrivia = _lexer.TryScanRemainingTrivia(); 89Contract.ThrowIfFalse(_lexer.Position == _lexer.Text.Length); 94return new(_lexer.Text, root); 149var currentIdentifer = _lexer.TryScanIdentifier(scanAtTrivia: scanAtTrivia, scanLeadingWhitespace: true, scanTrailingWhitespace: false); 188if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DotToken, out var dotToken)) 213var identifier = _lexer.TryScanIdentifier(); 263if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.LessThanToken, out var lessThanToken)) 268if (_lexer.CurrentCharAsToken().Kind == StackFrameKind.LessThanToken) 275var identifier = _lexer.TryScanIdentifier(); 281if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GreaterThanToken, out var greaterThanToken)) 286if (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DollarToken, out var dollarToken)) 291var currentChar = _lexer.CurrentChar.Value; 311var (success, generatedNameSeparator) = _lexer.TryScanRequiredGeneratedNameSeparator(); 317var generatedIdentifier = _lexer.TryScanIdentifier(); 323if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.PipeToken, out var suffixSeparator)) 328(success, var suffix) = _lexer.TryScanRequiredGeneratedNameSuffix(); 340var (success, generatedNameSeparator) = _lexer.TryScanRequiredGeneratedNameSeparator(scanNumericsAfter: true); 346if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DotToken, out var dotToken)) 351var generatedIdentifier = _lexer.TryScanIdentifier(); 372if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GraveAccentToken, out var graveAccentToken)) 382var arity = _lexer.TryScanNumbers(); 402if (!_lexer.ScanCurrentCharAsTokenIfMatch( 414var currentIdentifier = _lexer.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true); 421if (_lexer.ScanCurrentCharAsTokenIfMatch(closeBracketKind, out closeToken)) 426if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken)) 432currentIdentifier = _lexer.TryScanIdentifier(); 459if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenParenToken, scanTrailingWhitespace: true, out var openParen)) 464if (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out var closeParen)) 482if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken)) 490if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out closeParen)) 525var identifier = _lexer.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true); 548if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenBracketToken, scanTrailingWhitespace: true, out var openBracket)) 553while (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, scanTrailingWhitespace: true, out var commaToken)) 558if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseBracketToken, scanTrailingWhitespace: true, out var closeBracket)) 576var (success, path) = _lexer.TryScanPath(); 587if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.ColonToken, out var colonToken)) 592var lineNumber = _lexer.TryScanRequiredLineNumber();