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

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

Issue 2918593003: Pass ClassHierarchy instead of creating it. (Closed)
Patch Set: Created 3 years, 7 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
Index: pkg/kernel/lib/transformations/insert_type_checks.dart
diff --git a/pkg/kernel/lib/transformations/insert_type_checks.dart b/pkg/kernel/lib/transformations/insert_type_checks.dart
index a884442472a88daf750387fccec8dffbe269b771..e42ce25a3495537cdae81c99ab9f10fc754ca6aa 100644
--- a/pkg/kernel/lib/transformations/insert_type_checks.dart
+++ b/pkg/kernel/lib/transformations/insert_type_checks.dart
@@ -20,10 +20,9 @@ class InsertTypeChecks {
final CoreTypes coreTypes;
ClassHierarchy hierarchy;
- InsertTypeChecks(this.coreTypes, {this.hierarchy});
+ InsertTypeChecks(this.coreTypes, this.hierarchy);
void transformProgram(Program program) {
- hierarchy ??= new ClassHierarchy(program);
new CheckInsertingTypeChecker(coreTypes, hierarchy).checkProgram(program);
}
}

Powered by Google App Engine
This is Rietveld 408576698