| 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 interface TreeElements { | 5 interface TreeElements { |
| 6 Element operator[](Node node); | 6 Element operator[](Node node); |
| 7 Selector getSelector(Send send); | 7 Selector getSelector(Send send); |
| 8 } | 8 } |
| 9 | 9 |
| 10 class TreeElementMapping implements TreeElements { | 10 class TreeElementMapping implements TreeElements { |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 | 896 |
| 897 visitLiteralBool(LiteralBool node) { | 897 visitLiteralBool(LiteralBool node) { |
| 898 } | 898 } |
| 899 | 899 |
| 900 visitLiteralString(LiteralString node) { | 900 visitLiteralString(LiteralString node) { |
| 901 } | 901 } |
| 902 | 902 |
| 903 visitLiteralNull(LiteralNull node) { | 903 visitLiteralNull(LiteralNull node) { |
| 904 } | 904 } |
| 905 | 905 |
| 906 visitStringJuxtaposition(StringJuxtaposition node) { |
| 907 if (node.isInterpolation) node.visitChildren(this); |
| 908 } |
| 909 |
| 906 visitNodeList(NodeList node) { | 910 visitNodeList(NodeList node) { |
| 907 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { | 911 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { |
| 908 visit(link.head); | 912 visit(link.head); |
| 909 } | 913 } |
| 910 } | 914 } |
| 911 | 915 |
| 912 visitOperator(Operator node) { | 916 visitOperator(Operator node) { |
| 913 unimplemented(node, 'operator'); | 917 unimplemented(node, 'operator'); |
| 914 } | 918 } |
| 915 | 919 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1656 class TopScope extends Scope { | 1660 class TopScope extends Scope { |
| 1657 LibraryElement get library() => element; | 1661 LibraryElement get library() => element; |
| 1658 | 1662 |
| 1659 TopScope(LibraryElement library) : super(null, library); | 1663 TopScope(LibraryElement library) : super(null, library); |
| 1660 Element lookup(SourceString name) => library.find(name); | 1664 Element lookup(SourceString name) => library.find(name); |
| 1661 | 1665 |
| 1662 Element add(Element element) { | 1666 Element add(Element element) { |
| 1663 throw "Cannot add an element in the top scope"; | 1667 throw "Cannot add an element in the top scope"; |
| 1664 } | 1668 } |
| 1665 } | 1669 } |
| OLD | NEW |