SourceLocation

The source location where something is defined in D code.

The implementation uses __traits(getLocation)

Members

Functions

toErrorString
string toErrorString()

Same as toString, but bolds the string using ANSI escape codes

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

sourceColumn
int sourceColumn;

The 1-based line number and column number where the symbol is defined.

sourceFile
string sourceFile;

The D filename, assumed to be of the same format as __FILE__.

sourceLine
int sourceLine;

The 1-based line number and column number where the symbol is defined.

Meta