WhileStatement

data class WhileStatement(val lPar: Node.Keyword.LPar, val condition: Node.Expression, val rPar: Node.Keyword.RPar, val body: Node.Expression, val supplement: NodeSupplement = NodeSupplement()) : Node.Statement.WhileStatementBase

AST node that represents a while statement. The node corresponds to KtWhileExpression.

Constructors

Link copied to clipboard
constructor(lPar: Node.Keyword.LPar, condition: Node.Expression, rPar: Node.Keyword.RPar, body: Node.Expression, supplement: NodeSupplement = NodeSupplement())

Properties

Link copied to clipboard
open override val body: Node.Expression

body expression.

Link copied to clipboard
open override val condition: Node.Expression

condition expression.

Link copied to clipboard
open override val lPar: Node.Keyword.LPar

left parenthesis of the condition.

Link copied to clipboard
open override val rPar: Node.Keyword.RPar

right parenthesis of the condition.

Link copied to clipboard
open override val supplement: NodeSupplement

Supplemental data for the node.