Identifier.this

Construct an identifier from a D slice

Note: Since name needs to be \0 terminated for toChars, no slice overload is provided yet.

  1. this(const(char)* name, size_t length, int value)
    class Identifier
    extern (D) nothrow
    this
    (
    const(char)* name
    ,
    size_t length
    ,
    int value
    )
  2. this(const(char)[] name, int value)
  3. this(const(char)* name)

Parameters

name const(char)*

the identifier name There must be '\0' at name[length].

length size_t

the length of name, excluding the terminating '\0'

value int

Identifier value (e.g. Id.unitTest) or TOK.identifier

Meta