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

Unified Diff: tests/compiler/dart2js/equivalence/check_functions.dart

Issue 2939063002: Strong mode cleaning of many dart2js tests. (Closed)
Patch Set: Use ClassElement. 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
Index: tests/compiler/dart2js/equivalence/check_functions.dart
diff --git a/tests/compiler/dart2js/equivalence/check_functions.dart b/tests/compiler/dart2js/equivalence/check_functions.dart
index 658c747f2f033bc266b8040124033aa2d456dd15..ad8f1f1d96e42349cf731c0678a9010c5b9762a0 100644
--- a/tests/compiler/dart2js/equivalence/check_functions.dart
+++ b/tests/compiler/dart2js/equivalence/check_functions.dart
@@ -624,12 +624,14 @@ bool areAbstractUsagesEquivalent(AbstractUsage usage1, AbstractUsage usage2) {
return usage1.hasSameUsage(usage2);
}
+bool _areEntitiesEquivalent(a, b) => areElementsEquivalent(a, b);
+
void checkResolutionEnqueuers(
BackendUsage backendUsage1,
BackendUsage backendUsage2,
ResolutionEnqueuer enqueuer1,
ResolutionEnqueuer enqueuer2,
- {bool elementEquivalence(Entity a, Entity b): areElementsEquivalent,
+ {bool elementEquivalence(Entity a, Entity b): _areEntitiesEquivalent,
bool typeEquivalence(DartType a, DartType b): areTypesEquivalent,
bool elementFilter(Element element),
bool verbose: false,
@@ -720,7 +722,7 @@ void checkResolutionEnqueuers(
}
void checkCodegenEnqueuers(CodegenEnqueuer enqueuer1, CodegenEnqueuer enqueuer2,
- {bool elementEquivalence(Entity a, Entity b): areElementsEquivalent,
+ {bool elementEquivalence(Entity a, Entity b): _areEntitiesEquivalent,
bool typeEquivalence(DartType a, DartType b): areTypesEquivalent,
bool elementFilter(Element element),
bool verbose: false}) {

Powered by Google App Engine
This is Rietveld 408576698