SyntaxFactory.CreateTokenParser(SourceText, CSharpParseOptions) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a token parser that can be used to parse tokens from a given source text.
public static Microsoft.CodeAnalysis.CSharp.SyntaxTokenParser CreateTokenParser (Microsoft.CodeAnalysis.Text.SourceText sourceText, Microsoft.CodeAnalysis.CSharp.CSharpParseOptions? options = default);
static member CreateTokenParser : Microsoft.CodeAnalysis.Text.SourceText * Microsoft.CodeAnalysis.CSharp.CSharpParseOptions -> Microsoft.CodeAnalysis.CSharp.SyntaxTokenParser
Public Shared Function CreateTokenParser (sourceText As SourceText, Optional options As CSharpParseOptions = Nothing) As SyntaxTokenParser
Parameters
- sourceText
- SourceText
The source to parse tokens from.
- options
- CSharpParseOptions
Parse options for the source.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.