MustacheToken

Defines a Mustache token holder.

Description

The MustacheToken defines a Mustache token holder.

Constructors

Creates an instance of a Mustache token.

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.

int get column

  • returns: int - column number.

line

Line number where the token is.

int get line

  • returns: int - line number.

tokens

Gets a list of subtokens.

List<MustacheToken> get tokens

type

Gets the token type.

MustacheTokenType get type

value

Gets the token value or variable name.

String? get value

  • returns: String? - token value or variable name.