WithStatement

/**
* A `with` statement
*/

Inherit from Statement

Primary key: id: int

schema WithStatement extends Statement {
  @primary id: int
}

WithStatement::getSymbol

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

WithStatement::getAnAncestorEnclosingFunction

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

WithStatement::getIndex

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

WithStatement::getParentOid

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

WithStatement::getRelativePath

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

WithStatement::getLastChild

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

WithStatement::getEndColumnNumber

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

WithStatement::getKind

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

WithStatement::getAModifier

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

WithStatement::getDecorator

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

WithStatement::getChild

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

WithStatement::getAnAncestor

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

WithStatement::getChildCount

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

WithStatement::getStatement

/**
* Gets the statement belong to the WithStatement.
* Each WithStatement contains one and only one statement,
* Multiple statements should be grounded by a BlockStatement.
*/
pub fn getStatement(self: WithStatement) -> Statement;

WithStatement::getRoot

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

WithStatement::getParent

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

WithStatement::getExpression

/**
* Gets the expression belong to the WithStatement.
* Each WithStatement contains one and only one expression.
*/
pub fn getExpression(self: WithStatement) -> Expression;

WithStatement::getEnclosingFunction

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

WithStatement::getADescendant

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

WithStatement::getAChild

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

WithStatement::getStartColumnNumber

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

WithStatement::getStartLineNumber

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

WithStatement::__all__

Data constraint method.

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

WithStatement::getLocation

/**
* Gets the location of this node.
*/
pub fn getLocation(self: WithStatement) -> Location;

WithStatement::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: WithStatement, level: int) -> *Node;

WithStatement::getEndLineNumber

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

WithStatement::getATrailingComment

/**
* Gets the trailing comments of it
*/
pub fn getATrailingComment(self: WithStatement) -> *Comment;

WithStatement::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: WithStatement, level: int) -> Node;

WithStatement::getALeadingComment

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

WithStatement::getFile

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

WithStatement::getADecorator

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

WithStatement::getAComment

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

WithStatement::getModifier

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

WithStatement::getText

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