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.

class Identifier
extern (D) nothrow
this
(
const(char)* name
,
size_t length
,
int value
)

Parameters

name
Type: const(char)*

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

length
Type: size_t

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

value
Type: int

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

Meta