Companion

object Companion

Functions

Link copied to clipboard
fun newArgument(token: A_Token, declaredType: A_Type, typeExpression: A_Phrase): A_Phrase

Construct a new declaration of a block DeclarationKind.ARGUMENT.

Link copied to clipboard
fun newConstant(token: A_Token, initializationExpression: A_Phrase): A_Phrase

Construct a new declaration of a DeclarationKind.LOCAL_CONSTANT.

Link copied to clipboard
fun newDeclaration(declarationKind: DeclarationPhraseDescriptor.DeclarationKind, token: A_Token, declaredType: A_Type, typeExpression: A_Phrase, initializationExpression: A_Phrase, literalObject: A_BasicObject): A_Phrase

Construct a declaration phrase of some kind.

Link copied to clipboard
fun newLabel(token: A_Token, returnTypeExpression: A_Phrase, declaredType: A_Type): A_Phrase

Construct a new declaration of a DeclarationKind.LABEL.

Link copied to clipboard
fun newModuleConstant(token: A_Token, literalVariable: A_BasicObject, initializationExpression: A_Phrase): A_Phrase

Construct a new declaration of a DeclarationKind.MODULE_CONSTANT.

Link copied to clipboard
fun newModuleVariable(token: A_Token, literalVariable: A_BasicObject, typeExpression: A_Phrase, initializationExpression: A_Phrase): A_Phrase

Construct a new declaration of a DeclarationKind.MODULE_VARIABLE with or without an initialization expression.

Link copied to clipboard
fun newPrimitiveFailureVariable(token: A_Token, typeExpression: A_Phrase, type: A_Type): A_Phrase

Construct a new declaration of a DeclarationKind.PRIMITIVE_FAILURE_REASON. This is set up automatically when a primitive fails, and the statements of the block should not be allowed to write to it.

Link copied to clipboard
fun newVariable(token: A_Token, declaredType: A_Type, typeExpression: A_Phrase, initializationExpression: A_Phrase): A_Phrase

Construct a new declaration of a DeclarationKind.LOCAL_VARIABLE.