1 write to _lexer
Microsoft.CodeAnalysis.Features (1)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (1)
30_lexer = lexer;
36 references to _lexer
Microsoft.CodeAnalysis.Features (36)
EmbeddedLanguages\StackFrame\StackFrameParser.cs (36)
33private readonly StackFrameToken CurrentCharAsToken() => _lexer.CurrentCharAsToken(); 86var remainingTrivia = _lexer.TryScanRemainingTrivia(); 90Contract.ThrowIfFalse(_lexer.Position == _lexer.Text.Length); 95return new(_lexer.Text, root); 150var currentIdentifer = _lexer.TryScanIdentifier(scanAtTrivia: scanAtTrivia, scanLeadingWhitespace: true, scanTrailingWhitespace: false); 189if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DotToken, out var dotToken)) 207var identifier = _lexer.TryScanIdentifier(); 249if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.LessThanToken, out var lessThanToken)) 254if (_lexer.CurrentCharAsToken().Kind == StackFrameKind.LessThanToken) 261var identifier = _lexer.TryScanIdentifier(); 267if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GreaterThanToken, out var greaterThanToken)) 272if (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.DollarToken, out var dollarToken)) 277var currentChar = _lexer.CurrentChar.Value; 285var (success, generatedNameSeparator) = _lexer.TryScanRequiredGeneratedNameSeparator(); 291var generatedIdentifier = _lexer.TryScanIdentifier(); 297if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.PipeToken, out var suffixSeparator)) 302(success, var suffix) = _lexer.TryScanRequiredGeneratedNameSuffix(); 328if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.GraveAccentToken, out var graveAccentToken)) 333var arity = _lexer.TryScanNumbers(); 353if (!_lexer.ScanCurrentCharAsTokenIfMatch( 365var currentIdentifier = _lexer.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true); 372if (_lexer.ScanCurrentCharAsTokenIfMatch(closeBracketKind, out closeToken)) 377if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken)) 383currentIdentifier = _lexer.TryScanIdentifier(); 410if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenParenToken, scanTrailingWhitespace: true, out var openParen)) 415if (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out var closeParen)) 433if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, out var commaToken)) 441if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseParenToken, out closeParen)) 476var identifier = _lexer.TryScanIdentifier(scanAtTrivia: false, scanLeadingWhitespace: true, scanTrailingWhitespace: true); 499if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.OpenBracketToken, scanTrailingWhitespace: true, out var openBracket)) 504while (_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CommaToken, scanTrailingWhitespace: true, out var commaToken)) 509if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.CloseBracketToken, scanTrailingWhitespace: true, out var closeBracket)) 527var (success, path) = _lexer.TryScanPath(); 538if (!_lexer.ScanCurrentCharAsTokenIfMatch(StackFrameKind.ColonToken, out var colonToken)) 543var lineNumber = _lexer.TryScanRequiredLineNumber();