Companion

object Companion

Functions

Link copied to clipboard
fun A_Module.addBundle(bundle: A_Bundle)

Add the given A_Bundle to this module. It will be removed from its connected A_Method when this module is unloaded.

Link copied to clipboard
fun A_Module.addConstantBinding(name: A_String, constantBinding: A_Variable)

TODO MvG Comment Me!

Link copied to clipboard
fun A_Module.addImportedName(trueName: A_Atom)

TODO MvG Comment Me!

Link copied to clipboard
fun A_Module.addImportedNames(trueNames: A_Set)

TODO MvG Comment Me!

Link copied to clipboard
fun A_Module.addLexer(lexer: A_Lexer)

TODO MvG Comment Me!

Link copied to clipboard
fun A_Module.addPrivateName(trueName: A_Atom)

TODO MvG Comment Me!

Link copied to clipboard
fun A_Module.addPrivateNames(trueNames: A_Set)

TODO MvG Comment Me!

Link copied to clipboard
fun A_Module.addSeal(methodName: A_Atom, sealSignature: A_Tuple)

TODO MvG Comment Me!

Link copied to clipboard
fun A_Module.addUnloadFunction(unloadFunction: A_Function)

Add the specified function to the tuple of functions that should be applied when the module is unloaded.

Link copied to clipboard
fun A_Module.addVariableBinding(name: A_String, variableBinding: A_Variable)

Add a module variable binding to this module.

Link copied to clipboard
fun A_Module.applyModuleHeader(loader: AvailLoader, moduleHeader: ModuleHeader): String?

Update this module with information that has been accumulated in the given ModuleHeader.

Link copied to clipboard
fun A_Module.buildFilteredBundleTree(): A_BundleTree

Dispatch to the descriptor.

Link copied to clipboard
fun A_Module.createLexicalScanner(): LexicalScanner

Create and answer a LexicalScanner containing all lexers that are in scope for this module.

Link copied to clipboard
fun A_Module.getAndSetTupleOfBlockPhrases(newValue: AvailObject): AvailObject

Extract the module's tuple of block phrases that it accumulated during compilation. Also set the field to nil.

Link copied to clipboard
fun A_Module.hasAncestor(potentialAncestor: A_Module): Boolean

Determine if the given module is equal to or an ancestor of the receiver.

Link copied to clipboard
fun A_Module.introduceNewName(trueName: A_Atom)

Introduce a new atom into this module.

Link copied to clipboard
fun A_Module.manifestEntries(): List<ModuleManifestEntry>

Get the module's List of manifest entries. This may involve fetching and decoding data from the repository.

Link copied to clipboard
fun A_Module.moduleAddDefinition(definition: A_Definition)

Add a definition to this module.

Link copied to clipboard
fun A_Module.moduleAddGrammaticalRestriction(grammaticalRestriction: A_GrammaticalRestriction)

Add a grammatical restriction to this module.

Link copied to clipboard
fun A_Module.moduleAddMacro(macro: A_Macro)

Add an A_Macro to this module.

Link copied to clipboard
fun A_Module.moduleAddSemanticRestriction(semanticRestriction: A_SemanticRestriction)

Add a semantic restriction to this module.

Link copied to clipboard
fun A_Module.moduleAddStyler(styler: A_Styler)

Add the given styler to the module's A_Set.

Link copied to clipboard
fun A_Module.originatingPhraseAtIndex(index: Int): A_Phrase

Look up a one-based index in this module's tuple of block phrases. If the tuple is nil, first fetch it from the repository and overwrite the field.

Link copied to clipboard
fun A_Module.phrasePathRecord(): Repository.PhrasePathRecord

Get the module's StylingRecord, which is used for syntax coloring the module source. This may involve reading the repository.

Link copied to clipboard
fun A_Module.recordBlockPhrase(blockPhrase: A_Phrase): Int

Record a block phrase in this module, answering the unique one-based Avail integer index at which it can later be retrieved.

Link copied to clipboard
fun A_Module.removeFrom(loader: AvailLoader, afterRemoval: () -> Unit)

Dispatch to the descriptor.

Link copied to clipboard
fun A_Module.resolveForward(forwardDefinition: A_BasicObject)

Dispatch to the descriptor.

Link copied to clipboard
fun A_Module.serializedObjects(serializedObjects: A_Tuple)

Deserialization has completed, and this is the A_Tuple of objects that were deserialized. This tuple can be used for pumping serializers and deserializers of subsequent modules, as well as the separate repository record for block phrases, stacks comments, and any styling, navigation, or indexing information stored separately from the body record of the module.

Link copied to clipboard
fun A_Module.setManifestEntriesIndex(recordNumber: Long)

Set the repository record number for this module's manifest entries.

Link copied to clipboard
fun A_Module.setPhrasePathRecordIndex(recordNumber: Long)

Set the record number under which this module's PhrasePathRecord has been recorded.

Link copied to clipboard
fun A_Module.setStylingRecordIndex(recordNumber: Long)

Set the record number under which this module's StylingRecord has been recorded.

Link copied to clipboard
fun A_Module.stylingRecord(): Repository.StylingRecord

Get the module's StylingRecord, which is used for syntax coloring the module source. This may involve reading the repository.

Link copied to clipboard
fun A_Module.trueNamesForStringName(stringName: A_String): A_Set

Dispatch to the descriptor.

Properties

Link copied to clipboard
val A_Module.allAncestors: A_Set

Return the set of all ancestor modules of this module. Exclude this module from the set.

Link copied to clipboard
val A_Module.constantBindings: A_Map

Dispatch to the descriptor.

Link copied to clipboard
val A_Module.entryPoints: A_Map

Dispatch to the descriptor.

Link copied to clipboard
val A_Module.exportedNames: A_Set

Answer the set of all names exported by this module.

Link copied to clipboard
val A_Module.importedNames: A_Map

The map from strings to atoms which act as true names. The true names are identity-based identifiers that prevent or at least clarify name conflicts. Answer only those names that have been imported from other modules.

Link copied to clipboard
val A_Module.methodDefinitions: A_Set

The A_Definitions defined by this module.

Link copied to clipboard
val A_Module.moduleName: A_String

Answer the name of this module.

Link copied to clipboard
val A_Module.moduleNameNative: String

Answer the name of this module as a native Kotlin String.

Link copied to clipboard
var A_Module.moduleState: ModuleDescriptor.State

Read the current state of the module, which indicates whether the module is loading, unloading, or in a stable state.

Link copied to clipboard
val A_Module.newNames: A_Map

Answer a map from strings to atoms. These atoms prevent or at least clarify name conflicts. These names are those introduced by the module's "Names" section or P_PublishName.

Link copied to clipboard
val A_Module.privateNames: A_Map

Dispatch to the descriptor.

Link copied to clipboard
val A_Module.shortModuleNameNative: String

Produce an A_String describing the module. Leave off the module path.

Link copied to clipboard
val A_Module.stylers: A_Set

The A_Set of A_Stylers defined by this module.

Link copied to clipboard
val A_Module.variableBindings: A_Map

Dispatch to the descriptor.

Link copied to clipboard
val A_Module.versions: A_Set

Answer the set of acceptable version strings for which this module claims compatibility. An empty set indicates universal compatibility.

Link copied to clipboard
val A_Module.visibleNames: A_Set

Dispatch to the descriptor.