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