OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 logical_rewriter; | 5 library logical_rewriter; |
6 | 6 |
7 import '../constants/values.dart' as values; | 7 import '../constants/values.dart' as values; |
8 import 'tree_ir_nodes.dart'; | 8 import 'tree_ir_nodes.dart'; |
9 | 9 |
10 /// Rewrites logical expressions to be more compact in the Tree IR. | 10 /// Rewrites logical expressions to be more compact in the Tree IR. |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 } | 442 } |
443 | 443 |
444 /// Destructively updates each entry of [l] with the result of visiting it. | 444 /// Destructively updates each entry of [l] with the result of visiting it. |
445 void _rewriteList(List<Expression> l) { | 445 void _rewriteList(List<Expression> l) { |
446 for (int i = 0; i < l.length; i++) { | 446 for (int i = 0; i < l.length; i++) { |
447 l[i] = visitExpression(l[i]); | 447 l[i] = visitExpression(l[i]); |
448 } | 448 } |
449 } | 449 } |
450 } | 450 } |
451 | 451 |
OLD | NEW |