1 write to lexer
Microsoft.CodeAnalysis.CSharp (1)
Parser\SyntaxParser.cs (1)
60
this.
lexer
= lexer;
12 references to lexer
Microsoft.CodeAnalysis.CSharp (12)
Parser\DirectiveParser.cs (3)
36
var hashPosition =
lexer
.TextWindow.Position;
111
if (
lexer
.Options.Kind == SourceCodeKind.Script && contextualKind == SyntaxKind.ExclamationToken && hashPosition == 0 && !hash.HasTrailingTrivia)
685
=> this.
lexer
.LexEndOfDirectiveWithOptionalPreprocessingMessage();
Parser\LanguageParser.cs (3)
220
return CreateForGlobalFailure(
lexer
.TextWindow.Position, createEmptyNodeFunc(this));
230
builder.Add(SyntaxFactory.BadToken(null,
lexer
.TextWindow.Text.ToString(), null));
11321
if (this.CurrentToken.Kind == SyntaxKind.EndOfFileToken && this.
lexer
.InterpolationFollowedByColon)
Parser\SyntaxParser.cs (6)
126
_firstBlender = new Blender(this.
lexer
, oldTree: null, changes: null);
141
var size = Math.Min(CachedTokenArraySize, this.
lexer
.TextWindow.Text.Length / 2);
142
var lexer = this.
lexer
;
221
get { return this.
lexer
.Options; }
363
this.AddLexedToken(this.
lexer
.Lex(_mode));
1128
get { return
lexer
.Directives; }