Statement
/**
* The base class for all statements
*/
Inherit from Node
Primary key: id: int
schema Statement extends Node {
@primary id: int
}
Statement::getEnclosingFunction
/**
* Gets the enclosing function of it
*/
- Parameter
self
:Statement
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: Statement) -> FunctionLikeDeclaration;
Statement::getADescendant
/**
* Gets a descendant of this node.
*/
pub fn getADescendant(self: Statement) -> *Node;
Statement::getRoot
/**
* Gets the root top-level of this node.
*/
- Parameter
self
:Statement
- Return
TopLevelDO
pub fn getRoot(self: Statement) -> TopLevelDO;
Statement::getAnAncestor
/**
* Gets an ancestor of this node.
*/
pub fn getAnAncestor(self: Statement) -> *Node;
Statement::getChild
/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: Statement, i: int) -> Node;
Statement::getChildCount
/**
* Gets the number of child nodes.
*/
- Parameter
self
:Statement
- Return
int
pub fn getChildCount(self: Statement) -> int;
Statement::getAChild
/**
* Gets a child node of this node.
*/
pub fn getAChild(self: Statement) -> *Node;
Statement::getStartColumnNumber
- Parameter
self
:Statement
- Return
int
pub fn getStartColumnNumber(self: Statement) -> int;
Statement::getStartLineNumber
- Parameter
self
:Statement
- Return
int
pub fn getStartLineNumber(self: Statement) -> int;
Statement::getEndLineNumber
- Parameter
self
:Statement
- Return
int
pub fn getEndLineNumber(self: Statement) -> int;
Statement::getATrailingComment
/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: Statement) -> *Comment;
Statement::getAnAncestorByLevel
/**
* Gets an ancestor of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getAnAncestorByLevel(self: Statement, level: int) -> Node;
Statement::getALeadingComment
/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: Statement) -> *Comment;
Statement::getFile
/**
* Gets the file of this node.
*/
pub fn getFile(self: Statement) -> File;
Statement::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*Statement
pub fn __all__(db: JavascriptDB) -> *Statement;
Statement::getLocation
/**
* Gets the location of this node.
*/
pub fn getLocation(self: Statement) -> Location;
Statement::getADescendantByLevel
/**
* Gets a descendant of this node by the level of the hierarchy.
*
* @param level: the number of levels to go up in the hierarchy.
*/
pub fn getADescendantByLevel(self: Statement, level: int) -> *Node;
Statement::getModifier
/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: Statement, i: int) -> Modifier;
Statement::getText
/**
* Gets the text of this node.
*/
- Parameter
self
:Statement
- Return
string
pub fn getText(self: Statement) -> string;
Statement::getDecorator
/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: Statement, i: int) -> Decorator;
Statement::getAComment
/**
* Gets the comments related to it
*/
pub fn getAComment(self: Statement) -> *Comment;
Statement::getADecorator
/**
* Gets a decorator.
*/
- Parameter
self
:Statement
- Return
*Decorator
pub fn getADecorator(self: Statement) -> *Decorator;
Statement::getAModifier
/**
* Gets a modifier.
*/
pub fn getAModifier(self: Statement) -> *Modifier;
Statement::getKind
/**
* Get the syntax kind of this node
*/
- Parameter
self
:Statement
- Return
int
pub fn getKind(self: Statement) -> int;
Statement::getParent
/**
* Gets the parent node of this node.
*/
pub fn getParent(self: Statement) -> Node;
Statement::getEndColumnNumber
- Parameter
self
:Statement
- Return
int
pub fn getEndColumnNumber(self: Statement) -> int;
Statement::getLastChild
/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: Statement) -> Node;
Statement::getRelativePath
/**
* Gets the relative path of this node.
*/
- Parameter
self
:Statement
- Return
string
pub fn getRelativePath(self: Statement) -> string;
Statement::getParentOid
/**
* Gets the parent oid of this node.
*/
- Parameter
self
:Statement
- Return
int
pub fn getParentOid(self: Statement) -> int;
Statement::getIndex
- Parameter
self
:Statement
- Return
int
pub fn getIndex(self: Statement) -> int;
Statement::getAnAncestorEnclosingFunction
/**
* Gets an ancestor enclosing function of it
*/
- Parameter
self
:Statement
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: Statement) -> *FunctionLikeDeclaration;
Statement::getSymbol
/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: Statement) -> Symbol;