dmd.compiler
Describes a back-end compiler
and implements compiler
-specific actions.
License
Source: compiler.d
Documentation: https://dlang.org/phobos/dmd_compiler.html
-
Declaration
struct
Compiler
;A data structure that describes a back-end compiler and implements compiler-specific actions.
-
Declaration
static Expression
paintAsType
(UnionExp*pue
, Expressione
, Typetype
);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
. -
Declaration
static void
onParseModule
(Modulem
);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.
-
Declaration
static bool
onImport
(Modulem
);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.
-