Compiler

A data structure that describes a back-end compiler and implements compiler-specific actions.

Members

Aliases

OnStatementSemanticDone
alias OnStatementSemanticDone = void function(Statement, Scope*)
Undocumented in source.
OnStatementSemanticStart
alias OnStatementSemanticStart = void function(Statement, Scope*)
Undocumented in source.

Static functions

onImport
bool onImport(Module m)

A callback function that is called once an imported module is parsed. If the callback returns true, then it tells the frontend that the driver intends on compiling the import.

onParseModule
void onParseModule(Module m)

For the given module, perform any post parsing analysis. Certain compiler backends (ie: GDC) have special placeholder modules whose source are empty, but code gets injected immediately after loading.

paintAsType
Expression paintAsType(UnionExp* pue, Expression e, Type type)

Encode the given expression, which is assumed to be an rvalue literal as another type for use in CTFE. This corresponds roughly to the idiom *(Type *)&e.

Static variables

onStatementSemanticDone
OnStatementSemanticDone onStatementSemanticDone;

Used to insert functionality after the end of the semantic analysis of a statement when importing DMD as a library

onStatementSemanticStart
OnStatementSemanticStart onStatementSemanticStart;

Used to insert functionality before the start of the semantic analysis of a statement when importing DMD as a library

Meta