Defines a Mustache token holder.
Description
The MustacheToken class defines a Mustache token holder.
Constructors
Creates an instance of a Mustache token.
public
MustacheToken(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.
public
int Column { get; }
Line
Line number where the token is.
public
int Line { get; }
Tokens
Gets a list of subtokens.
public
IList<MustacheToken> Tokens { get; }
Type
Gets the token type.
public
MustacheTokenType Type
Value
Gets the token value or variable name.
public
string Value { get; }
- returns: string - token value or variable name.