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