AstBundle constructor
AstBundle({
- required String entryPointUri,
- required Map<
String, SCompilationUnit> modules, - Map<
String, String> ? sources, - String? generator,
- SStaticFacts? facts,
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 — and generator,
the identity of the tool that built it.
Throws ArgumentD4rtException if entryPointUri is not present
in modules.
Implementation
AstBundle({
required this.entryPointUri,
required this.modules,
this.sources,
this.generator,
this.facts,
}) {
if (!modules.containsKey(entryPointUri)) {
throw ArgumentD4rtException(
'Entry point "$entryPointUri" not found in modules. '
'Available: ${modules.keys.join(", ")}',
);
}
}