-
Home
-
API
-
Tomlyn.Parsing
-
TomlLexer
-
Methods
-
Create(String, String?)
Create(String, String?) Method
Definition
Creates a lexer over TOML text.
public static TomlLexer Create(string toml, string? sourceName = null)
Parameters
- sourceName
- String
An optional source name used in diagnostics.
Returns
- TomlLexer
- A lexer instance positioned before the first token.