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. */
- Parameter
self
:EnhancedForStatement
- Return
Symbol
pub fn getSymbol(self: EnhancedForStatement) -> Symbol;
EnhancedForStatement::getAnAncestorEnclosingFunction
/** * Gets an ancestor enclosing function of it */
- Parameter
self
:EnhancedForStatement
- Return
*FunctionLikeDeclaration
pub fn getAnAncestorEnclosingFunction(self: EnhancedForStatement) -> *FunctionLikeDeclaration;
EnhancedForStatement::getIndex
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getIndex(self: EnhancedForStatement) -> int;
EnhancedForStatement::getParentOid
/** * Gets the parent oid of this node. */
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getParentOid(self: EnhancedForStatement) -> int;
EnhancedForStatement::getRelativePath
/** * Gets the relative path of this node. */
- Parameter
self
:EnhancedForStatement
- Return
string
pub fn getRelativePath(self: EnhancedForStatement) -> string;
EnhancedForStatement::getLastChild
/** * Gets the last child of this node parent. */
- Parameter
self
:EnhancedForStatement
- Return
Node
pub fn getLastChild(self: EnhancedForStatement) -> Node;
EnhancedForStatement::getEndColumnNumber
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getEndColumnNumber(self: EnhancedForStatement) -> int;
EnhancedForStatement::getKind
/** * Get the syntax kind of this node */
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getKind(self: EnhancedForStatement) -> int;
EnhancedForStatement::getAModifier
/** * Gets a modifier. */
- Parameter
self
:EnhancedForStatement
- Return
*Modifier
pub fn getAModifier(self: EnhancedForStatement) -> *Modifier;
EnhancedForStatement::getADecorator
/** * Gets a decorator. */
- Parameter
self
:EnhancedForStatement
- Return
*Decorator
pub fn getADecorator(self: EnhancedForStatement) -> *Decorator;
EnhancedForStatement::getAComment
/** * Gets the comments related to it */
- Parameter
self
:EnhancedForStatement
- Return
*Comment
pub fn getAComment(self: EnhancedForStatement) -> *Comment;
EnhancedForStatement::getDecorator
/** * Gets the `i`th decorator. */
- Parameter
self
:EnhancedForStatement
- Parameter
i
:int
- Return
Decorator
pub fn getDecorator(self: EnhancedForStatement, i: int) -> Decorator;
EnhancedForStatement::getADescendant
/** * Gets a descendant of this node. */
- Parameter
self
:EnhancedForStatement
- Return
*Node
pub fn getADescendant(self: EnhancedForStatement) -> *Node;
EnhancedForStatement::getEnclosingFunction
/** * Gets the enclosing function of it */
- Parameter
self
:EnhancedForStatement
- Return
FunctionLikeDeclaration
pub fn getEnclosingFunction(self: EnhancedForStatement) -> FunctionLikeDeclaration;
EnhancedForStatement::getRoot
/** * Gets the root top-level of this node. */
- Parameter
self
:EnhancedForStatement
- Return
TopLevelDO
pub fn getRoot(self: EnhancedForStatement) -> TopLevelDO;
EnhancedForStatement::getChild
/** * Gets the `i`th child of this node. */
- Parameter
self
:EnhancedForStatement
- Parameter
i
:int
- Return
Node
pub fn getChild(self: EnhancedForStatement, i: int) -> Node;
EnhancedForStatement::getAnAncestor
/** * Gets an ancestor of this node. */
- Parameter
self
:EnhancedForStatement
- Return
*Node
pub fn getAnAncestor(self: EnhancedForStatement) -> *Node;
EnhancedForStatement::getInitializer
/** * Gets the iterator of this `for`-`in` or `for`-`of` loop. */
- Parameter
self
:EnhancedForStatement
- Return
ForInitializer
pub fn getInitializer(self: EnhancedForStatement) -> ForInitializer;
EnhancedForStatement::getParent
/** * Gets the parent node of this node. */
- Parameter
self
:EnhancedForStatement
- Return
Node
pub fn getParent(self: EnhancedForStatement) -> Node;
EnhancedForStatement::getExpression
/** * Gets the expression over which this `for`-`in` or `for`-`of` loop iterates. */
- Parameter
self
:EnhancedForStatement
- Return
Expression
pub fn getExpression(self: EnhancedForStatement) -> Expression;
EnhancedForStatement::getChildCount
/** * Gets the number of child nodes. */
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getChildCount(self: EnhancedForStatement) -> int;
EnhancedForStatement::__all__
Data constraint method.
- Parameter
db
:JavascriptDB
- Return
*EnhancedForStatement
pub fn __all__(db: JavascriptDB) -> *EnhancedForStatement;
EnhancedForStatement::getLocation
/** * Gets the location of this node. */
- Parameter
self
:EnhancedForStatement
- Return
Location
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. */
- Parameter
self
:EnhancedForStatement
- Parameter
level
:int
- Return
*Node
pub fn getADescendantByLevel(self: EnhancedForStatement, level: int) -> *Node;
EnhancedForStatement::getAChild
/** * Gets a child node of this node. */
- Parameter
self
:EnhancedForStatement
- Return
*Node
pub fn getAChild(self: EnhancedForStatement) -> *Node;
EnhancedForStatement::getStartColumnNumber
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getStartColumnNumber(self: EnhancedForStatement) -> int;
EnhancedForStatement::getStartLineNumber
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getStartLineNumber(self: EnhancedForStatement) -> int;
EnhancedForStatement::getEndLineNumber
- Parameter
self
:EnhancedForStatement
- Return
int
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. */
- Parameter
self
:EnhancedForStatement
- Return
int
pub fn getInitializerIndex(self: EnhancedForStatement) -> int;
EnhancedForStatement::getBody
/** * Gets the body of this `for`-`in` or `for`-`of` loop. */
- Parameter
self
:EnhancedForStatement
- Return
Statement
pub fn getBody(self: EnhancedForStatement) -> Statement;
EnhancedForStatement::getATrailingComment
/** * Gets the trailing comments of it */
- Parameter
self
:EnhancedForStatement
- Return
*Comment
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. */
- Parameter
self
:EnhancedForStatement
- Parameter
level
:int
- Return
Node
pub fn getAnAncestorByLevel(self: EnhancedForStatement, level: int) -> Node;
EnhancedForStatement::getALeadingComment
/** * Gets the leading comments of it */
- Parameter
self
:EnhancedForStatement
- Return
*Comment
pub fn getALeadingComment(self: EnhancedForStatement) -> *Comment;
EnhancedForStatement::getFile
/** * Gets the file of this node. */
- Parameter
self
:EnhancedForStatement
- Return
File
pub fn getFile(self: EnhancedForStatement) -> File;
EnhancedForStatement::getModifier
/** * Gets the `i`th modifier. */
- Parameter
self
:EnhancedForStatement
- Parameter
i
:int
- Return
Modifier
pub fn getModifier(self: EnhancedForStatement, i: int) -> Modifier;
EnhancedForStatement::getText
/** * Gets the text of this node. */
- Parameter
self
:EnhancedForStatement
- Return
string
pub fn getText(self: EnhancedForStatement) -> string;