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