One based line column number or zero if unknown
Filename location
Hash code
Is this the unknown location
One based line number or zero if unknown
Get an immutable representation of this instance or throw NotImmutableErr if this object cannot be represented as an immutable:
Return string representation as "file", "file(line)", or "file(line,col)". This is the standard format used by the Fantom compiler.
Trap a dynamic call for handling. Dynamic calls are invoked with the -> shortcut operator:
a->x a.trap("x", null)
a->x() a.trap("x", null)
a->x = b a.trap("x", [b])
a->x(b) a.trap("x", [b])
a->x(b, c) a.trap("x", [b, c])
The default implementation provided by Obj attempts to use reflection. If name maps to a method, it is invoked with the specified arguments. If name maps to a field and args.size is zero, get the field. If name maps to a field and args.size is one, set the field and return args[0]. Otherwise throw UnknownSlotErr.
This method called whenever an it-block is applied to an
object. The default implementation calls the function with this
,
and then returns this
.
Static
echoWrite x.toStr
to standard output followed by newline. If x
is null then print "null". If no argument is provided then
print an empty line.
Optional
x: JsObjStatic
inputsConstant for tool input location
Static
makeConstructor for filename string
Optional
line: numberOptional
col: numberStatic
makeStatic
syntheticConstant for synthetic location
Static
unknownConstant for an unknown location
FileLoc is a location within a text file or source string. It includes an optional one-base line number and column number. This class provides a standardized API for text based tools which need to report the line/column numbers of errors.