SourceLoc [Src]

Represents a location in a Pony source file, as reported by __loc.

interface val SourceLoc

Public Functions

file [Src]

Name and path of source file.

fun box file()
: String val

Returns


method [Src]

Name of containing method.

fun box method()
: String val

Returns


line [Src]

Line number within file. Line numbers start at 1.

fun box line()
: USize val

Returns


pos [Src]

Character position on line. Character positions start at 1.

fun box pos()
: USize val

Returns