Location
/**
* The location information of a locatable.
*/
Inherit from LocationDO
Primary key: oid: int
schema Location extends LocationDO {
@primary oid: int,
file_oid: int,
start_line_number: int,
start_column_number: int,
end_line_number: int,
end_column_number: int,
text: string
}
Location::getStartLineNumber
- Parameter
self
:Location
- Return
int
pub fn getStartLineNumber(self: Location) -> int;
Location::getFileOid
- Parameter
self
:Location
- Return
int
pub fn getFileOid(self: Location) -> int;
Location::getEndLineNumber
- Parameter
self
:Location
- Return
int
pub fn getEndLineNumber(self: Location) -> int;
Location::getFile
/**
* Gets the file of this location
* @return File
*/
pub fn getFile(self: Location) -> File;
Location::getStartColumnNumber
- Parameter
self
:Location
- Return
int
pub fn getStartColumnNumber(self: Location) -> int;
Location::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*Location
pub fn __all__(db: JavascriptDB) -> *Location;
Location::getRelativePath
/**
* Gets the file relative path of this location
*/
- Parameter
self
:Location
- Return
string
pub fn getRelativePath(self: Location) -> string;
Location::getText
- Parameter
self
:Location
- Return
string
pub fn getText(self: Location) -> string;
Location::getEndColumnNumber
- Parameter
self
:Location
- Return
int
pub fn getEndColumnNumber(self: Location) -> int;