| 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 dart2js.typechecker; | 5 library dart2js.typechecker; |
| 6 | 6 |
| 7 import 'common/names.dart' show Identifiers; | 7 import 'common/names.dart' show Identifiers; |
| 8 import 'common/resolution.dart' show Resolution; | 8 import 'common/resolution.dart' show Resolution; |
| 9 import 'common/tasks.dart' show CompilerTask; | 9 import 'common/tasks.dart' show CompilerTask; |
| 10 import 'common.dart'; | 10 import 'common.dart'; |
| (...skipping 797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 node, | 808 node, |
| 809 MessageKind.PRIVATE_ACCESS, | 809 MessageKind.PRIVATE_ACCESS, |
| 810 { | 810 { |
| 811 'name': name, | 811 'name': name, |
| 812 'libraryName': privateName.library.libraryOrScriptName | 812 'libraryName': privateName.library.libraryOrScriptName |
| 813 }, | 813 }, |
| 814 isHint: isHint); | 814 isHint: isHint); |
| 815 foundPrivateMember = true; | 815 foundPrivateMember = true; |
| 816 } | 816 } |
| 817 } | 817 } |
| 818 |
| 818 // TODO(johnniwinther): Avoid computation of all class members. | 819 // TODO(johnniwinther): Avoid computation of all class members. |
| 819 MembersCreator.computeAllClassMembers(resolution, interface.element); | 820 MembersCreator.computeAllClassMembers(resolution, interface.element); |
| 820 if (lookupClassMember) { | 821 if (lookupClassMember) { |
| 821 interface.element.forEachClassMember(findPrivateMember); | 822 interface.element.forEachClassMember(findPrivateMember); |
| 822 } else { | 823 } else { |
| 823 interface.element.forEachInterfaceMember(findPrivateMember); | 824 interface.element.forEachInterfaceMember(findPrivateMember); |
| 824 } | 825 } |
| 825 } | 826 } |
| 826 if (!foundPrivateMember) { | 827 if (!foundPrivateMember) { |
| 827 switch (memberKind) { | 828 switch (memberKind) { |
| (...skipping 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2027 | 2028 |
| 2028 visitTypedef(Typedef node) { | 2029 visitTypedef(Typedef node) { |
| 2029 // Do not typecheck [Typedef] nodes. | 2030 // Do not typecheck [Typedef] nodes. |
| 2030 } | 2031 } |
| 2031 | 2032 |
| 2032 visitNode(Node node) { | 2033 visitNode(Node node) { |
| 2033 reporter.internalError(node, | 2034 reporter.internalError(node, |
| 2034 'Unexpected node ${node.getObjectDescription()} in the type checker.'); | 2035 'Unexpected node ${node.getObjectDescription()} in the type checker.'); |
| 2035 } | 2036 } |
| 2036 } | 2037 } |
| OLD | NEW |