VMModuleLoader class

Web-safe ModuleLoader that resolves imports against the CodeUnits already loaded into an ApolloVM. No filesystem access.

Implemented types

Constructors

VMModuleLoader(ApolloVM vm)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vm ApolloVM
final

Methods

loadModule(String moduleId, {String? language}) LoadedModule?
Loads the module with canonical id moduleId, or null.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolveCorePackage(String importPath) → CorePackageBase?
Resolves importPath to a built-in core package, or null.
override
resolveModuleId(String importPath, {String? fromModule, String? language}) String?
Normalizes importPath (optionally relative to fromModule) to the canonical id of a loadable module, or null if none matches.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited