const(char)[]
inifilename;
filename of configuration file as given by-conf=, or default value
Array!ImportPathInfo
path;
Array of path informations which form the import lookup path
Array!(const(char)*)
importPaths;
Array of char*'s which form the import lookup path without metadata
Array!(const(char)*)
filePath;
Array of char*'s which form the file import lookup path
string returned by ctime()
command line parameters
number of errors reported so far
number of deprecations reported so far
number of warnings reported so far
!=0 means gag reporting of errors & warnings
number of errors reported while gagged
number of deprecations reported while gagged
opaque pointer to console for controlling text attributes
Array!Identifier
versionids;
command line versions and predefined versions
Array!Identifier
debugids;
command line debug versions and predefined versions
Whether a main function has already been compiled in (for -main switch)
Relative lifetime ofVarDeclaration within a function, used forscope checks
Cache files read from disk
number of recursive template expansions before abort
where the error messages go
where the error messages are ignored
nothrow @safe uint
startGagging();
Start ignoring compile errors instead of reporting them.
Used for speculative compilation like
__traits(compiles, XXX), but also internally to e.g. try out an
alias this rewrite without comitting to it.
Works like a stack, so N calls to
startGagging should be paired with N calls to
endGagging.
Returns:the current number of gagged errors, which should later be passed toendGagging
nothrow @safe bool
endGagging(uint
oldGagged);
Stop gagging, restoring the old gagged state before the most recent call tostartGagging.
Parameters:uintoldGagged | the previous number of errors, as returned bystartGagging |
Returns:true if errors occurred while gagged.
nothrow @safe void
increaseErrorCount();
Increment the error count to record that an error has occurred in the current context.
An error message may or may not have been printed.
nothrow void
deinitialize();
Deinitializes the global state of the compiler.
This can be used to restore the state set by_init to its original state.
nothrow void
plugErrorSinks();
Indicate to stateful error sinks that no more errors can be produced. This is to support error sinks that collect information to produce a single (say) report.
nothrow @safe uint
versionNumber();
Returns:the version as the number that would be returned for __VERSION__
nothrow @safe string
versionString();
Returns:compiler version string.
nothrow const(char*)
versionChars();
Returns:compiler version as char string.