| 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 part of dart2js; |
| 6 |
| 5 class TypeCheckerTask extends CompilerTask { | 7 class TypeCheckerTask extends CompilerTask { |
| 6 TypeCheckerTask(Compiler compiler) : super(compiler); | 8 TypeCheckerTask(Compiler compiler) : super(compiler); |
| 7 String get name => "Type checker"; | 9 String get name => "Type checker"; |
| 8 | 10 |
| 9 static const bool LOG_FAILURES = false; | 11 static const bool LOG_FAILURES = false; |
| 10 | 12 |
| 11 void check(Node tree, TreeElements elements) { | 13 void check(Node tree, TreeElements elements) { |
| 12 measure(() { | 14 measure(() { |
| 13 Visitor visitor = | 15 Visitor visitor = |
| 14 new TypeCheckerVisitor(compiler, elements, compiler.types); | 16 new TypeCheckerVisitor(compiler, elements, compiler.types); |
| (...skipping 972 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 987 } | 989 } |
| 988 | 990 |
| 989 DartType visitStringNode(StringNode node) { | 991 DartType visitStringNode(StringNode node) { |
| 990 compiler.unimplemented('visitNode', node: node); | 992 compiler.unimplemented('visitNode', node: node); |
| 991 } | 993 } |
| 992 | 994 |
| 993 DartType visitLibraryDependency(LibraryDependency node) { | 995 DartType visitLibraryDependency(LibraryDependency node) { |
| 994 compiler.unimplemented('visitNode', node: node); | 996 compiler.unimplemented('visitNode', node: node); |
| 995 } | 997 } |
| 996 } | 998 } |
| OLD | NEW |