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 '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
9 import '../tree/tree.dart'; | 9 import '../tree/tree.dart'; |
10 import '../util/util.dart'; | 10 import '../util/util.dart'; |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
878 | 878 |
879 /** | 879 /** |
880 * [:true:] if this library is a platform library whose path starts with | 880 * [:true:] if this library is a platform library whose path starts with |
881 * an underscore. | 881 * an underscore. |
882 */ | 882 */ |
883 bool get isInternalLibrary; | 883 bool get isInternalLibrary; |
884 bool get canUseNative; | 884 bool get canUseNative; |
885 bool get exportsHandled; | 885 bool get exportsHandled; |
886 | 886 |
887 // TODO(kasperl): We should try to get rid of these. | 887 // TODO(kasperl): We should try to get rid of these. |
888 void set canUseNative(bool value); | |
889 void set libraryTag(LibraryName value); | 888 void set libraryTag(LibraryName value); |
890 | 889 |
891 LibraryElement get implementation; | 890 LibraryElement get implementation; |
892 | 891 |
893 void addCompilationUnit(CompilationUnitElement element); | 892 void addCompilationUnit(CompilationUnitElement element); |
894 void addTag(LibraryTag tag, DiagnosticListener listener); | 893 void addTag(LibraryTag tag, DiagnosticListener listener); |
895 void addImport(Element element, Import import, DiagnosticListener listener); | 894 void addImport(Element element, Import import, DiagnosticListener listener); |
896 | 895 |
897 /// Record which element an import or export tag resolved to. | 896 /// Record which element an import or export tag resolved to. |
898 /// (Belongs on builder object). | 897 /// (Belongs on builder object). |
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1602 bool get isDeclaredByField; | 1601 bool get isDeclaredByField; |
1603 | 1602 |
1604 /// Returns `true` if this member is abstract. | 1603 /// Returns `true` if this member is abstract. |
1605 bool get isAbstract; | 1604 bool get isAbstract; |
1606 | 1605 |
1607 /// If abstract, [implementation] points to the overridden concrete member, | 1606 /// If abstract, [implementation] points to the overridden concrete member, |
1608 /// if any. Otherwise [implementation] points to the member itself. | 1607 /// if any. Otherwise [implementation] points to the member itself. |
1609 Member get implementation; | 1608 Member get implementation; |
1610 } | 1609 } |
1611 | 1610 |
OLD | NEW |