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