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
*/
pub fn getEnclosingFunction(self: Expression) -> FunctionLikeDeclaration;

Expression::getADescendant

/**
* Gets a descendant of this node. 
*/
pub fn getADescendant(self: Expression) -> *Node;

Expression::getRoot

/**
* Gets the root top-level of this node. 
*/
pub fn getRoot(self: Expression) -> TopLevelDO;

Expression::getAnAncestor

/**
* Gets an ancestor of this node. 
*/
pub fn getAnAncestor(self: Expression) -> *Node;

Expression::getChild

/**
* Gets the `i`th child of this node.
*/
pub fn getChild(self: Expression, i: int) -> Node;

Expression::getChildCount

/**
* Gets the number of child nodes.
*/
pub fn getChildCount(self: Expression) -> int;

Expression::getAChild

/**
* Gets a child node of this node.
*/
pub fn getAChild(self: Expression) -> *Node;

Expression::getStartColumnNumber

pub fn getStartColumnNumber(self: Expression) -> int;

Expression::getStartLineNumber

pub fn getStartLineNumber(self: Expression) -> int;

Expression::getEndLineNumber

pub fn getEndLineNumber(self: Expression) -> int;

Expression::getATrailingComment

/**
* Gets the trailing comments of it
*/
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.
*/
pub fn getAnAncestorByLevel(self: Expression, level: int) -> Node;

Expression::getALeadingComment

/**
* Gets the leading comments of it
*/
pub fn getALeadingComment(self: Expression) -> *Comment;

Expression::getFile

/**
* Gets the file of this node.
*/
pub fn getFile(self: Expression) -> File;

Expression::__all__

Data constraint method.

pub fn __all__(db: JavascriptDB) -> *Expression;

Expression::getLocation

/**
* Gets the location of this node.
*/
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.
*/
pub fn getADescendantByLevel(self: Expression, level: int) -> *Node;

Expression::getModifier

/**
* Gets the `i`th modifier.
*/
pub fn getModifier(self: Expression, i: int) -> Modifier;

Expression::getText

/**
* Gets the text of this node.
*/
pub fn getText(self: Expression) -> string;

Expression::getDecorator

/**
* Gets the `i`th decorator.
*/
pub fn getDecorator(self: Expression, i: int) -> Decorator;

Expression::getAComment

/**
* Gets the comments related to it
*/
pub fn getAComment(self: Expression) -> *Comment;

Expression::getADecorator

/**
* Gets a decorator.
*/
pub fn getADecorator(self: Expression) -> *Decorator;

Expression::getAModifier

/**
* Gets a modifier.
*/
pub fn getAModifier(self: Expression) -> *Modifier;

Expression::getKind

/**
* Get the syntax kind of this node
*/
pub fn getKind(self: Expression) -> int;

Expression::getParent

/**
* Gets the parent node of this node.
*/
pub fn getParent(self: Expression) -> Node;

Expression::getEndColumnNumber

pub fn getEndColumnNumber(self: Expression) -> int;

Expression::getLastChild

/**
* Gets the last child of this node parent.
*/
pub fn getLastChild(self: Expression) -> Node;

Expression::getRelativePath

/**
* Gets the relative path of this node.
*/
pub fn getRelativePath(self: Expression) -> string;

Expression::getParentOid

/**
* Gets the parent oid of this node.
*/
pub fn getParentOid(self: Expression) -> int;

Expression::getIndex

pub fn getIndex(self: Expression) -> int;

Expression::getAnAncestorEnclosingFunction

/**
* Gets an ancestor enclosing function of it
*/
pub fn getAnAncestorEnclosingFunction(self: Expression) -> *FunctionLikeDeclaration;

Expression::getSymbol

/**
* Gets the symbol associated with this node.
*/
pub fn getSymbol(self: Expression) -> Symbol;