ResolvedModuleName

A ResolvedModuleName represents the canonical name of an Avail module that has been resolved to an absolute file reference.

Author

Todd L Smith

Richard Arriaga

Parameters

qualifiedName

The just-resolved module name.

moduleRoots

The ModuleRoots with which to look up the module.

resolverReference

The ResolverReference for the module.

isRename

Whether module resolution followed a renaming rule.

Properties

Link copied to clipboard

true iff the resolved module name represents a package, false otherwise.

Link copied to clipboard
val isRename: Boolean = false

true iff this module name was transformed via a rename rule.

Link copied to clipboard

The local name of the module referenced by this ModuleName.

Link copied to clipboard

The size, in bytes, of the module. If the source module is available, then the size of the source module is used; otherwise, the size of the compiled module is used.

Link copied to clipboard

The fully-qualified package name of the ModuleName.

Link copied to clipboard

The fully-qualified module name.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The logical root name of the ModuleName.

Link copied to clipboard

The lazily-initialized root-relative ModuleName. This is the fully-qualified name minus the rootName.

Functions

Link copied to clipboard
fun asSibling(theLocalName: String): ModuleName

Answer the local module name as a sibling of the receiver.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String