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` exlicitly/nominally implements [intrface]. | |
|
Johnni Winther
2014/02/03 08:27:25
'exlicitly' -> 'explicitly'
floitsch
2014/02/03 17:43:20
Done.
| |
| 911 /// | |
| 912 /// Note that, if [intrface] is the `Function` class, this method returns | |
| 913 /// falso for a class that has a `call` method but does not explicitly | |
| 914 /// implement `Function`. | |
| 910 bool implementsInterface(ClassElement intrface); | 915 bool implementsInterface(ClassElement intrface); |
| 911 bool hasFieldShadowedBy(Element fieldMember); | 916 bool hasFieldShadowedBy(Element fieldMember); |
| 912 | 917 |
| 913 /// Returns `true` if this class has a @proxy annotation. | 918 /// Returns `true` if this class has a @proxy annotation. |
| 914 bool get isProxy; | 919 bool get isProxy; |
| 915 | 920 |
| 916 /// Returns `true` if the class hierarchy for this class contains errors. | 921 /// Returns `true` if the class hierarchy for this class contains errors. |
| 917 bool get hasIncompleteHierarchy; | 922 bool get hasIncompleteHierarchy; |
| 918 | 923 |
| 919 ClassElement ensureResolved(Compiler compiler); | 924 ClassElement ensureResolved(Compiler compiler); |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1099 InterfaceType get declarer; | 1104 InterfaceType get declarer; |
| 1100 | 1105 |
| 1101 /// Returns `true` if this member is static. | 1106 /// Returns `true` if this member is static. |
| 1102 bool get isStatic; | 1107 bool get isStatic; |
| 1103 | 1108 |
| 1104 /// Returns `true` if this member is a getter or setter implicitly declared | 1109 /// Returns `true` if this member is a getter or setter implicitly declared |
| 1105 /// by a field. | 1110 /// by a field. |
| 1106 bool get isDeclaredByField; | 1111 bool get isDeclaredByField; |
| 1107 } | 1112 } |
| 1108 | 1113 |
| OLD | NEW |