Class ModuleEntry

This is a foreign class that wraps over a module.

public define boxed_classes: List[ClassEntry]

Return all classes that were directly imported into this module (import (someclass) somefile).

public define boxed_constants: List[ConstantEntry]

Return all constants that were directly imported into this module (import (someconstant) somefile).

public define boxed_enums: List[EnumEntry]

Return all enums that were directly imported into this module (import (someenum) somefile).

public define boxed_functions: List[FunctionEntry]

Return all functions that were directly imported into this module (import (somevariant) somefile).

public define boxed_variants: List[VariantEntry]

Return all variants that were directly imported into this module (import (somevariant) somefile).

public define boxed_vars: List[VarEntry]

Return all vars that were directly imported into this module (import (somevar) somefile).

public define classes: List[ClassEntry]

Return the classes declared within this module.

public define constants: List[ConstantEntry]

Return the constants declared within this module.

public define dirname: String

Return the directory of this module relative to [main].

public define doc: String

Return the docblock of this module, or an empty string. Docblocks are only saved when a module is parsed in manifest mode.

public define enums: List[EnumEntry]

Return the enums declared within this module.

public define functions: List[FunctionEntry]

Return the functions that were declared inside of this module.

public define modules_used: List[ModuleEntry]

Return the modules that were used inside of this module.

public define name: String

Return the name of the module. A module's name is the default identifier used when a module is imported by other modules.

Note: The origin module always has the name '[main]'.

public define path: String

Returns the path used to load the module. Registered modules and modules in the prelude will have their name enclosed in brackets (ex: '[sys]').

public define vars: List[VarEntry]

Return the vars declared within this module.