Identifier

Constructors

this
this(const(char)* name, size_t length, int value)

Construct an identifier from a D slice

this
this(const(char)[] name, int value)
Undocumented in source.
this
this(const(char)* name)
Undocumented in source.

Members

Functions

dyncast
DYNCAST dyncast()
Undocumented in source. Be warned that the author may not have intended to support it.
getValue
int getValue()
Undocumented in source. Be warned that the author may not have intended to support it.
toChars
const(char)* toChars()
Undocumented in source. Be warned that the author may not have intended to support it.
toHChars2
const(char)* toHChars2()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
const(char)[] toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

anonymous
Identifier anonymous()

Sentinel for an anonymous identifier.

create
Identifier create(const(char)* name)
Undocumented in source. Be warned that the author may not have intended to support it.
generateId
Identifier generateId(const(char)[] prefix)
Undocumented in source. Be warned that the author may not have intended to support it.
generateId
Identifier generateId(const(char)[] prefix, size_t i)
Undocumented in source. Be warned that the author may not have intended to support it.
generateIdWithLoc
Identifier generateIdWithLoc(string prefix, Loc loc)

Generate deterministic named identifier based on a source location, such that the name is consistent across multiple compilations. A new unique name is generated. If the prefix+location is already in the stringtable, an extra suffix is added (starting the count at "_1").

idPool
Identifier idPool(const(char)* s, uint len)

Create an identifier in the string table.

idPool
Identifier idPool(const(char)[] s)
Undocumented in source. Be warned that the author may not have intended to support it.
idPool
Identifier idPool(const(char)* s, size_t len, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
idPool
Identifier idPool(const(char)[] s, int value)
Undocumented in source. Be warned that the author may not have intended to support it.
initTable
void initTable()
Undocumented in source. Be warned that the author may not have intended to support it.
isValidIdentifier
bool isValidIdentifier(const(char)* str)
bool isValidIdentifier(const(char)[] str)

Determine if string is a valid Identifier.

lookup
Identifier lookup(const(char)* s, size_t len)
Undocumented in source. Be warned that the author may not have intended to support it.
lookup
Identifier lookup(const(char)[] s)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From RootObject

equals
bool equals(RootObject o)
Undocumented in source. Be warned that the author may not have intended to support it.
toChars
const(char)* toChars()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
const(char)[] toString()
dyncast
DYNCAST dyncast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta