type
FileLoc
src
@Js
const class FileLoc : Obj
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.
constructors
fields
col |
One based line column number or zero if unknown |
---|---|
file |
Filename location |
inputs |
Constant for tool input location |
line |
One based line number or zero if unknown |
synthetic |
Constant for synthetic location |
unknown |
Constant for an unknown location |
methods
compare |
Comparison operator |
---|---|
equals |
Equality operator |
hash |
Hash code |
isUnknown |
Is this the unknown location |
toStr |
Return string representation as "file", "file(line)", or "file(line,col)". |