| OLD | NEW |
| 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 library dev_compiler.src.codegen.js_metalet; | |
| 6 | |
| 7 // TODO(jmesserly): import from its own package | 5 // TODO(jmesserly): import from its own package |
| 8 import '../js/js_ast.dart'; | 6 import '../js/js_ast.dart'; |
| 9 import '../js/precedence.dart'; | 7 import '../js/precedence.dart'; |
| 10 | 8 |
| 11 import 'js_names.dart' show TemporaryId; | 9 import 'js_names.dart' show TemporaryId; |
| 12 | 10 |
| 13 /// A synthetic `let*` node, similar to that found in Scheme. | 11 /// A synthetic `let*` node, similar to that found in Scheme. |
| 14 /// | 12 /// |
| 15 /// For example, postfix increment can be desugared as: | 13 /// For example, postfix increment can be desugared as: |
| 16 /// | 14 /// |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 } | 310 } |
| 313 | 311 |
| 314 @override visitYield(Yield node) { | 312 @override visitYield(Yield node) { |
| 315 if (!_nestedFunction) hasYield = true; | 313 if (!_nestedFunction) hasYield = true; |
| 316 } | 314 } |
| 317 | 315 |
| 318 @override visitNode(Node node) { | 316 @override visitNode(Node node) { |
| 319 if (!hasYield) super.visitNode(node); | 317 if (!hasYield) super.visitNode(node); |
| 320 } | 318 } |
| 321 } | 319 } |
| OLD | NEW |