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

Unified Diff: tests/compiler/dart2js/check_elements_invariants_test.dart

Issue 2804993002: Extract ResolutionWorldBuilderBase from ElementResolutionWorldBuilder (Closed)
Patch Set: Fix. Created 3 years, 8 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/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/instantiated_classes_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/check_elements_invariants_test.dart
diff --git a/tests/compiler/dart2js/check_elements_invariants_test.dart b/tests/compiler/dart2js/check_elements_invariants_test.dart
index fa6bd5373930345f2a08296f43e58ea34d0df5c5..714493a24fafcf9e5ab39fdd01964f43efc65138 100644
--- a/tests/compiler/dart2js/check_elements_invariants_test.dart
+++ b/tests/compiler/dart2js/check_elements_invariants_test.dart
@@ -6,7 +6,7 @@ import 'dart:async';
import 'package:async_helper/async_helper.dart';
import 'package:compiler/src/apiimpl.dart';
import 'package:expect/expect.dart';
-import 'package:compiler/src/elements/elements.dart' show ClassElement;
+import 'package:compiler/src/elements/entities.dart' show ClassEntity;
import 'package:compiler/src/resolution/class_members.dart'
show ClassMemberMixin;
import 'memory_compiler.dart';
@@ -17,13 +17,13 @@ const List<String> DART2JS_OPTIONS = const <String>[
'--disable-type-inference'
];
-Iterable<ClassElement> computeLiveClasses(CompilerImpl compiler) {
- return new Set<ClassElement>()
+Iterable<ClassEntity> computeLiveClasses(CompilerImpl compiler) {
+ return new Set<ClassEntity>()
..addAll(compiler.resolutionWorldBuilder.directlyInstantiatedClasses)
..addAll(compiler.codegenWorldBuilder.directlyInstantiatedClasses);
}
-void checkClassInvariants(ClassElement cls) {
+void checkClassInvariants(ClassEntity cls) {
ClassMemberMixin impl = cls;
Expect.isTrue(impl.areAllMembersComputed(),
"Not all members have been computed for $cls.");
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | tests/compiler/dart2js/instantiated_classes_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698