WhileLoopNode

class WhileLoopNode(val guard: ExpressionNode, val body: BlockNode, val jumpLabel: JumpLabelNode?, val sourceLocation: SourceLocation, val comment: String? = null) : LoopNode

Executing a statement repeatedly as long as a condition is true.

Constructors

Link copied to clipboard
fun WhileLoopNode(guard: ExpressionNode, body: BlockNode, jumpLabel: JumpLabelNode?, sourceLocation: SourceLocation, comment: String? = null)

Functions

Link copied to clipboard
override fun toDocument(): Document

Properties

Link copied to clipboard
open override val body: BlockNode

Statements to execute repeatedly.

Link copied to clipboard
open override val comment: String? = null
Link copied to clipboard
Link copied to clipboard
open override val jumpLabel: JumpLabelNode?

A label for the loop that break nodes can refer to.

Link copied to clipboard
open override val sourceLocation: SourceLocation