ForStatement

/**
* A `for` loop.
*/

Inherit from Statement

Primary key: id: int

schema ForStatement extends Statement {
  @primary id: int
}

ForStatement::getSymbol

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

ForStatement::getAnAncestorEnclosingFunction

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

ForStatement::getIndex

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

ForStatement::getParentOid

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

ForStatement::getRelativePath

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

ForStatement::getLastChild

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

ForStatement::getEndColumnNumber

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

ForStatement::getParent

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

ForStatement::getKind

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

ForStatement::getAModifier

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

ForStatement::getADecorator

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

ForStatement::getAComment

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

ForStatement::getDecorator

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

ForStatement::getText

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

ForStatement::getModifier

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

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

ForStatement::getLocation

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

ForStatement::getADescendant

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

ForStatement::getEnclosingFunction

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

ForStatement::getRoot

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

ForStatement::__all__

Data constraint method.

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

ForStatement::hasIncrementor

/**
* Determine this ForStatement has incrementor expr.
*/
pub fn hasIncrementor(self: ForStatement) -> bool;

ForStatement::hasInitializer

/**
* Determine this ForStatement has initializer expr.
*/
pub fn hasInitializer(self: ForStatement) -> bool;

ForStatement::getInitializer

/** 
* Gets the Initializer of this `for` loop.
*/
pub fn getInitializer(self: ForStatement) -> ForInitializer;

ForStatement::getCondition

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

ForStatement::hasCondition

/**
* Determine this ForStatement has condition expr.
*/
pub fn hasCondition(self: ForStatement) -> bool;

ForStatement::getAnAncestor

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

ForStatement::getChild

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

ForStatement::getChildCount

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

ForStatement::getAChild

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

ForStatement::getStartColumnNumber

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

ForStatement::getStartLineNumber

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

ForStatement::getEndLineNumber

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

ForStatement::getIncrementor

/** 
* Gets the incrementor of this `for` loop.
*/
pub fn getIncrementor(self: ForStatement) -> Expression;

ForStatement::getInitializerIndex

/**
* Gets the initializer index of this for loop.
*/
pub fn getInitializerIndex(self: ForStatement) -> int;

ForStatement::getBody

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

ForStatement::getATrailingComment

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

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

ForStatement::getALeadingComment

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

ForStatement::getFile

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