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