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

Side by Side 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 unified diff | Download patch
« pkg/compiler/lib/src/closure.dart ('K') | « pkg/compiler/pubspec.yaml ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:io'; 5 import 'dart:io';
6 import 'package:async_helper/async_helper.dart'; 6 import 'package:async_helper/async_helper.dart';
7 import 'package:compiler/src/closure.dart'; 7 import 'package:compiler/src/closure.dart';
8 import 'package:compiler/src/common.dart'; 8 import 'package:compiler/src/common.dart';
9 import 'package:compiler/src/compiler.dart'; 9 import 'package:compiler/src/compiler.dart';
10 import 'package:compiler/src/diagnostics/diagnostic_listener.dart'; 10 import 'package:compiler/src/diagnostics/diagnostic_listener.dart';
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 String computeMemberValue(ir.Member member) { 121 String computeMemberValue(ir.Member member) {
122 // TODO(johnniwinther,efortuna): Collect data for the member 122 // TODO(johnniwinther,efortuna): Collect data for the member
123 // (has thisLocal, has box, etc.). 123 // (has thisLocal, has box, etc.).
124 return null; 124 return null;
125 } 125 }
126 } 126 }
127 127
128 /// Compute a string representation of the data stored for [local] in [info]. 128 /// Compute a string representation of the data stored for [local] in [info].
129 String computeLocalValue(ClosureRepresentationInfo info, Local local) { 129 String computeLocalValue(ClosureRepresentationInfo info, Local local) {
130 StringBuffer sb = new StringBuffer(); 130 StringBuffer sb = new StringBuffer();
131 if (info.variableIsUsedInTryOrSync(local)) { 131 if (info.variablesUsedInTryOrSync.contains(local)) {
132 sb.write('inTry'); 132 sb.write('inTry');
133 } 133 }
134 // TODO(johnniwinther,efortuna): Add more info (captured, boxed etc.). 134 // TODO(johnniwinther,efortuna): Add more info (captured, boxed etc.).
135 return sb.toString(); 135 return sb.toString();
136 } 136 }
OLDNEW
« 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