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