InfiniteLoopNode

class InfiniteLoopNode(body: BlockNode, jumpLabel: JumpLabelNode, sourceLocation: SourceLocation) : ControlNode

A loop that is executed until a break statement is encountered.

Parameters

jumpLabel

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

Constructors

InfiniteLoopNode
Link copied to clipboard
fun InfiniteLoopNode(body: BlockNode, jumpLabel: JumpLabelNode, sourceLocation: SourceLocation)

Functions

copy
Link copied to clipboard
open override fun copy(children: List<Node>): InfiniteLoopNode

Returns a shallow copy of this node where the child nodes are replaced by children.

toDocument
Link copied to clipboard
override fun toDocument(): Document
toDocumentWithMetadata
Link copied to clipboard
fun toDocumentWithMetadata(metadata: Metadata): Document

Returns a pretty representation of this Node where each descendant is decorated using metadata.

toSurfaceNode
Link copied to clipboard
open override fun toSurfaceNode(metadata: Metadata): InfiniteLoopNode

Returns a representation of this node in the surface syntax.

Properties

body
Link copied to clipboard
val body: BlockNode
children
Link copied to clipboard
open override val children: Iterable<BlockNode>
jumpLabel
Link copied to clipboard
val jumpLabel: JumpLabelNode
sourceLocation
Link copied to clipboard
open override val sourceLocation: SourceLocation