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 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../common/resolution.dart' show Resolution; | 8 import '../common/resolution.dart' show Resolution; |
| 9 import '../compiler.dart' show Compiler; | 9 import '../compiler.dart' show Compiler; |
| 10 import '../constants/constructors.dart'; | 10 import '../constants/constructors.dart'; |
| (...skipping 1537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1548 /// Returns `true` if this class has a @proxy annotation. | 1548 /// Returns `true` if this class has a @proxy annotation. |
| 1549 bool get isProxy; | 1549 bool get isProxy; |
| 1550 | 1550 |
| 1551 /// Returns `true` if the class hierarchy for this class contains errors. | 1551 /// Returns `true` if the class hierarchy for this class contains errors. |
| 1552 bool get hasIncompleteHierarchy; | 1552 bool get hasIncompleteHierarchy; |
| 1553 | 1553 |
| 1554 void addBackendMember(Element element); | 1554 void addBackendMember(Element element); |
| 1555 void reverseBackendMembers(); | 1555 void reverseBackendMembers(); |
| 1556 | 1556 |
| 1557 Element lookupMember(String memberName); | 1557 Element lookupMember(String memberName); |
| 1558 Element lookupByName(Name memberName); | 1558 |
| 1559 /// Looks up a class instance member declared or inherited in this class | |
| 1560 /// using [memberName] to match the (private) name and getter/setter property. | |
| 1561 /// | |
| 1562 /// If [stopAtSuperclass], no member from [stopAtSuperclass] or its | |
|
Siggi Cherem (dart-lang)
2016/10/17 19:30:33
If [stopAtSuperclass]... is specified?
ALternativ
Johnni Winther
2016/10/18 08:13:51
Done.
| |
| 1563 /// superclasses will be returned. | |
| 1564 Element lookupByName(Name memberName, {ClassElement stopAtSuperclass}); | |
|
Siggi Cherem (dart-lang)
2016/10/17 19:30:33
nit: rename to just stopAt?
Johnni Winther
2016/10/18 08:13:51
Done.
| |
| 1559 Element lookupSuperByName(Name memberName); | 1565 Element lookupSuperByName(Name memberName); |
| 1560 | 1566 |
| 1561 Element lookupLocalMember(String memberName); | 1567 Element lookupLocalMember(String memberName); |
| 1562 Element lookupBackendMember(String memberName); | 1568 Element lookupBackendMember(String memberName); |
| 1563 Element lookupSuperMember(String memberName); | 1569 Element lookupSuperMember(String memberName); |
| 1564 | 1570 |
| 1565 Element lookupSuperMemberInLibrary(String memberName, LibraryElement library); | 1571 Element lookupSuperMemberInLibrary(String memberName, LibraryElement library); |
| 1566 | 1572 |
| 1567 // TODO(johnniwinther): Clean up semantics. Can the default constructor take | 1573 // TODO(johnniwinther): Clean up semantics. Can the default constructor take |
| 1568 // optional arguments? Must it be resolved? | 1574 // optional arguments? Must it be resolved? |
| (...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1912 /// by a field. | 1918 /// by a field. |
| 1913 bool get isDeclaredByField; | 1919 bool get isDeclaredByField; |
| 1914 | 1920 |
| 1915 /// Returns `true` if this member is abstract. | 1921 /// Returns `true` if this member is abstract. |
| 1916 bool get isAbstract; | 1922 bool get isAbstract; |
| 1917 | 1923 |
| 1918 /// If abstract, [implementation] points to the overridden concrete member, | 1924 /// If abstract, [implementation] points to the overridden concrete member, |
| 1919 /// if any. Otherwise [implementation] points to the member itself. | 1925 /// if any. Otherwise [implementation] points to the member itself. |
| 1920 Member get implementation; | 1926 Member get implementation; |
| 1921 } | 1927 } |
| OLD | NEW |