| 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 13 matching lines...) Expand all Loading... |
| 24 Elements, | 24 Elements, |
| 25 EnumClassElement, | 25 EnumClassElement, |
| 26 EnumConstantElement, | 26 EnumConstantElement, |
| 27 ExecutableElement, | 27 ExecutableElement, |
| 28 FieldElement, | 28 FieldElement, |
| 29 FunctionElement, | 29 FunctionElement, |
| 30 GetterElement, | 30 GetterElement, |
| 31 InitializingFormalElement, | 31 InitializingFormalElement, |
| 32 LibraryElement, | 32 LibraryElement, |
| 33 MemberSignature, | 33 MemberSignature, |
| 34 Name, | |
| 35 ParameterElement, | 34 ParameterElement, |
| 36 PrivateName, | |
| 37 PublicName, | |
| 38 ResolvedAst, | 35 ResolvedAst, |
| 39 SetterElement, | 36 SetterElement, |
| 40 TypeDeclarationElement, | 37 TypeDeclarationElement, |
| 41 TypedElement, | 38 TypedElement, |
| 42 VariableElement; | 39 VariableElement; |
| 40 import 'elements/names.dart'; |
| 43 import 'enqueue.dart' show DeferredAction; | 41 import 'enqueue.dart' show DeferredAction; |
| 44 import 'resolution/class_members.dart' show MembersCreator, ErroneousMember; | 42 import 'resolution/class_members.dart' show MembersCreator, ErroneousMember; |
| 45 import 'resolution/tree_elements.dart' show TreeElements; | 43 import 'resolution/tree_elements.dart' show TreeElements; |
| 46 import 'tree/tree.dart'; | 44 import 'tree/tree.dart'; |
| 47 import 'util/util.dart' show Link, LinkBuilder; | 45 import 'util/util.dart' show Link, LinkBuilder; |
| 48 | 46 |
| 49 class TypeCheckerTask extends CompilerTask { | 47 class TypeCheckerTask extends CompilerTask { |
| 50 final Compiler compiler; | 48 final Compiler compiler; |
| 51 TypeCheckerTask(Compiler compiler) | 49 TypeCheckerTask(Compiler compiler) |
| 52 : compiler = compiler, | 50 : compiler = compiler, |
| (...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2056 | 2054 |
| 2057 visitTypedef(Typedef node) { | 2055 visitTypedef(Typedef node) { |
| 2058 // Do not typecheck [Typedef] nodes. | 2056 // Do not typecheck [Typedef] nodes. |
| 2059 } | 2057 } |
| 2060 | 2058 |
| 2061 visitNode(Node node) { | 2059 visitNode(Node node) { |
| 2062 reporter.internalError(node, | 2060 reporter.internalError(node, |
| 2063 'Unexpected node ${node.getObjectDescription()} in the type checker.'); | 2061 'Unexpected node ${node.getObjectDescription()} in the type checker.'); |
| 2064 } | 2062 } |
| 2065 } | 2063 } |
| OLD | NEW |