1 instantiation of SyntaxTokenParser
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1712return new SyntaxTokenParser(new InternalSyntax.Lexer(sourceText, options ?? CSharpParseOptions.Default));
12 references to SyntaxTokenParser
dotnet (1)
Commands\Run\FileBasedAppSourceEditor.cs (1)
129var tokenizer = FileLevelDirectiveHelpers.CreateTokenizer(SourceFile.Text);
Microsoft.CodeAnalysis.CSharp (1)
Syntax\SyntaxFactory.cs (1)
1710public static SyntaxTokenParser CreateTokenParser(SourceText sourceText, CSharpParseOptions? options = null)
Microsoft.CodeAnalysis.CSharp.Features (2)
SyncedSource\FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
26public static SyntaxTokenParser CreateTokenizer(SourceText text) 42var tokenizer = CreateTokenizer(sourceFile.Text);
Microsoft.CodeAnalysis.Razor.Compiler (6)
Language\Legacy\RoslynCSharpTokenizer.cs (6)
24private readonly SyntaxTokenParser _roslynTokenParser; 35private readonly List<(int position, SyntaxTokenParser.Result result, bool isOnlyWhitespaceOnLine)> _resultCache = ListPool<(int, SyntaxTokenParser.Result, bool)>.Default.Get(); 721private SyntaxTokenParser.Result GetNextResult(NextResultType expectedType) 728_ => Assumed.Unreachable<SyntaxTokenParser.Result>() 805ListPool<(int, SyntaxTokenParser.Result, bool)>.Default.Return(_resultCache);
Microsoft.DotNet.ProjectTools (2)
src\sdk\src\Cli\Microsoft.DotNet.FileBasedPrograms\FileLevelDirectiveHelpers.cs (2)
26public static SyntaxTokenParser CreateTokenizer(SourceText text) 42var tokenizer = CreateTokenizer(sourceFile.Text);