ShakeDoWhile

Represents a 'do-while' loop statement in the Shake language. In a do-while loop, the body is executed at least once before the condition is checked.

Since

0.1.0

Inheritors

Properties

Link copied to clipboard
abstract val body: ShakeCode

The body of the do-while loop. This block of code gets executed at least once.

Link copied to clipboard
abstract val condition: ShakeValue

The condition for the do-while loop. After the first execution of the body, the loop continues as long as this condition evaluates to true.

Functions

Link copied to clipboard
abstract fun toJson(): Map<String, Any?>

Converts this statement to a JSON representation. This can be useful for serialization, debugging, or analyzing the structure of the code.