SourceLocation

Represents a line of code in a certain file.

Members

Functions

toString
string toString()

Converts the structure to a JSON string

Variables

fileName
string fileName;
line
size_t line;

Examples

SourceLocation string representation should be a JSON string

SourceLocation("file.d", 10).toString.should.equal(`{ "fileName": "file.d", "line": 10 }`);

Meta