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 resolution.compute_members; | 5 library resolution.compute_members; |
6 | 6 |
7 import '../compiler.dart' show | 7 import '../compiler.dart' show |
8 Compiler, | 8 Compiler, |
9 isPrivateName; | 9 isPrivateName; |
10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
11 import '../diagnostics/invariant.dart' show | 11 import '../diagnostics/invariant.dart' show |
12 invariant; | 12 invariant; |
| 13 import '../diagnostics/messages.dart' show |
| 14 MessageKind; |
13 import '../elements/elements.dart' show | 15 import '../elements/elements.dart' show |
14 ClassElement, | 16 ClassElement, |
15 Element, | 17 Element, |
16 LibraryElement, | 18 LibraryElement, |
17 Member, | 19 Member, |
18 MemberElement, | 20 MemberElement, |
19 MemberSignature, | 21 MemberSignature, |
20 MixinApplicationElement, | 22 MixinApplicationElement, |
21 Name, | 23 Name, |
22 PublicName; | 24 PublicName; |
23 import '../messages.dart' show | |
24 MessageKind; | |
25 import '../util/util.dart'; | 25 import '../util/util.dart'; |
26 | 26 |
27 part 'member_impl.dart'; | 27 part 'member_impl.dart'; |
28 | 28 |
29 abstract class MembersCreator { | 29 abstract class MembersCreator { |
30 final ClassElement cls; | 30 final ClassElement cls; |
31 final Compiler compiler; | 31 final Compiler compiler; |
32 | 32 |
33 final Iterable<String> computedMemberNames; | 33 final Iterable<String> computedMemberNames; |
34 final Map<Name, Member> classMembers; | 34 final Map<Name, Member> classMembers; |
(...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
906 message: "Members have not been fully computed for $this.")); | 906 message: "Members have not been fully computed for $this.")); |
907 if (interfaceMembersAreClassMembers) { | 907 if (interfaceMembersAreClassMembers) { |
908 classMembers.forEach((_, member) { | 908 classMembers.forEach((_, member) { |
909 if (!member.isStatic) f(member); | 909 if (!member.isStatic) f(member); |
910 }); | 910 }); |
911 } else { | 911 } else { |
912 interfaceMembers.forEach((_, member) => f(member)); | 912 interfaceMembers.forEach((_, member) => f(member)); |
913 } | 913 } |
914 } | 914 } |
915 } | 915 } |
OLD | NEW |