ForStatement
data class ForStatement(val lPar: Node.Keyword.LPar, val loopParameter: Node.LambdaParameter, val inKeyword: Node.Keyword.In, val loopRange: Node.Expression, val rPar: Node.Keyword.RPar, val body: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node.Statement
AST node that represents a for statement. The node corresponds to KtForExpression.
for ([loopParameter] in [loopRange]) [body]
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(lPar: Node.Keyword.LPar, loopParameter: Node.LambdaParameter, inKeyword: Node.Keyword.In, loopRange: Node.Expression, rPar: Node.Keyword.RPar, body: Node.Expression, supplement: NodeSupplement = NodeSupplement())
Properties
Link copied to clipboard
body expression.
Link copied to clipboard
in
keyword.
Link copied to clipboard
loop parameter before in
keyword.
Link copied to clipboard
loop range expression after in
keyword.
Link copied to clipboard
left parenthesis of the loop condition.
Link copied to clipboard
right parenthesis of the loop condition.
Link copied to clipboard
Supplemental data for the node.