const class flux::Mark
sys::Obj flux::Mark
Mark is used to identify a uri with an optional line and column position.
- col
-
const Int? col
One based line column or null if unknown Note that fwt widgets are zero based.
- compare
-
virtual override Int compare(Obj that)
Compare URIs, then lines, then columns
- equals
-
virtual override Bool equals(Obj? that)
Equality is based on uri, line, and col.
- fromStr
-
static new 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.
- hash
-
virtual override Int hash()
Hash code is based on uri, line, and col.
- line
-
const Int? line
One based line number or null if unknown. Note that fwt widgets are zero based.
- make
-
new make(|This| f)
Default constructor with it-block.
- toStr
-
virtual override Str toStr()
Return string formatted as "uri:line:col" where the line and col are optional if null.
- uri
-
const Uri uri := ``
Uri of the resource