| 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 library elements; | 5 library elements; |
| 6 | 6 |
| 7 | 7 |
| 8 import '../tree/tree.dart'; | 8 import '../tree/tree.dart'; |
| 9 import '../util/util.dart'; | 9 import '../util/util.dart'; |
| 10 import '../resolution/resolution.dart'; | 10 import '../resolution/resolution.dart'; |
| (...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 687 void addMember(Element element, DiagnosticListener listener); | 687 void addMember(Element element, DiagnosticListener listener); |
| 688 void addToScope(Element element, DiagnosticListener listener); | 688 void addToScope(Element element, DiagnosticListener listener); |
| 689 | 689 |
| 690 // TODO(kasperl): Get rid of this method. | 690 // TODO(kasperl): Get rid of this method. |
| 691 Iterable<Element> getNonPrivateElementsInScope(); | 691 Iterable<Element> getNonPrivateElementsInScope(); |
| 692 | 692 |
| 693 void setExports(Iterable<Element> exportedElements); | 693 void setExports(Iterable<Element> exportedElements); |
| 694 | 694 |
| 695 Element find(String elementName); | 695 Element find(String elementName); |
| 696 Element findLocal(String elementName); | 696 Element findLocal(String elementName); |
| 697 Element findExported(String elementName); | |
| 698 void forEachExport(f(Element element)); | 697 void forEachExport(f(Element element)); |
| 699 | 698 |
| 700 bool hasLibraryName(); | 699 bool hasLibraryName(); |
| 701 String getLibraryName(); | 700 String getLibraryName(); |
| 702 String getLibraryOrScriptName(); | 701 String getLibraryOrScriptName(); |
| 703 | 702 |
| 704 int compareTo(LibraryElement other); | 703 int compareTo(LibraryElement other); |
| 705 } | 704 } |
| 706 | 705 |
| 707 abstract class PrefixElement extends Element { | 706 abstract class PrefixElement extends Element { |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 int get resolutionState; | 979 int get resolutionState; |
| 981 Token get beginToken; | 980 Token get beginToken; |
| 982 Token get endToken; | 981 Token get endToken; |
| 983 | 982 |
| 984 // TODO(kasperl): Try to get rid of these. | 983 // TODO(kasperl): Try to get rid of these. |
| 985 void set annotatedElement(Element value); | 984 void set annotatedElement(Element value); |
| 986 void set resolutionState(int value); | 985 void set resolutionState(int value); |
| 987 | 986 |
| 988 MetadataAnnotation ensureResolved(Compiler compiler); | 987 MetadataAnnotation ensureResolved(Compiler compiler); |
| 989 } | 988 } |
| OLD | NEW |