| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of resolution; | 5 part of resolution; |
| 6 | 6 |
| 7 abstract class TreeElements { | 7 abstract class TreeElements { |
| 8 Element operator[](Node node); | 8 Element operator[](Node node); |
| 9 Selector getSelector(Send send); | 9 Selector getSelector(Send send); |
| 10 DartType getType(Node node); | 10 DartType getType(Node node); |
| (...skipping 2601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2612 } | 2612 } |
| 2613 }); | 2613 }); |
| 2614 if (!targetElement.isTarget && identical(mapping[body], targetElement)) { | 2614 if (!targetElement.isTarget && identical(mapping[body], targetElement)) { |
| 2615 // If the body is itself a break or continue for another target, it | 2615 // If the body is itself a break or continue for another target, it |
| 2616 // might have updated its mapping to the target it actually does target. | 2616 // might have updated its mapping to the target it actually does target. |
| 2617 mapping.remove(body); | 2617 mapping.remove(body); |
| 2618 } | 2618 } |
| 2619 } | 2619 } |
| 2620 | 2620 |
| 2621 visitLiteralMap(LiteralMap node) { | 2621 visitLiteralMap(LiteralMap node) { |
| 2622 world.registerInstantiatedClass(compiler.mapClass); |
| 2622 node.visitChildren(this); | 2623 node.visitChildren(this); |
| 2623 } | 2624 } |
| 2624 | 2625 |
| 2625 visitLiteralMapEntry(LiteralMapEntry node) { | 2626 visitLiteralMapEntry(LiteralMapEntry node) { |
| 2626 node.visitChildren(this); | 2627 node.visitChildren(this); |
| 2627 } | 2628 } |
| 2628 | 2629 |
| 2629 visitNamedArgument(NamedArgument node) { | 2630 visitNamedArgument(NamedArgument node) { |
| 2630 visit(node.expression); | 2631 visit(node.expression); |
| 2631 } | 2632 } |
| (...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3649 return e; | 3650 return e; |
| 3650 } | 3651 } |
| 3651 | 3652 |
| 3652 /// Assumed to be called by [resolveRedirectingFactory]. | 3653 /// Assumed to be called by [resolveRedirectingFactory]. |
| 3653 Element visitReturn(Return node) { | 3654 Element visitReturn(Return node) { |
| 3654 Node expression = node.expression; | 3655 Node expression = node.expression; |
| 3655 return finishConstructorReference(visit(expression), | 3656 return finishConstructorReference(visit(expression), |
| 3656 expression, expression); | 3657 expression, expression); |
| 3657 } | 3658 } |
| 3658 } | 3659 } |
| OLD | NEW |