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