| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 members_test; | 5 library members_test; |
| 6 | 6 |
| 7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
| 8 import "package:async_helper/async_helper.dart"; | 8 import "package:async_helper/async_helper.dart"; |
| 9 import 'type_test_helper.dart'; | 9 import 'type_test_helper.dart'; |
| 10 import '../../../sdk/lib/_internal/compiler/implementation/dart_types.dart'; | 10 import 'package:compiler/implementation/dart_types.dart'; |
| 11 import "../../../sdk/lib/_internal/compiler/implementation/elements/elements.dar
t" | 11 import "package:compiler/implementation/elements/elements.dart" |
| 12 show Element, ClassElement, MemberSignature, Name, PublicName, | 12 show Element, ClassElement, MemberSignature, Name, PublicName, |
| 13 DeclaredMember, Member; | 13 DeclaredMember, Member; |
| 14 import "../../../sdk/lib/_internal/compiler/implementation/resolution/class_memb
ers.dart" | 14 import "package:compiler/implementation/resolution/class_members.dart" |
| 15 show DeclaredMember, ErroneousMember, SyntheticMember; | 15 show DeclaredMember, ErroneousMember, SyntheticMember; |
| 16 | 16 |
| 17 void main() { | 17 void main() { |
| 18 testClassMembers(); | 18 testClassMembers(); |
| 19 testInterfaceMembers(); | 19 testInterfaceMembers(); |
| 20 testClassVsInterfaceMembers(); | 20 testClassVsInterfaceMembers(); |
| 21 testMixinMembers(); | 21 testMixinMembers(); |
| 22 } | 22 } |
| 23 | 23 |
| 24 MemberSignature getMember(InterfaceType cls, String name, | 24 MemberSignature getMember(InterfaceType cls, String name, |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 Expect.notEquals(interfaceMember, classMember); | 674 Expect.notEquals(interfaceMember, classMember); |
| 675 | 675 |
| 676 // A: method4(U a) | 676 // A: method4(U a) |
| 677 // B: -- | 677 // B: -- |
| 678 // C class: method4(U a) -- inherited from A. | 678 // C class: method4(U a) -- inherited from A. |
| 679 // C interface: method4(U a) -- inherited from A. | 679 // C interface: method4(U a) -- inherited from A. |
| 680 checkMember(C_this, 'method4', checkType: ALSO_CLASS_MEMBER, | 680 checkMember(C_this, 'method4', checkType: ALSO_CLASS_MEMBER, |
| 681 inheritedFrom: A_U); | 681 inheritedFrom: A_U); |
| 682 })); | 682 })); |
| 683 } | 683 } |
| OLD | NEW |