Skip to content

Commit f435997

Browse files
committed
Address changes and redirect constructor
1 parent 90e6ada commit f435997

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

lib/src/model/package_graph.dart

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,15 @@ class PackageGraph {
3737
}
3838

3939
@Deprecated('Use with [PackageGraph.uninitialized] instead')
40-
4140
// ignore: non_constant_identifier_names
42-
PackageGraph.UninitializedPackageGraph(
43-
this.config,
44-
this.sdk,
45-
this.hasEmbedderSdk,
46-
this.rendererFactory,
47-
this.packageMetaProvider,
48-
) : packageMeta = config.topLevelPackageMeta {
49-
_packageWarningCounter = PackageWarningCounter(this);
50-
// Make sure the default package exists, even if it has no libraries.
51-
// This can happen for packages that only contain embedder SDKs.
52-
Package.fromPackageMeta(packageMeta, this);
53-
}
41+
factory PackageGraph.UninitializedPackageGraph(
42+
DartdocOptionContext config,
43+
DartSdk sdk,
44+
bool hasEmbedderSdk,
45+
RendererFactory rendererFactory,
46+
PackageMetaProvider packageMetaProvider) =>
47+
PackageGraph.uninitialized(
48+
config, sdk, hasEmbedderSdk, rendererFactory, packageMetaProvider);
5449

5550
/// Call during initialization to add a library to this [PackageGraph].
5651
///
@@ -634,8 +629,8 @@ class PackageGraph {
634629
for (var type in clazz.interfaces) {
635630
checkAndAddClass(type.element, clazz);
636631
}
637-
for (var type in class_.publicInterfaces) {
638-
checkAndAddClass(type.element, class_);
632+
for (var type in clazz.publicInterfaces) {
633+
checkAndAddClass(type.element, clazz);
639634
}
640635
}
641636

0 commit comments

Comments
 (0)