| 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 tree; | 5 part of tree; |
| 6 | 6 |
| 7 abstract class Visitor<R> { | 7 abstract class Visitor<R> { |
| 8 const Visitor(); | 8 const Visitor(); |
| 9 | 9 |
| 10 R visitNode(Node node); | 10 R visitNode(Node node); |
| (...skipping 1720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1731 /** | 1731 /** |
| 1732 * An [:export:] library tag. | 1732 * An [:export:] library tag. |
| 1733 * | 1733 * |
| 1734 * An export tag is dependency on another library where the exported identifiers | 1734 * An export tag is dependency on another library where the exported identifiers |
| 1735 * are put into the export scope of the exporting library. The export scope is | 1735 * are put into the export scope of the exporting library. The export scope is |
| 1736 * not visible inside the library. | 1736 * not visible inside the library. |
| 1737 */ | 1737 */ |
| 1738 class Export extends LibraryDependency { | 1738 class Export extends LibraryDependency { |
| 1739 final Token exportKeyword; | 1739 final Token exportKeyword; |
| 1740 | 1740 |
| 1741 Export(this.exportKeyword, LiteralString uri, NodeList combinators) | 1741 Export(this.exportKeyword, StringNode uri, NodeList combinators) |
| 1742 : super(uri, combinators); | 1742 : super(uri, combinators); |
| 1743 | 1743 |
| 1744 bool get isExport => true; | 1744 bool get isExport => true; |
| 1745 | 1745 |
| 1746 Export asExport() => this; | 1746 Export asExport() => this; |
| 1747 | 1747 |
| 1748 accept(Visitor visitor) => visitor.visitExport(this); | 1748 accept(Visitor visitor) => visitor.visitExport(this); |
| 1749 | 1749 |
| 1750 visitChildren(Visitor visitor) { | 1750 visitChildren(Visitor visitor) { |
| 1751 uri.accept(visitor); | 1751 uri.accept(visitor); |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1998 * argument). | 1998 * argument). |
| 1999 * | 1999 * |
| 2000 * TODO(ahe): This method is controversial, the team needs to discuss | 2000 * TODO(ahe): This method is controversial, the team needs to discuss |
| 2001 * if top-level methods are acceptable and what naming conventions to | 2001 * if top-level methods are acceptable and what naming conventions to |
| 2002 * use. | 2002 * use. |
| 2003 */ | 2003 */ |
| 2004 initializerDo(Node node, f(Node node)) { | 2004 initializerDo(Node node, f(Node node)) { |
| 2005 SendSet send = node.asSendSet(); | 2005 SendSet send = node.asSendSet(); |
| 2006 if (send != null) return f(send.arguments.head); | 2006 if (send != null) return f(send.arguments.head); |
| 2007 } | 2007 } |
| OLD | NEW |