Skip to content

Commit 6f1861b

Browse files
committed
Pre-compute the ModelElement for Object.
1 parent c8be845 commit 6f1861b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/src/model/package_graph.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -874,6 +874,12 @@ class PackageGraph with CommentReferable, Nameable {
874874
continue;
875875
}
876876
var completedLibraries = <Library>{};
877+
878+
for (var library in package.allLibraries) {
879+
// Be sure to make `Object` available by computing ModelElements for
880+
// all of the classes.
881+
library.classes;
882+
}
877883
for (var library in package.allLibraries) {
878884
progressBarTick();
879885
if (completedLibraries.contains(library)) {

0 commit comments

Comments
 (0)