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

Unified Diff: pkg/kernel/lib/analyzer/ast_from_analyzer.dart

Issue 2750013002: [kernel] Debugging of switch statement (Closed)
Patch Set: Take #2: Update switch case to include list of positions Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: pkg/kernel/lib/analyzer/ast_from_analyzer.dart
diff --git a/pkg/kernel/lib/analyzer/ast_from_analyzer.dart b/pkg/kernel/lib/analyzer/ast_from_analyzer.dart
index fc8e730d650c1f6d9ffd5ee645d33896cbfd51e4..cb3b68c64da7ac61ad45ae8a5a0483b93348259e 100644
--- a/pkg/kernel/lib/analyzer/ast_from_analyzer.dart
+++ b/pkg/kernel/lib/analyzer/ast_from_analyzer.dart
@@ -1113,7 +1113,7 @@ class StatementBuilder extends GeneralizingAstVisitor<ast.Statement> {
return scope.emitCompileTimeError(error);
}
if (currentCase == null) {
- currentCase = new ast.SwitchCase(<ast.Expression>[], null);
+ currentCase = new ast.SwitchCase(<ast.Expression>[], <int>[], null);
cases.add(currentCase);
}
if (member is SwitchCase) {

Powered by Google App Engine
This is Rietveld 408576698