IterationStatement

/** * An iteration statement, including `while`, `do`-`while`, * `for` and enhanced `for` (`for`-`in`, `for`-`of`) statements. */ 

Inherit from Statement

Primary key: id: int

schema IterationStatement extends Statement { @primary id: int } 

IterationStatement::getSymbol

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

IterationStatement::getAnAncestorEnclosingFunction

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

IterationStatement::getIndex

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

IterationStatement::getParentOid

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

IterationStatement::getRelativePath

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

IterationStatement::getLastChild

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

IterationStatement::getEndColumnNumber

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

IterationStatement::getParent

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

IterationStatement::getKind

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

IterationStatement::getAModifier

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

IterationStatement::getChildCount

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

IterationStatement::getDecorator

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

IterationStatement::getChild

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

IterationStatement::getAnAncestor

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

IterationStatement::getRoot

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

IterationStatement::getAChild

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

IterationStatement::getStartColumnNumber

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

IterationStatement::getStartLineNumber

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

IterationStatement::getCondition

/** * Gets the condition expression of this iteration statement. * Only a `while`, `do`-`while` and `for` statement has a condition. */ 
pub fn getCondition(self: IterationStatement) -> Expression; 

IterationStatement::__all__

Data constraint method.

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

IterationStatement::getLocation

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

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

IterationStatement::getEnclosingFunction

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

IterationStatement::getADescendant

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

IterationStatement::getEndLineNumber

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

IterationStatement::getBody

/** * Gets the body statement of this iteration statement. */ 
pub fn getBody(self: IterationStatement) -> Statement; 

IterationStatement::getATrailingComment

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

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

IterationStatement::getALeadingComment

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

IterationStatement::getFile

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

IterationStatement::getADecorator

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

IterationStatement::getAComment

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

IterationStatement::getModifier

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

IterationStatement::getText

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