| 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 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Resolution; | 8 import '../common/resolution.dart' show Resolution; |
| 9 import '../constants/constructors.dart'; | 9 import '../constants/constructors.dart'; |
| 10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
| (...skipping 1505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 /// because it does not take parameterized types into account. | 1516 /// because it does not take parameterized types into account. |
| 1517 bool isSubclassOf(ClassElement cls); | 1517 bool isSubclassOf(ClassElement cls); |
| 1518 | 1518 |
| 1519 /// Returns `true` if this class explicitly implements [intrface]. | 1519 /// Returns `true` if this class explicitly implements [intrface]. |
| 1520 /// | 1520 /// |
| 1521 /// Note that, if [intrface] is the `Function` class, this method returns | 1521 /// Note that, if [intrface] is the `Function` class, this method returns |
| 1522 /// false for a class that has a `call` method but does not explicitly | 1522 /// false for a class that has a `call` method but does not explicitly |
| 1523 /// implement `Function`. | 1523 /// implement `Function`. |
| 1524 bool implementsInterface(ClassElement intrface); | 1524 bool implementsInterface(ClassElement intrface); |
| 1525 | 1525 |
| 1526 bool hasFieldShadowedBy(Element fieldMember); | 1526 bool hasFieldShadowedBy(FieldElement fieldMember); |
| 1527 | 1527 |
| 1528 /// Returns `true` if this class has a @proxy annotation. | 1528 /// Returns `true` if this class has a @proxy annotation. |
| 1529 bool get isProxy; | 1529 bool get isProxy; |
| 1530 | 1530 |
| 1531 /// Returns `true` if the class hierarchy for this class contains errors. | 1531 /// Returns `true` if the class hierarchy for this class contains errors. |
| 1532 bool get hasIncompleteHierarchy; | 1532 bool get hasIncompleteHierarchy; |
| 1533 | 1533 |
| 1534 void addConstructorBody(ConstructorBodyElement element); | 1534 void addConstructorBody(ConstructorBodyElement element); |
| 1535 | 1535 |
| 1536 Element lookupMember(String memberName); | 1536 Element lookupMember(String memberName); |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1897 /// by a field. | 1897 /// by a field. |
| 1898 bool get isDeclaredByField; | 1898 bool get isDeclaredByField; |
| 1899 | 1899 |
| 1900 /// Returns `true` if this member is abstract. | 1900 /// Returns `true` if this member is abstract. |
| 1901 bool get isAbstract; | 1901 bool get isAbstract; |
| 1902 | 1902 |
| 1903 /// If abstract, [implementation] points to the overridden concrete member, | 1903 /// If abstract, [implementation] points to the overridden concrete member, |
| 1904 /// if any. Otherwise [implementation] points to the member itself. | 1904 /// if any. Otherwise [implementation] points to the member itself. |
| 1905 Member get implementation; | 1905 Member get implementation; |
| 1906 } | 1906 } |
| OLD | NEW |