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

Unified Diff: tests/compiler/dart2js/serialization/model_test_helper.dart

Issue 2975323002: Renamed some scoping classes to make their usage clearer. (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/serialization/model_test_helper.dart
diff --git a/tests/compiler/dart2js/serialization/model_test_helper.dart b/tests/compiler/dart2js/serialization/model_test_helper.dart
index 3ea5f8a355f25891af16226a26da52f5e5873ec8..5772f7ad2b5ad4f1a9761b085817518d3b3cee5b 100644
--- a/tests/compiler/dart2js/serialization/model_test_helper.dart
+++ b/tests/compiler/dart2js/serialization/model_test_helper.dart
@@ -252,7 +252,7 @@ bool areCapturedVariablesEquivalent(FieldEntity a, FieldEntity b) {
return false;
}
-bool areClosureScopesEquivalent(ClosureScope a, ClosureScope b) {
+bool areScopeInClosuresEquivalent(ScopeInClosure a, ScopeInClosure b) {
if (a == b) return true;
if (a == null || b == null) return false;
if (!areLocalsEquivalent(a.context, b.context)) {
@@ -265,8 +265,8 @@ bool areClosureScopesEquivalent(ClosureScope a, ClosureScope b) {
a.forEachBoxedVariable((k, v) => aBoxed[k] = v);
var bBoxed = {};
b.forEachBoxedVariable((k, v) => bBoxed[k] = v);
- checkMaps(aBoxed, bBoxed, 'ClosureScope.boxedVariables', areLocalsEquivalent,
- areElementsEquivalent);
+ checkMaps(aBoxed, bBoxed, 'ScopeInClosure.boxedVariables',
+ areLocalsEquivalent, areElementsEquivalent);
return true;
}
« pkg/compiler/lib/src/closure.dart ('K') | « tests/compiler/dart2js/closure/closure_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698