TomlToken Struct
Represents a lexical token produced by TomlLexer.
public readonly struct TomlTokenConstructors
| Name | Description |
|---|---|
| TomlToken(TokenKind, TomlTextPosition, TomlTextPosition, string?, ulong) | Initializes a new instance of the TomlToken struct. |
TomlToken(TokenKind, TomlTextPosition, TomlTextPosition, string?, ulong)
TomlToken.csInitializes a new instance of the TomlToken struct.
public TomlToken(TokenKind kind, TomlTextPosition start, TomlTextPosition end, string? stringValue = null, ulong data = 0UL)Parameters
kindTokenKind- The token kind.
startTomlTextPosition- The start position.
endTomlTextPosition- The end position.
stringValuestring?- Optional decoded string value.
dataulong- Optional scalar payload.
Properties
| Name | Description |
|---|---|
| Data | Gets the optional scalar payload for tokens that carry a non-string value. |
| End | Gets the end position of this token. |
| Kind | Gets the token kind. |
| Length | Gets the token length (inclusive). |
| Start | Gets the start position of this token. |
| StringValue | Gets the optional decoded string value for tokens that carry a string payload. |
Data
TomlToken.csEnd
TomlToken.csKind
TomlToken.csLength
TomlToken.csStart
TomlToken.csStringValue
TomlToken.csMethods
| Name | Description |
|---|---|
| ToString() | Returns the fully qualified type name of this instance. |