| 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 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 680 // TODO(kasperl): Get rid of this method. | 680 // TODO(kasperl): Get rid of this method. |
| 681 Iterable<Element> getNonPrivateElementsInScope(); | 681 Iterable<Element> getNonPrivateElementsInScope(); |
| 682 | 682 |
| 683 void setExports(Iterable<Element> exportedElements); | 683 void setExports(Iterable<Element> exportedElements); |
| 684 | 684 |
| 685 Element find(String elementName); | 685 Element find(String elementName); |
| 686 Element findLocal(String elementName); | 686 Element findLocal(String elementName); |
| 687 void forEachExport(f(Element element)); | 687 void forEachExport(f(Element element)); |
| 688 | 688 |
| 689 bool hasLibraryName(); | 689 bool hasLibraryName(); |
| 690 String getLibraryName(); |
| 690 String getLibraryOrScriptName(); | 691 String getLibraryOrScriptName(); |
| 691 | 692 |
| 692 int compareTo(LibraryElement other); | 693 int compareTo(LibraryElement other); |
| 693 } | 694 } |
| 694 | 695 |
| 695 abstract class PrefixElement extends Element { | 696 abstract class PrefixElement extends Element { |
| 696 void addImport(Element element, Import import, DiagnosticListener listener); | 697 void addImport(Element element, Import import, DiagnosticListener listener); |
| 697 Element lookupLocalMember(String memberName); | 698 Element lookupLocalMember(String memberName); |
| 698 } | 699 } |
| 699 | 700 |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 int get resolutionState; | 969 int get resolutionState; |
| 969 Token get beginToken; | 970 Token get beginToken; |
| 970 Token get endToken; | 971 Token get endToken; |
| 971 | 972 |
| 972 // TODO(kasperl): Try to get rid of these. | 973 // TODO(kasperl): Try to get rid of these. |
| 973 void set annotatedElement(Element value); | 974 void set annotatedElement(Element value); |
| 974 void set resolutionState(int value); | 975 void set resolutionState(int value); |
| 975 | 976 |
| 976 MetadataAnnotation ensureResolved(Compiler compiler); | 977 MetadataAnnotation ensureResolved(Compiler compiler); |
| 977 } | 978 } |
| OLD | NEW |