public struct SourceLocation

Represents a line of code in a certain file.

Example

SourceLocation string representation should be a JSON string

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

public string fileName
public size_t line
public string toString() inout

Converts the structure to a JSON string

Variables

fileName
string
line
size_t

Functions

toStringinout