Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Unified Diff: pkg/kernel/lib/transformations/mixin_full_resolution.dart

Issue 2924333002: Use ClassHierarchy.applyChanges() in MixinFullResolution. (Closed)
Patch Set: Changes for review comments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/kernel/lib/src/incremental_class_hierarchy.dart ('k') | pkg/kernel/test/class_hierarchy_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/transformations/mixin_full_resolution.dart
diff --git a/pkg/kernel/lib/transformations/mixin_full_resolution.dart b/pkg/kernel/lib/transformations/mixin_full_resolution.dart
index 42555e5f335d886c99c546db5aeaac5f2d4b34cb..44b166af26fee507423239fec3797cc1c0a53151 100644
--- a/pkg/kernel/lib/transformations/mixin_full_resolution.dart
+++ b/pkg/kernel/lib/transformations/mixin_full_resolution.dart
@@ -53,11 +53,8 @@ class MixinFullResolution {
}
}
- // If there are transformed classes, we need to update hierarchy.
- if (transformedClasses.isNotEmpty) {
- var program = libraries.first.enclosingProgram;
- hierarchy = new ClosedWorldClassHierarchy(program);
- }
+ // We might need to update the class hierarchy.
+ hierarchy = hierarchy.applyChanges(transformedClasses);
// Resolve all super call expressions and super initializers.
for (var library in libraries) {
« no previous file with comments | « pkg/kernel/lib/src/incremental_class_hierarchy.dart ('k') | pkg/kernel/test/class_hierarchy_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698