MODULE_VARIABLE

MODULE_VARIABLE("module variable", true, true, PhraseKind.MODULE_VARIABLE_PHRASE)

A variable declared at the outermost (module) scope.

Functions

Link copied to clipboard
open fun emitEffectForOn(    tokens: A_Tuple,     declarationNode: A_Phrase,     codeGenerator: AvailCodeGenerator)

If this is an ordinary declaration then it was handled on a separate pass. Do nothing by default.

Link copied to clipboard
open override fun emitVariableAssignmentForOn(    tokens: A_Tuple,     declarationNode: A_Phrase,     codeGenerator: AvailCodeGenerator)

Emit an assignment to this variable.

Link copied to clipboard
open override fun emitVariableReferenceForOn(    tokens: A_Tuple,     declarationNode: A_Phrase,     codeGenerator: AvailCodeGenerator)

Emit a reference to this variable.

Link copied to clipboard
open override fun emitVariableValueForOn(    tokens: A_Tuple,     declarationNode: A_Phrase,     codeGenerator: AvailCodeGenerator)

Emit a use of this variable.

Link copied to clipboard
fun kindName(): A_String

Return an Avail string describing this kind of declaration.

Link copied to clipboard
fun nativeKindName(): String

Answer a Java String describing this kind of declaration.

Link copied to clipboard
fun phraseKind(): PhraseTypeDescriptor.PhraseKind

Return the instance of the enumeration PhraseKind that is associated with this kind of declaration.

Link copied to clipboard
open override fun print(    self: A_Phrase,     builder: StringBuilder,     recursionMap: IdentityHashMap<A_BasicObject, Void>,     indent: Int)

Print a declaration of this kind.

Properties

Link copied to clipboard
open override val fieldName: String

Answer the name of this enumeration value.

Link copied to clipboard
open override val fieldOrdinal: Int

Answer an integer that identifies this enumeration value uniquely within this enumeration subclass (i.e., any enumeration class implementing this interface). These values are allocated sequentially to the enumeration values, starting at zero.

Link copied to clipboard
val isModuleScoped: Boolean

Whether this entity occurs at the module scope.

Link copied to clipboard
val isVariable: Boolean

Whether this entity can be modified.

Link copied to clipboard
val name: String
Link copied to clipboard
val ordinal: Int