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(Loc loc, Module mod, uint level, Identifier ident)

Instantiate a new VersionCondition

Members

Functions

accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
include
int include(Scope* sc)
Undocumented in source. Be warned that the author may not have intended to support it.
isVersionCondition
inout(VersionCondition) isVersionCondition()
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.

Static functions

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

Add an user-supplied global identifier to the list

addPredefinedGlobalIdent
deprecated 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(Loc loc, const(char)[] ident)

Raises an error if a version identifier is reserved.

Inherited Members

From DVCondition

level
uint level;
Undocumented in source.
ident
Identifier ident;
Undocumented in source.
mod
Module mod;
Undocumented in source.
syntaxCopy
DVCondition syntaxCopy()
Undocumented in source. Be warned that the author may not have intended to support it.
accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta