2 writes to _lexer
Microsoft.CodeAnalysis.CSharp (2)
Syntax\SyntaxTokenParser.cs (2)
31_lexer = lexer; 36var lexer = Interlocked.CompareExchange(ref _lexer!, null, _lexer);
13 references to _lexer
Microsoft.CodeAnalysis.CSharp (13)
Syntax\SyntaxTokenParser.cs (13)
36var lexer = Interlocked.CompareExchange(ref _lexer!, null, _lexer); 53var startingDirectiveStack = _lexer.Directives; 54var startingPosition = _lexer.TextWindow.Position; 55var token = _lexer.Lex(InternalSyntax.LexerMode.Syntax); 67var startingDirectiveStack = _lexer.Directives; 68var startingPosition = _lexer.TextWindow.Position; 69var leadingTrivia = _lexer.LexSyntaxLeadingTrivia(); 82var startingDirectiveStack = _lexer.Directives; 83var startingPosition = _lexer.TextWindow.Position; 84var trailingTrivia = _lexer.LexSyntaxTrailingTrivia(); 96if (position < _lexer.TextWindow.Position) 99_lexer.TextWindow.Reset(position); 108_lexer.Reset(result.Token.Position, result.ContextStartDirectiveStack);