Block

class Block(val statements: Array<Statement>) : Statement

A block statement with its own scope.

Used to represent the body of constructs such as NssFunction, IfStatement, ForLoop, as well as the top-level context of a file.

Parameters

statements

the statements inside the block, to be executed in order in a new scope.

Constructors

Link copied to clipboard
fun Block(statements: Array<Statement>)

Properties

Link copied to clipboard
val statements: Array<Statement>