Struct Token
Definition
Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll
A token emitted by the StarML Lexer.
Inheritance
Object ⇦ ValueType ⇦ Token
Members
Constructors
| Name | Description |
|---|---|
| Token(TokenType, ReadOnlySpan<Char>) | A token emitted by the StarML Lexer. |
Properties
| Name | Description |
|---|---|
| Text | The token type. |
| Type | The exact text of the token in the original markup. |
Methods
| Name | Description |
|---|---|
| Equals(Object) | (Inherited from ValueType) |
| GetHashCode() | (Inherited from ValueType) |
| ToString() | (Overrides Object.ToString()) |
Details
Constructors
Token(TokenType, ReadOnlySpan<Char>)
A token emitted by the StarML Lexer.
Parameters
type TokenType
The token type.
text ReadOnlySpan<Char>
The exact text of the token in the original markup.
Properties
Text
The token type.
Property Value
Type
The exact text of the token in the original markup.