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

Unified Diff: tests/compiler/dart2js/kernel/test_helpers.dart

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Skip non-live constructor bodies Created 3 years, 5 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 | « tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/kernel/test_helpers.dart
diff --git a/tests/compiler/dart2js/kernel/test_helpers.dart b/tests/compiler/dart2js/kernel/test_helpers.dart
index 7212cbb10b787b2b10a86f03701305fd831c9173..57b08fa93a9aabd22d3efcfd8f9451ba370448a2 100644
--- a/tests/compiler/dart2js/kernel/test_helpers.dart
+++ b/tests/compiler/dart2js/kernel/test_helpers.dart
@@ -63,6 +63,12 @@ class KernelEquivalence {
a, b, 'enclosingClass', a.enclosingClass, b.enclosingClass);
}
return false;
+ case ElementKind.GENERATIVE_CONSTRUCTOR_BODY:
+ ConstructorBodyElement aConstructorBody = a;
+ if (b is ConstructorBodyEntity) {
+ return entityEquivalence(aConstructorBody.constructor, b.constructor);
+ }
+ return false;
case ElementKind.CLASS:
if (b is IndexedClass) {
List<InterfaceType> aMixinTypes = [];
« no previous file with comments | « tests/compiler/dart2js/kernel/compile_from_dill_test_helper.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698