TokenStructure.this

this(IdType type) pure nothrow @safe @nogc

Constructs a token from a token type.

Parameters

typethe token type
this(IdType type, string text, size_t line, size_t column, size_t index) pure nothrow @safe @nogc

Constructs a token.

Parameters

typethe token type
textthe text of the token, which may be null
linethe line number at which this token occurs, 1-based
columnthe column number at which this token occurs, 1-based
indexthe byte offset from the beginning of the input at which this token occurs, 0-based