newModuleVariable

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.

Return

The new module variable declaration.

Parameters

token

The token that is the defining occurrence of the name of the module variable being declared.

literalVariable

The actual variable to be used as a module variable.

typeExpression

The expression that produced the type for the entity being declared, or nil if there was no such expression.

initializationExpression

The expression (or nil) used to initialize this module variable.