Chromium Code Reviews| 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 // TODO(kasperl): Get rid of this method. | 687 // TODO(kasperl): Get rid of this method. |
| 688 Iterable<Element> getNonPrivateElementsInScope(); | 688 Iterable<Element> getNonPrivateElementsInScope(); |
| 689 | 689 |
| 690 void setExports(Iterable<Element> exportedElements); | 690 void setExports(Iterable<Element> exportedElements); |
| 691 | 691 |
| 692 Element find(SourceString elementName); | 692 Element find(SourceString elementName); |
| 693 Element findLocal(SourceString elementName); | 693 Element findLocal(SourceString elementName); |
| 694 void forEachExport(f(Element element)); | 694 void forEachExport(f(Element element)); |
| 695 | 695 |
| 696 bool hasLibraryName(); | 696 bool hasLibraryName(); |
| 697 String getLibraryOrScriptName(); | 697 String getLibraryName(); |
|
ahe
2013/10/10 11:47:53
I think we need to keep this method for some situa
| |
| 698 | 698 |
| 699 int compareTo(LibraryElement other); | 699 int compareTo(LibraryElement other); |
| 700 } | 700 } |
| 701 | 701 |
| 702 abstract class PrefixElement extends Element { | 702 abstract class PrefixElement extends Element { |
| 703 Map<SourceString, Element> get imported; | 703 Map<SourceString, Element> get imported; |
| 704 Element lookupLocalMember(SourceString memberName); | 704 Element lookupLocalMember(SourceString memberName); |
| 705 } | 705 } |
| 706 | 706 |
| 707 abstract class TypedefElement extends Element | 707 abstract class TypedefElement extends Element |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 973 int get resolutionState; | 973 int get resolutionState; |
| 974 Token get beginToken; | 974 Token get beginToken; |
| 975 Token get endToken; | 975 Token get endToken; |
| 976 | 976 |
| 977 // TODO(kasperl): Try to get rid of these. | 977 // TODO(kasperl): Try to get rid of these. |
| 978 void set annotatedElement(Element value); | 978 void set annotatedElement(Element value); |
| 979 void set resolutionState(int value); | 979 void set resolutionState(int value); |
| 980 | 980 |
| 981 MetadataAnnotation ensureResolved(Compiler compiler); | 981 MetadataAnnotation ensureResolved(Compiler compiler); |
| 982 } | 982 } |
| OLD | NEW |