EnhancedForStatement

/**
* A `for`-`in` or `for`-`of` loop.
*/

Inherit from Statement

Primary key: id: int

schema EnhancedForStatement extends Statement {
  @primary id: int
}

EnhancedForStatement::getSymbol

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

EnhancedForStatement::getAnAncestorEnclosingFunction

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

EnhancedForStatement::getIndex

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

EnhancedForStatement::getParentOid

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

EnhancedForStatement::getRelativePath

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

EnhancedForStatement::getLastChild

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

EnhancedForStatement::getEndColumnNumber

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

EnhancedForStatement::getKind

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

EnhancedForStatement::getAModifier

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

EnhancedForStatement::getADecorator

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

EnhancedForStatement::getAComment

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

EnhancedForStatement::getDecorator

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

EnhancedForStatement::getADescendant

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

EnhancedForStatement::getEnclosingFunction

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

EnhancedForStatement::getRoot

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

EnhancedForStatement::getChild

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

EnhancedForStatement::getAnAncestor

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

EnhancedForStatement::getInitializer

/**
* Gets the iterator of this `for`-`in` or `for`-`of` loop.
*/
pub fn getInitializer(self: EnhancedForStatement) -> ForInitializer;

EnhancedForStatement::getParent

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

EnhancedForStatement::getExpression

/**
* Gets the expression over which this `for`-`in` or `for`-`of` loop iterates.
*/
pub fn getExpression(self: EnhancedForStatement) -> Expression;

EnhancedForStatement::getChildCount

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

EnhancedForStatement::__all__

Data constraint method.

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

EnhancedForStatement::getLocation

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

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

EnhancedForStatement::getAChild

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

EnhancedForStatement::getStartColumnNumber

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

EnhancedForStatement::getStartLineNumber

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

EnhancedForStatement::getEndLineNumber

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

EnhancedForStatement::getInitializerIndex

/**
* Gets the iterator index of this loop.
*
* In a `for`-`in` loop, the index is always 0.
* In a `for`-`of` loop, the index is 1 if it is a `for`-`await`-`of`, otherwise, the index is 0.
*/
pub fn getInitializerIndex(self: EnhancedForStatement) -> int;

EnhancedForStatement::getBody

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

EnhancedForStatement::getATrailingComment

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

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

EnhancedForStatement::getALeadingComment

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

EnhancedForStatement::getFile

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

EnhancedForStatement::getModifier

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

EnhancedForStatement::getText

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