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.
*/
pub fn getSymbol(self: AsExpression) -> Symbol;

AsExpression::getAnAncestorEnclosingFunction

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

AsExpression::getIndex

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

AsExpression::getParentOid

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

AsExpression::getRelativePath

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

AsExpression::getLastChild

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

AsExpression::getEndColumnNumber

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

AsExpression::getKind

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

AsExpression::getAModifier

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

AsExpression::getChildCount

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

AsExpression::getDecorator

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

AsExpression::getChild

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

AsExpression::getAnAncestor

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

AsExpression::getRoot

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

AsExpression::getParent

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

AsExpression::getExpression

pub fn getExpression(self: AsExpression) -> Expression;

AsExpression::getEnclosingFunction

/**
* Gets the enclosing function of it
*/
pub fn getEnclosingFunction(self: AsExpression) -> FunctionLikeDeclaration;

AsExpression::getADescendant

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

AsExpression::getAChild

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

AsExpression::getStartColumnNumber

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

AsExpression::getStartLineNumber

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

AsExpression::__all__

Data constraint method.

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

AsExpression::getLocation

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

AsExpression::getType

pub fn getType(self: AsExpression) -> TypeNode;

AsExpression::getText

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

AsExpression::getEndLineNumber

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

AsExpression::getATrailingComment

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

AsExpression::getALeadingComment

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

AsExpression::getFile

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

AsExpression::getADecorator

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

AsExpression::getAComment

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

AsExpression::getModifier

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