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)
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(); 255if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.LessThanToken, out var lessThanToken)) 260if (_lexer.CurrentCharAsToken().Kind == StackFrameKind.LessThanToken) 267var identifier = _lexer.TryScanIdentifier(); 273if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GreaterThanToken, out var greaterThanToken)) 278if (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DollarToken, out var dollarToken)) 283var currentChar = _lexer.CurrentChar.Value; 291var (success, generatedNameSeparator) = _lexer.TryScanRequiredGeneratedNameSeparator(); 297var generatedIdentifier = _lexer.TryScanIdentifier(); 303if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.PipeToken, out var suffixSeparator)) 308(success, var suffix) = _lexer.TryScanRequiredGeneratedNameSuffix(); 334if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GraveAccentToken, out var graveAccentToken)) 344var arity = _lexer.TryScanNumbers(); 364if (!_lexer.ScanCurrentCharAsTokenIfMatch( 376var currentIdentifier = _lexer.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true); 383if (_lexer.ScanCurrentCharAsTokenIfMatch(closeBracketKind, out closeToken)) 388if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken)) 394currentIdentifier = _lexer.TryScanIdentifier(); 421if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenParenToken, scanTrailingWhitespace: true, out var openParen)) 426if (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out var closeParen)) 444if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken)) 452if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out closeParen)) 487var identifier = _lexer.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true); 510if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenBracketToken, scanTrailingWhitespace: true, out var openBracket)) 515while (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, scanTrailingWhitespace: true, out var commaToken)) 520if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseBracketToken, scanTrailingWhitespace: true, out var closeBracket)) 538var (success, path) = _lexer.TryScanPath(); 549if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.ColonToken, out var colonToken)) 554var lineNumber = _lexer.TryScanRequiredLineNumber();