Compiler implementation of the D programming language.
Construct an identifier from a D slice
name
needs to be \0
terminated for toChars
, no slice overload is provided yet. const(char)* name
| the identifier name There must be '\0' at name[length] . |
size_t length
| the length of name , excluding the terminating '\0'
|
int value
| Identifier value (e.g. Id.unitTest ) or TOK.identifier
|
Sentinel for an anonymous identifier.
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").
string prefix
| first part of the identifier name. |
Loc loc
| source location to use in the identifier name. |
Create an identifier in the string table.
Determine if string is a valid Identifier.
const(char)* str
| string to check |
© 1999–2019 The D Language Foundation
Licensed under the Boost License 1.0.
https://dlang.org/phobos/dmd_identifier.html