Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: lib/compiler/implementation/typechecker.dart

Issue 10387080: Accept more labels per switch case. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix bug when there are more than one label on a statement. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 } 722 }
723 723
724 visitSwitchStatement(SwitchStatement node) { 724 visitSwitchStatement(SwitchStatement node) {
725 fail(node); 725 fail(node);
726 } 726 }
727 727
728 visitSwitchCase(SwitchCase node) { 728 visitSwitchCase(SwitchCase node) {
729 fail(node); 729 fail(node);
730 } 730 }
731 731
732 visitCaseMatch(CaseMatch node) {
733 fail(node);
734 }
735
732 visitTryStatement(TryStatement node) { 736 visitTryStatement(TryStatement node) {
733 fail(node, 'unimplemented'); 737 fail(node, 'unimplemented');
734 } 738 }
735 739
736 visitScriptTag(ScriptTag node) { 740 visitScriptTag(ScriptTag node) {
737 fail(node); 741 fail(node);
738 } 742 }
739 743
740 visitCatchBlock(CatchBlock node) { 744 visitCatchBlock(CatchBlock node) {
741 fail(node); 745 fail(node);
742 } 746 }
743 747
744 visitTypedef(Typedef node) { 748 visitTypedef(Typedef node) {
745 fail(node); 749 fail(node);
746 } 750 }
747 } 751 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698