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