SourceLoc¶
Represents a location in a Pony source file, as reported by __loc
.
Public Functions¶
file¶
Name and path of source file.
Returns¶
- String val
type_name¶
Name of nearest class, actor, primitive, struct, interface, or trait.
Returns¶
- String val
method_name¶
Name of containing method.
Returns¶
- String val
line¶
Line number within file. Line numbers start at 1.
Returns¶
- USize val
pos¶
Character position on line. Character positions start at 1.
Returns¶
- USize val