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'; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 } |
OLD | NEW |