Identifier

Constructors

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

Construct an identifier from a D slice

Members

Static functions

anonymous
Identifier anonymous()

Sentinel for an anonymous identifier.

generateIdWithLoc
Identifier generateIdWithLoc(string prefix, const ref 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.

isValidIdentifier
bool isValidIdentifier(const(char)* str)
bool isValidIdentifier(const(char)[] str)

Determine if string is a valid Identifier.

Inherited Members

From RootObject

toString
const(char)[] toString()

Meta