VersionCondition

Node to represent a version condition

A version condition is of the form:

version (Identifier)

In user code. This class also provides means to add version identifier to the list of global (cross module) identifiers.

Constructors

this
this(Module mod, uint level, Identifier ident)

Instantiate a new VersionCondition

Members

Static functions

addGlobalIdent
void addGlobalIdent(const(char)* ident)
void addGlobalIdent(string ident)
void addGlobalIdent(const(char)[] ident)

Add an user-supplied global identifier to the list

addPredefinedGlobalIdent
void addPredefinedGlobalIdent(const(char)* ident)
void addPredefinedGlobalIdent(string ident)
void addPredefinedGlobalIdent(const(char)[] ident)

Add any global identifier to the list, without checking if it's predefined

checkReserved
void checkReserved(const ref Loc loc, const(char)[] ident)

Raises an error if a version identifier is reserved.

Meta