| OLD | NEW |
| 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'; |
| 11 import 'package:compiler/src/elements/elements.dart'; | 11 import 'package:compiler/src/elements/elements.dart'; |
| 12 import 'package:compiler/src/elements/entities.dart'; | 12 import 'package:compiler/src/elements/entities.dart'; |
| 13 import 'package:compiler/src/kernel/element_map.dart'; | 13 import 'package:compiler/src/kernel/element_map.dart'; |
| 14 import 'package:compiler/src/kernel/kernel_backend_strategy.dart'; | 14 import 'package:compiler/src/kernel/kernel_backend_strategy.dart'; |
| 15 import 'package:compiler/src/js_model/locals.dart'; |
| 15 import 'package:compiler/src/tree/nodes.dart' as ast; | 16 import 'package:compiler/src/tree/nodes.dart' as ast; |
| 16 import '../equivalence/id_equivalence.dart'; | 17 import '../equivalence/id_equivalence.dart'; |
| 17 import '../equivalence/id_equivalence_helper.dart'; | 18 import '../equivalence/id_equivalence_helper.dart'; |
| 18 import 'package:kernel/ast.dart' as ir; | 19 import 'package:kernel/ast.dart' as ir; |
| 19 | 20 |
| 20 main() { | 21 main() { |
| 21 asyncTest(() async { | 22 asyncTest(() async { |
| 22 Directory dataDir = new Directory.fromUri(Platform.script.resolve('data')); | 23 Directory dataDir = new Directory.fromUri(Platform.script.resolve('data')); |
| 23 await for (FileSystemEntity entity in dataDir.list()) { | 24 await for (FileSystemEntity entity in dataDir.list()) { |
| 24 print('Checking ${entity.uri}'); | 25 print('Checking ${entity.uri}'); |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 | 128 |
| 128 /// Compute a string representation of the data stored for [local] in [info]. | 129 /// Compute a string representation of the data stored for [local] in [info]. |
| 129 String computeLocalValue(ClosureRepresentationInfo info, Local local) { | 130 String computeLocalValue(ClosureRepresentationInfo info, Local local) { |
| 130 StringBuffer sb = new StringBuffer(); | 131 StringBuffer sb = new StringBuffer(); |
| 131 if (info.variableIsUsedInTryOrSync(local)) { | 132 if (info.variableIsUsedInTryOrSync(local)) { |
| 132 sb.write('inTry'); | 133 sb.write('inTry'); |
| 133 } | 134 } |
| 134 // TODO(johnniwinther,efortuna): Add more info (captured, boxed etc.). | 135 // TODO(johnniwinther,efortuna): Add more info (captured, boxed etc.). |
| 135 return sb.toString(); | 136 return sb.toString(); |
| 136 } | 137 } |
| OLD | NEW |