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 889 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 900 void set supertype(DartType value); | 900 void set supertype(DartType value); |
| 901 void set interfaces(Link<DartType> value); | 901 void set interfaces(Link<DartType> value); |
| 902 void set patch(ClassElement value); | 902 void set patch(ClassElement value); |
| 903 void set origin(ClassElement value); | 903 void set origin(ClassElement value); |
| 904 void set supertypeLoadState(int value); | 904 void set supertypeLoadState(int value); |
| 905 void set resolutionState(int value); | 905 void set resolutionState(int value); |
| 906 void set nativeTagInfo(String value); | 906 void set nativeTagInfo(String value); |
| 907 | 907 |
| 908 bool isObject(Compiler compiler); | 908 bool isObject(Compiler compiler); |
| 909 bool isSubclassOf(ClassElement cls); | 909 bool isSubclassOf(ClassElement cls); |
| 910 /// Returns true if `this` implements [intrface]. | |
|
ngeoffray
2014/01/31 23:32:41
if `this` explicitly/nominally implements [intrfac
floitsch
2014/01/31 23:36:23
Done.
| |
| 911 /// | |
| 912 /// Does not return true if `this` has a `call` method, and [intrface] is | |
| 913 /// `Function`. | |
| 910 bool implementsInterface(ClassElement intrface); | 914 bool implementsInterface(ClassElement intrface); |
| 911 bool hasFieldShadowedBy(Element fieldMember); | 915 bool hasFieldShadowedBy(Element fieldMember); |
| 912 | 916 |
| 913 /// Returns `true` if this class has a @proxy annotation. | 917 /// Returns `true` if this class has a @proxy annotation. |
| 914 bool get isProxy; | 918 bool get isProxy; |
| 915 | 919 |
| 916 /// Returns `true` if the class hierarchy for this class contains errors. | 920 /// Returns `true` if the class hierarchy for this class contains errors. |
| 917 bool get hasIncompleteHierarchy; | 921 bool get hasIncompleteHierarchy; |
| 918 | 922 |
| 919 ClassElement ensureResolved(Compiler compiler); | 923 ClassElement ensureResolved(Compiler compiler); |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1099 InterfaceType get declarer; | 1103 InterfaceType get declarer; |
| 1100 | 1104 |
| 1101 /// Returns `true` if this member is static. | 1105 /// Returns `true` if this member is static. |
| 1102 bool get isStatic; | 1106 bool get isStatic; |
| 1103 | 1107 |
| 1104 /// Returns `true` if this member is a getter or setter implicitly declared | 1108 /// Returns `true` if this member is a getter or setter implicitly declared |
| 1105 /// by a field. | 1109 /// by a field. |
| 1106 bool get isDeclaredByField; | 1110 bool get isDeclaredByField; |
| 1107 } | 1111 } |
| 1108 | 1112 |
| OLD | NEW |