AstBundle constructor
AstBundle({})
Creates an AstBundle with the given entry point and modules.
Optionally includes sources — a map from module URI to Dart source
code. When null (the default), no source is bundled.
Throws ArgumentD4rtException if entryPointUri is not present
in modules.
Implementation
AstBundle({
required this.entryPointUri,
required this.modules,
this.sources,
}) {
if (!modules.containsKey(entryPointUri)) {
throw ArgumentD4rtException(
'Entry point "$entryPointUri" not found in modules. '
'Available: ${modules.keys.join(", ")}',
);
}
}