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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/AST.java

Issue 10824045: Fix for issue 3915 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/AST.java
===================================================================
--- editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/AST.java (revision 9937)
+++ editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/dom/AST.java (working copy)
@@ -103,7 +103,7 @@
} else if (nodeClass == DartBreakStatement.class) {
return (N) new DartBreakStatement(null);
} else if (nodeClass == DartCase.class) {
- return (N) new DartCase(null, null, new ArrayList<DartStatement>());
+ return (N) new DartCase(null, new ArrayList<DartLabel>(), new ArrayList<DartStatement>());
} else if (nodeClass == DartCatchBlock.class) {
return (N) new DartCatchBlock(null, null, null);
} else if (nodeClass == DartClass.class) {
@@ -124,7 +124,7 @@
} else if (nodeClass == DartContinueStatement.class) {
return (N) new DartContinueStatement(null);
} else if (nodeClass == DartDefault.class) {
- return (N) new DartDefault(null, new ArrayList<DartStatement>());
+ return (N) new DartDefault(new ArrayList<DartLabel>(), new ArrayList<DartStatement>());
} else if (nodeClass == DartDoubleLiteral.class) {
return (N) DartDoubleLiteral.get(0.0);
} else if (nodeClass == DartDoWhileStatement.class) {

Powered by Google App Engine
This is Rietveld 408576698