Companion

object Companion

Functions

Link copied to clipboard
fun constants(self: A_Phrase): List<A_Phrase>

Answer the declarations of this block's local constants. Do not include the label declaration if present, nor argument declarations, nor local variables.

Link copied to clipboard
fun labels(self: A_Phrase): List<A_Phrase>

Answer the labels present in this block's list of statements. There is either zero or one label, and it must be the first statement.

Link copied to clipboard
fun locals(self: A_Phrase): List<A_Phrase>

Answer the declarations of this block's local variables. Do not include the label declaration if present, nor argument declarations, nor local constants.

Link copied to clipboard
fun newBlockNode(    arguments: A_Tuple,     primitive: Primitive?,     statements: A_Tuple,     resultType: A_Type,     declaredExceptions: A_Set,     lineNumber: Int,     tokens: A_Tuple): AvailObject

Construct a block phrase.

Link copied to clipboard
fun recursivelyValidate(blockNode: A_Phrase)

Ensure that the block phrase is valid. Throw an appropriate exception if it is not.