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

pub fn getStartLineNumber(self: Location) -> int; 

Location::getFileOid

pub fn getFileOid(self: Location) -> int; 

Location::getEndLineNumber

pub fn getEndLineNumber(self: Location) -> int; 

Location::getFile

/** * Gets the file of this location * @return File */ 
pub fn getFile(self: Location) -> File; 

Location::getStartColumnNumber

pub fn getStartColumnNumber(self: Location) -> int; 

Location::__all__

Data constraint method.

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

pub fn getEndColumnNumber(self: Location) -> int;