| 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 abstract class TreeElements { | 5 abstract class TreeElements { |
| 6 Element operator[](Node node); | 6 Element operator[](Node node); |
| 7 Selector getSelector(Send send); | 7 Selector getSelector(Send send); |
| 8 DartType getType(TypeAnnotation annotation); | 8 DartType getType(TypeAnnotation annotation); |
| 9 bool isParameterChecked(Element element); | 9 bool isParameterChecked(Element element); |
| 10 } | 10 } |
| (...skipping 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1620 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { | 1620 for (Link<Node> link = node.nodes; !link.isEmpty(); link = link.tail) { |
| 1621 visit(link.head); | 1621 visit(link.head); |
| 1622 } | 1622 } |
| 1623 } | 1623 } |
| 1624 | 1624 |
| 1625 visitOperator(Operator node) { | 1625 visitOperator(Operator node) { |
| 1626 unimplemented(node, 'operator'); | 1626 unimplemented(node, 'operator'); |
| 1627 } | 1627 } |
| 1628 | 1628 |
| 1629 visitReturn(Return node) { | 1629 visitReturn(Return node) { |
| 1630 if (node.firstTokenStringValue === '=') { |
| 1631 unimplemented(node, 'redirecting constructors'); |
| 1632 } |
| 1630 visit(node.expression); | 1633 visit(node.expression); |
| 1631 } | 1634 } |
| 1632 | 1635 |
| 1633 visitThrow(Throw node) { | 1636 visitThrow(Throw node) { |
| 1634 visit(node.expression); | 1637 visit(node.expression); |
| 1635 } | 1638 } |
| 1636 | 1639 |
| 1637 visitVariableDefinitions(VariableDefinitions node) { | 1640 visitVariableDefinitions(VariableDefinitions node) { |
| 1638 visit(node.type); | 1641 visit(node.type); |
| 1639 VariableDefinitionsVisitor visitor = | 1642 VariableDefinitionsVisitor visitor = |
| (...skipping 1240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2880 | 2883 |
| 2881 Element localLookup(SourceString name) => library.find(name); | 2884 Element localLookup(SourceString name) => library.find(name); |
| 2882 Element lookup(SourceString name) => localLookup(name); | 2885 Element lookup(SourceString name) => localLookup(name); |
| 2883 Element lexicalLookup(SourceString name) => localLookup(name); | 2886 Element lexicalLookup(SourceString name) => localLookup(name); |
| 2884 | 2887 |
| 2885 Element add(Element newElement) { | 2888 Element add(Element newElement) { |
| 2886 throw "Cannot add an element in the top scope"; | 2889 throw "Cannot add an element in the top scope"; |
| 2887 } | 2890 } |
| 2888 String toString() => '$element'; | 2891 String toString() => '$element'; |
| 2889 } | 2892 } |
| OLD | NEW |