loadModule method

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

Loads (or returns the cached) module for uri.

DFUB10 — the real work lives in _loadModule; this wrapper only guarantees that a failed load drops its in-flight registration, so an abandoned partial is never handed out on a later execute.

Implementation

@override
LoadedModule loadModule(
  Uri uri, {
  Set<String>? showNames,
  Set<String>? hideNames,
}) {
  try {
    return _loadModule(uri, showNames: showNames, hideNames: hideNames);
  } catch (_) {
    _inFlightModules.remove(uri);
    rethrow;
  }
}