GroupedPackageBundleBuilder class
Builds one packages.sum bundle from the union of several package
dependency closures.
Unlike SummaryGenerator (which produces one .sum per cacheable hosted /
SDK package, keyed by version), this produces a single grouped bundle
covering every package reachable from one or more resolved
.dart_tool/package_config.json files. It is the entry-point used to build
the runtime packages.sum an embedded Dart editor loads for SDK-free
analysis of code-typed fields.
The resolver order inside buildFromDirs is load-bearing: the package
resolver MUST precede ResourceUriResolver, otherwise pathToUri() emits
file:/// URIs instead of package: URIs and the bundle is non-portable.
Constructors
- GroupedPackageBundleBuilder({ResourceProvider? resourceProvider})
- Creates a grouped package-bundle builder.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- resourceProvider → ResourceProvider
-
The resource provider used for analysis (defaults to the physical FS).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildFromDirs(
List< String> packageDirs, {String? sdkPath, void onLog(String message)?}) → Future<GroupedPackageBundle> -
Builds a grouped
packages.sumfrom the union of every package reachable from each directory inpackageDirs(each must have runpub get). -
buildFromPackageRoots(
Map< String, String> packageRoots, {String? sdkPath, void onLog(String message)?}) → Future<GroupedPackageBundle> -
Builds a grouped
packages.sumfrom a pre-resolved name→root map. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited