Global

Collection of global compiler settings and global state used by the frontend

Members

Functions

deinitialize
void deinitialize()

Deinitializes the global state of the compiler.

endGagging
bool endGagging(uint oldGagged)

Stop gagging, restoring the old gagged state before the most recent call to startGagging.

increaseErrorCount
void increaseErrorCount()

Increment the error count to record that an error has occurred in the current context.

startGagging
uint startGagging()

Start ignoring compile errors instead of reporting them.

versionChars
const(char*) versionChars()
versionNumber
uint versionNumber()
versionString
string versionString()

Manifest constants

recursionLimit
enum recursionLimit;

number of recursive template expansions before abort

Variables

console
void* console;

opaque pointer to console for controlling text attributes

debugids
Array!Identifier* debugids;

command line debug versions and predefined versions

errorSink
ErrorSink errorSink;

where the error messages go

errors
uint errors;

number of errors reported so far

fileManager
FileManager fileManager;

Cache files read from disk

filePath
Array!(const(char)*)* filePath;

Array of char*'s which form the file import lookup path

gag
uint gag;

!=0 means gag reporting of errors & warnings

gaggedErrors
uint gaggedErrors;

number of errors reported while gagged

gaggedWarnings
uint gaggedWarnings;

number of warnings reported while gagged

hasMainFunction
bool hasMainFunction;

Whether a main function has already been compiled in (for -main switch)

inifilename
const(char)[] inifilename;

filename of configuration file as given by -conf=, or default value

params
Param params;

command line parameters

path
Array!(const(char)*)* path;

Array of char*'s which form the import lookup path

varSequenceNumber
uint varSequenceNumber;

Relative lifetime of VarDeclaration within a function, used for scope checks

versionids
Array!Identifier* versionids;

command line versions and predefined versions

warnings
uint warnings;

number of warnings reported so far

Meta