const class flux::Mark

sys::Obj
  flux::Mark

Source

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

col

const Int? col

Source

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

compare

virtual override Int compare(Obj that)

Source

Compare URIs, then lines, then columns

equals

virtual override Bool equals(Obj? that)

Source

Equality is based on uri, line, and col.

fromStr

static new fromStr(Str text)

Source

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.

hash

virtual override Int hash()

Source

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

line

const Int? line

Source

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

make

new make(|This| f)

Source

Default constructor with it-block.

toStr

virtual override Str toStr()

Source

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

uri

const Uri uri := ``

Source

Uri of the resource