loadModule method

  1. @override
LoadedModule loadModule(
  1. Uri uri, {
  2. Set<String>? showNames,
  3. Set<String>? hideNames,
})
override

Loads a module from the given URI.

uri The resolved URI of the module to load (package:, dart:, or file:). showNames Optional set of names to show (import ... show x, y). hideNames Optional set of names to hide (import ... hide x, y).

Returns a LoadedModule containing the AST and exported environment.

Throws RuntimeD4rtException if the module cannot be loaded.

Implementation

@override
LoadedModule loadModule(
  Uri uri, {
  Set<String>? showNames,
  Set<String>? hideNames,
}) {
  throw UnsupportedError(
    'NoOpModuleContext does not support module loading. '
    'Use a full ModuleContext implementation for import support.',
  );
}