TokenStructure.this

Constructs a token.

  1. this(IdType type)
  2. this(IdType type, string text, size_t line, size_t column, size_t index)
    struct TokenStructure(IdType, string extraFields = "")
    pure nothrow @safe @nogc
    this
    (
    IdType type
    ,
    string text
    ,
    size_t line
    ,
    size_t column
    ,
    size_t index
    )

Parameters

type IdType

the token type

text string

the text of the token, which may be null

line size_t

the line number at which this token occurs

column size_t

the column number at which this token occurs

index size_t

the byte offset from the beginning of the input at which this token occurs

Meta