18 references to Lexer
Microsoft.CodeAnalysis.CSharp (10)
Parser\LanguageParser_InterpolatedString.cs (3)
73using var tempLexer = new Lexer(SourceText.From(originalText), this.Options, allowPreprocessorDirectives: false); 373using var tempLexer = new Lexer(SourceText.From(expressionText), options, allowPreprocessorDirectives: false, interpolationFollowedByColon: interpolation.HasColon); 463using var tempLexer = new Lexer(SourceText.From(fakeString), this.Options, allowPreprocessorDirectives: false);
Syntax\CSharpSyntaxTree.cs (2)
505using var lexer = new InternalSyntax.Lexer(text, options); 571using var lexer = new InternalSyntax.Lexer(newText, this.Options);
Syntax\SyntaxFactory.cs (5)
1591using (var lexer = new InternalSyntax.Lexer(MakeSourceText(text, offset), options)) 1602using (var lexer = new InternalSyntax.Lexer(MakeSourceText(text, offset), CSharpParseOptions.Default)) 1639using (var lexer = new InternalSyntax.Lexer(MakeSourceText(text, offset), CSharpParseOptions.Default)) 1657using (var lexer = new InternalSyntax.Lexer(MakeSourceText(text, offset), options ?? CSharpParseOptions.Default)) 1906return new InternalSyntax.Lexer(
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
SyntaxHelpers.cs (2)
206using var lexer = new InternalSyntax.Lexer(source, PreviewParseOptions, allowPreprocessorDirectives: false); 218using var lexer = new InternalSyntax.Lexer(source, PreviewParseOptions);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Semantics\TopLevelStatementsTests.cs (1)
8777using var lexer = new Syntax.InternalSyntax.Lexer(newText, TestOptions.RegularDefault);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
LexicalAndXml\CrefLexerTests.cs (1)
444using (var lexer = new InternalSyntax.Lexer(SourceText.From(text + "'"), TestOptions.RegularWithDocumentationComments))
LexicalAndXml\LexicalTests.cs (2)
72using (var lexer = new InternalSyntax.Lexer(SourceText.From(text), _options)) 85using (var lexer = new InternalSyntax.Lexer(SourceText.From(text), _options))
LexicalAndXml\NameAttributeValueLexerTests.cs (1)
408using (var lexer = new InternalSyntax.Lexer(SourceText.From(text + "'"), TestOptions.RegularWithDocumentationComments))
Parsing\ParsingTests.cs (1)
367var lexer = new Syntax.InternalSyntax.Lexer(Text.SourceText.From(text), CSharpParseOptions.Default);