Fantom

 

const class

flux::Mark

sys::Obj
  flux::Mark

Mark is used to identify a uri with an optional line and column position.

Slots

colSource

const Int? col

One based line column or null if unknown Note that fwt widgets are zero based.

compareSource

override Int compare(Obj that)

Overrides sys::Obj.compare

Compare URIs, then lines, then columns

equalsSource

override Bool equals(Obj? that)

Overrides sys::Obj.equals

Equality is based on uri, line, and col.

fromStrSource

static Mark? fromStr(Str text)

Attempt to parse an arbitrary line of text into a mark. We attempt to match anything that looks like a absolute file name. If we match a filename, then we look for an optional line and column number no more than a few chars from the filename. This will correctly handle output from various compilers including Fantom compilers, javac, and the C# compiler. Return null if file path found.

hashSource

override Int hash()

Overrides sys::Obj.hash

Hash code is based on uri, line, and col.

lineSource

const Int? line

One based line number or null if unknown. Note that fwt widgets are zero based.

makeSource

new make(|Mark| f)

Default constructor with it-block.

toStrSource

override Str toStr()

Overrides sys::Obj.toStr

Return string formatted as "uri:line:col" where the line and col are optional if null.

uriSource

const Uri uri := ``

Uri of the resource