Struct SourceLocation

Represents a line of code in a certain file.

struct SourceLocation ;

Fields

NameTypeDescription
fileName string
line ulong

Methods

NameDescription
toString () Converts the structure to a JSON string

Example

SourceLocation string representation should be a JSON string

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