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 '../compiler.dart' show | 7 import '../compiler.dart' show |
8 Compiler; | 8 Compiler; |
9 import '../constants/constructors.dart'; | 9 import '../constants/constructors.dart'; |
10 import '../constants/expressions.dart'; | 10 import '../constants/expressions.dart'; |
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 | 1385 |
1386 ClassElement get patch; | 1386 ClassElement get patch; |
1387 ClassElement get origin; | 1387 ClassElement get origin; |
1388 ClassElement get declaration; | 1388 ClassElement get declaration; |
1389 ClassElement get implementation; | 1389 ClassElement get implementation; |
1390 | 1390 |
1391 String get nativeTagInfo; | 1391 String get nativeTagInfo; |
1392 | 1392 |
1393 /// `true` if this class is an enum declaration. | 1393 /// `true` if this class is an enum declaration. |
1394 bool get isEnumClass; | 1394 bool get isEnumClass; |
1395 | |
1396 /// `true` if this class is a mixin application, either named or unnamed. | |
1397 bool get isMixinApplication; | 1395 bool get isMixinApplication; |
1398 | |
1399 /// `true` if this class is a named mixin application, e.g. | |
1400 /// | |
1401 /// class NamedMixinApplication = SuperClass with MixinClass; | |
1402 /// | |
1403 bool get isNamedMixinApplication; | |
1404 | |
1405 /// `true` if this class is an unnamed mixin application, e.g. the synthesized | |
1406 /// `SuperClass+MixinClass` mixin application class in: | |
1407 /// | |
1408 /// class Class extends SuperClass with MixinClass {} | |
1409 /// | |
1410 bool get isUnnamedMixinApplication; | 1396 bool get isUnnamedMixinApplication; |
1411 | |
1412 bool get hasBackendMembers; | 1397 bool get hasBackendMembers; |
1413 bool get hasLocalScopeMembers; | 1398 bool get hasLocalScopeMembers; |
1414 | 1399 |
1415 /// Returns `true` if this class is `Object` from dart:core. | 1400 /// Returns `true` if this class is `Object` from dart:core. |
1416 bool get isObject; | 1401 bool get isObject; |
1417 | 1402 |
1418 /// Returns `true` if this class implements [Function] either by directly | 1403 /// Returns `true` if this class implements [Function] either by directly |
1419 /// implementing the interface or by providing a [call] method. | 1404 /// implementing the interface or by providing a [call] method. |
1420 bool implementsFunction(Compiler compiler); | 1405 bool implementsFunction(Compiler compiler); |
1421 | 1406 |
(...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 bool get isDeclaredByField; | 1683 bool get isDeclaredByField; |
1699 | 1684 |
1700 /// Returns `true` if this member is abstract. | 1685 /// Returns `true` if this member is abstract. |
1701 bool get isAbstract; | 1686 bool get isAbstract; |
1702 | 1687 |
1703 /// If abstract, [implementation] points to the overridden concrete member, | 1688 /// If abstract, [implementation] points to the overridden concrete member, |
1704 /// if any. Otherwise [implementation] points to the member itself. | 1689 /// if any. Otherwise [implementation] points to the member itself. |
1705 Member get implementation; | 1690 Member get implementation; |
1706 } | 1691 } |
1707 | 1692 |
OLD | NEW |