Defines a Mustache token holder.
Description
The MustacheToken class defines a Mustache token holder.
Constructors
Creates an instance of a Mustache token.
publicMustacheToken(MustacheTokenType type, string value, int line, int column)
- type: MustacheTokenType - token type.
- value: string - token value.
- line: int - line number where the token is.
- column: int - column number where the token is.
Properties
Column
Column number where the token is.
publicint Column { get; }
Line
Line number where the token is.
publicint Line { get; }
Tokens
Gets a list of subtokens.
publicIList<MustacheToken> Tokens { get; }
Type
Gets the token type.
publicMustacheTokenType Type
Value
Gets the token value or variable name.
publicstring Value { get; }
- returns: string - token value or variable name.