Defines a Mustache token holder.
Description
The MustacheToken defines a Mustache token holder.
Constructors
Creates an instance of a Mustache token.
publicconstructor(type: MustacheTokenType, value: string, line: number, column: number)
- type: MustacheTokenType - token type.
- value: string - token value.
- line: number - line number where the token is.
- column: number - column number where the token is.
Properties
column
Column number where the token is.
publiccolumn(): number
- returns: number - column number.
line
Line number where the token is.
publicline(): number
- returns: number - line number.
tokens
Gets a list of subtokens.
publictokens(): MustacheToken[]
- returns: MustacheToken[] - list of subtokens.
type
Gets the token type.
publictype(): MustacheTokenType
- returns: MustacheTokenType - token type.
value
Gets the token value or variable name.
publicvalue(): string
- returns: string - token value or variable name.