ForOfStatement

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

Inherit from EnhancedForStatement

Primary key: id: int

schema ForOfStatement extends EnhancedForStatement { @primary id: int } 

ForOfStatement::getText

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

ForOfStatement::getModifier

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

ForOfStatement::getFile

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

ForOfStatement::getALeadingComment

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

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

ForOfStatement::getATrailingComment

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

ForOfStatement::getBody

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

ForOfStatement::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: ForOfStatement) -> int; 

ForOfStatement::getEndLineNumber

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

ForOfStatement::getStartLineNumber

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

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

ForOfStatement::getLocation

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

ForOfStatement::getKind

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

ForOfStatement::getAModifier

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

ForOfStatement::__all__

Data constraint method.

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

ForOfStatement::getEndColumnNumber

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

ForOfStatement::getLastChild

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

ForOfStatement::getRelativePath

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

ForOfStatement::getParentOid

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

ForOfStatement::getADescendant

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

ForOfStatement::getEnclosingFunction

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

ForOfStatement::getRoot

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

ForOfStatement::getSymbol

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

ForOfStatement::getAnAncestorEnclosingFunction

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

ForOfStatement::getIndex

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

ForOfStatement::getInitializer

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

ForOfStatement::getStartColumnNumber

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

ForOfStatement::getAChild

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

ForOfStatement::isAwait

/** * Determines whether the `for`-`of` loop is a `for`-`await`-`of` loop */ 
pub fn isAwait(self: ForOfStatement) -> bool; 

ForOfStatement::getDecorator

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

ForOfStatement::getChildCount

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

ForOfStatement::getADecorator

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

ForOfStatement::getAComment

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

ForOfStatement::getChild

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

ForOfStatement::getAnAncestor

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

ForOfStatement::getParent

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

ForOfStatement::getExpression

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