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

Unified Diff: tests/compiler/dart2js/closure/closure_test.dart

Issue 2949293002: Add ScopeInfo class for variable information that doesn't actually involve closures. (Closed)
Patch Set: . 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
« pkg/compiler/lib/src/closure.dart ('K') | « pkg/compiler/pubspec.yaml ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/closure/closure_test.dart
diff --git a/tests/compiler/dart2js/closure/closure_test.dart b/tests/compiler/dart2js/closure/closure_test.dart
index 8db19bd1915d59c5dc17b814634bc902a93667df..d348cd28ac3a864e79d673bcb6399f97634ea4f7 100644
--- a/tests/compiler/dart2js/closure/closure_test.dart
+++ b/tests/compiler/dart2js/closure/closure_test.dart
@@ -128,7 +128,7 @@ class ClosureIrChecker extends AbstractIrComputer {
/// Compute a string representation of the data stored for [local] in [info].
String computeLocalValue(ClosureRepresentationInfo info, Local local) {
StringBuffer sb = new StringBuffer();
- if (info.variableIsUsedInTryOrSync(local)) {
+ if (info.variablesUsedInTryOrSync.contains(local)) {
sb.write('inTry');
}
// TODO(johnniwinther,efortuna): Add more info (captured, boxed etc.).
« pkg/compiler/lib/src/closure.dart ('K') | « pkg/compiler/pubspec.yaml ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698