WhileStatement

/**
* A `while` loop.
*/

Inherit from Statement

Primary key: id: int

schema WhileStatement extends Statement {
  @primary id: int
}

WhileStatement::getSymbol

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

WhileStatement::getAnAncestorEnclosingFunction

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

WhileStatement::getIndex

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

WhileStatement::getParentOid

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

WhileStatement::getRelativePath

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

WhileStatement::getLastChild

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

WhileStatement::getEndColumnNumber

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

WhileStatement::getParent

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

WhileStatement::getKind

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

WhileStatement::getAModifier

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

WhileStatement::getChildCount

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

WhileStatement::getDecorator

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

WhileStatement::getChild

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

WhileStatement::getAnAncestor

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

WhileStatement::getRoot

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

WhileStatement::getCondition

/** 
* Gets the loop condition of this `while` loop. 
*/
pub fn getCondition(self: WhileStatement) -> Expression;

WhileStatement::getAChild

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

WhileStatement::getStartColumnNumber

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

WhileStatement::getStartLineNumber

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

WhileStatement::__all__

Data constraint method.

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

WhileStatement::getLocation

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

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

WhileStatement::getEnclosingFunction

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

WhileStatement::getADescendant

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

WhileStatement::getEndLineNumber

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

WhileStatement::getBody

/** 
* Gets the body of this `while` loop. 
*/
pub fn getBody(self: WhileStatement) -> Statement;

WhileStatement::getATrailingComment

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

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

WhileStatement::getALeadingComment

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

WhileStatement::getFile

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

WhileStatement::getADecorator

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

WhileStatement::getAComment

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

WhileStatement::getModifier

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

WhileStatement::getText

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