@@ -37,20 +37,15 @@ class PackageGraph {
37
37
}
38
38
39
39
@Deprecated ('Use with [PackageGraph.uninitialized] instead' )
40
-
41
40
// 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);
54
49
55
50
/// Call during initialization to add a library to this [PackageGraph] .
56
51
///
@@ -634,8 +629,8 @@ class PackageGraph {
634
629
for (var type in clazz.interfaces) {
635
630
checkAndAddClass (type.element, clazz);
636
631
}
637
- for (var type in class_ .publicInterfaces) {
638
- checkAndAddClass (type.element, class_ );
632
+ for (var type in clazz .publicInterfaces) {
633
+ checkAndAddClass (type.element, clazz );
639
634
}
640
635
}
641
636
0 commit comments