| 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 class TypeCheckerTask extends CompilerTask { | 5 class TypeCheckerTask extends CompilerTask { |
| 6 TypeCheckerTask(Compiler compiler) : super(compiler); | 6 TypeCheckerTask(Compiler compiler) : super(compiler); |
| 7 String get name() => "Type checker"; | 7 String get name() => "Type checker"; |
| 8 | 8 |
| 9 static final bool LOG_FAILURES = false; | 9 static final bool LOG_FAILURES = false; |
| 10 | 10 |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 } | 661 } |
| 662 | 662 |
| 663 visitBreakStatement(BreakStatement node) { | 663 visitBreakStatement(BreakStatement node) { |
| 664 return StatementType.NOT_RETURNING; | 664 return StatementType.NOT_RETURNING; |
| 665 } | 665 } |
| 666 | 666 |
| 667 visitContinueStatement(ContinueStatement node) { | 667 visitContinueStatement(ContinueStatement node) { |
| 668 return StatementType.NOT_RETURNING; | 668 return StatementType.NOT_RETURNING; |
| 669 } | 669 } |
| 670 | 670 |
| 671 visitForInStatement(ForInStatement node) { | 671 visitForIn(ForIn node) { |
| 672 analyze(node.expression); | 672 analyze(node.expression); |
| 673 StatementType bodyType = analyze(node.body); | 673 StatementType bodyType = analyze(node.body); |
| 674 return bodyType.join(StatementType.NOT_RETURNING); | 674 return bodyType.join(StatementType.NOT_RETURNING); |
| 675 } | 675 } |
| 676 | 676 |
| 677 visitLabeledStatement(LabeledStatement node) { | 677 visitLabeledStatement(LabeledStatement node) { |
| 678 return node.statement.accept(this); | 678 return node.statement.accept(this); |
| 679 } | 679 } |
| 680 | 680 |
| 681 visitLiteralMap(LiteralMap node) { | 681 visitLiteralMap(LiteralMap node) { |
| (...skipping 25 matching lines...) Expand all Loading... |
| 707 } | 707 } |
| 708 | 708 |
| 709 visitCatchBlock(CatchBlock node) { | 709 visitCatchBlock(CatchBlock node) { |
| 710 fail(node); | 710 fail(node); |
| 711 } | 711 } |
| 712 | 712 |
| 713 visitTypedef(Typedef node) { | 713 visitTypedef(Typedef node) { |
| 714 fail(node); | 714 fail(node); |
| 715 } | 715 } |
| 716 } | 716 } |
| OLD | NEW |