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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 getLibraryOrScriptName(); |
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 void addImport(Element element, Import import, DiagnosticListener listener); |
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 |
708 implements TypeDeclarationElement { | 708 implements TypeDeclarationElement { |
709 TypedefType get thisType; | 709 TypedefType get thisType; |
710 TypedefType get rawType; | 710 TypedefType get rawType; |
711 DartType get alias; | 711 DartType get alias; |
712 FunctionSignature get functionSignature; | 712 FunctionSignature get functionSignature; |
713 Link<DartType> get typeVariables; | 713 Link<DartType> get typeVariables; |
(...skipping 259 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 |