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

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

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: 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
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 12826f8a6c0c8f86631103e65f51d7d092df2a81..b2d7ebf66174933f4d8dd61c69334a71605e7c33 100644
--- a/tests/compiler/dart2js/kernel/test_helpers.dart
+++ b/tests/compiler/dart2js/kernel/test_helpers.dart
@@ -61,6 +61,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 KClass) {
List<InterfaceType> aMixinTypes = [];

Powered by Google App Engine
This is Rietveld 408576698