DoWhileStatement

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

AST node that represents a do-while statement. The node corresponds to KtDoWhileExpression.

Constructors

Link copied to clipboard
constructor(body: Node.Expression, lPar: Node.Keyword.LPar, condition: Node.Expression, rPar: Node.Keyword.RPar, 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.