type

Loc

@Js
const class Loc : Obj

Source code location.

constructors

make

Constructor

fields

eval

Generic eval location

file

File or func record name

line

Line number (one based)

unknown

Unknown location

methods

isUnknown

Is this the unknown location

toStr

Location string

Slot Details

eval

const static Loc eval := Loc.<ctor>("eval", 0)

Generic eval location

file

const Str file

File or func record name

isUnknown

Bool isUnknown()

Is this the unknown location

line

const Int line

Line number (one based)

make

new make(Str file, Int line := 0)

Constructor

toStr

virtual override Str toStr()

Location string

unknown

const static Loc unknown := Loc.<ctor>("unknown", 0)

Unknown location