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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart

Issue 980203002: Fix dart2dart new_backend (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart b/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
index 8398cbbdb8ad0ab63e102454b5940874c06a4ac8..7c8113a26352b6a03ffbd573b6188983b8909ad7 100644
--- a/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend_ast_to_frontend_ast.dart
@@ -976,17 +976,16 @@ class TreePrinter {
setElement(definition, param.element, param);
}
if (param.defaultValue != null) {
- return new tree.SendSet(
+ definition = new tree.SendSet(
Johnni Winther 2015/03/05 10:48:01 This fixes a crash in language/issue13179_test
null,
definition,
new tree.Operator(assignOperator),
singleton(makeExpression(param.defaultValue)));
- } else {
- return new tree.VariableDefinitions(
- null,
- makeEmptyModifiers(),
- singleton(definition));
}
+ return new tree.VariableDefinitions(
+ null,
+ makeEmptyModifiers(),
+ singleton(definition));
} else {
tree.Node definition;
if (param.defaultValue != null) {
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698