| 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/tasks.dart' show | 7 import 'common/tasks.dart' show |
| 8 CompilerTask; | 8 CompilerTask; |
| 9 import 'compiler.dart' show | 9 import 'compiler.dart' show |
| 10 Compiler, | 10 Compiler, |
| 11 isPrivateName; | 11 isPrivateName; |
| 12 import 'constants/expressions.dart'; | 12 import 'constants/expressions.dart'; |
| 13 import 'constants/values.dart'; | 13 import 'constants/values.dart'; |
| 14 import 'core_types.dart'; | 14 import 'core_types.dart'; |
| 15 import 'dart_types.dart'; | 15 import 'dart_types.dart'; |
| 16 import 'diagnostics/invariant.dart' show | 16 import 'diagnostics/invariant.dart' show |
| 17 invariant; | 17 invariant; |
| 18 import 'diagnostics/messages.dart'; |
| 18 import 'diagnostics/spannable.dart' show | 19 import 'diagnostics/spannable.dart' show |
| 19 Spannable; | 20 Spannable; |
| 20 import 'elements/elements.dart' show | 21 import 'elements/elements.dart' show |
| 21 AbstractFieldElement, | 22 AbstractFieldElement, |
| 22 AstElement, | 23 AstElement, |
| 23 AsyncMarker, | 24 AsyncMarker, |
| 24 ClassElement, | 25 ClassElement, |
| 25 ConstructorElement, | 26 ConstructorElement, |
| 26 Element, | 27 Element, |
| 27 Elements, | 28 Elements, |
| 28 EnumClassElement, | 29 EnumClassElement, |
| 29 ExecutableElement, | 30 ExecutableElement, |
| 30 FieldElement, | 31 FieldElement, |
| 31 FunctionElement, | 32 FunctionElement, |
| 32 GetterElement, | 33 GetterElement, |
| 33 InitializingFormalElement, | 34 InitializingFormalElement, |
| 34 LibraryElement, | 35 LibraryElement, |
| 35 Member, | 36 Member, |
| 36 MemberSignature, | 37 MemberSignature, |
| 37 Name, | 38 Name, |
| 38 ParameterElement, | 39 ParameterElement, |
| 39 PrivateName, | 40 PrivateName, |
| 40 PublicName, | 41 PublicName, |
| 41 ResolvedAst, | 42 ResolvedAst, |
| 42 SetterElement, | 43 SetterElement, |
| 43 TypeDeclarationElement, | 44 TypeDeclarationElement, |
| 44 TypedElement, | 45 TypedElement, |
| 45 TypedefElement, | 46 TypedefElement, |
| 46 VariableElement; | 47 VariableElement; |
| 47 import 'messages.dart'; | |
| 48 import 'resolution/resolution.dart' show | 48 import 'resolution/resolution.dart' show |
| 49 TreeElements; | 49 TreeElements; |
| 50 import 'resolution/class_members.dart' show | 50 import 'resolution/class_members.dart' show |
| 51 MembersCreator; | 51 MembersCreator; |
| 52 import 'tree/tree.dart'; | 52 import 'tree/tree.dart'; |
| 53 import 'util/util.dart' show | 53 import 'util/util.dart' show |
| 54 Link, | 54 Link, |
| 55 LinkBuilder; | 55 LinkBuilder; |
| 56 import '../compiler_new.dart' as api; | 56 import '../compiler_new.dart' as api; |
| 57 | 57 |
| (...skipping 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1923 | 1923 |
| 1924 visitTypedef(Typedef node) { | 1924 visitTypedef(Typedef node) { |
| 1925 // Do not typecheck [Typedef] nodes. | 1925 // Do not typecheck [Typedef] nodes. |
| 1926 } | 1926 } |
| 1927 | 1927 |
| 1928 visitNode(Node node) { | 1928 visitNode(Node node) { |
| 1929 compiler.internalError(node, | 1929 compiler.internalError(node, |
| 1930 'Unexpected node ${node.getObjectDescription()} in the type checker.'); | 1930 'Unexpected node ${node.getObjectDescription()} in the type checker.'); |
| 1931 } | 1931 } |
| 1932 } | 1932 } |
| OLD | NEW |