Struct SourceLocation
Represents a line of code in a certain file.
struct SourceLocation
;
Fields
Name | Type | Description |
---|---|---|
fileName
|
string | |
line
|
ulong |
Methods
Name | Description |
---|---|
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 }`);