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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartNamedExpression.java

Issue 10915031: Issue 4796. Support for renaming named parameters in invocations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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: compiler/java/com/google/dart/compiler/ast/DartNamedExpression.java
diff --git a/compiler/java/com/google/dart/compiler/ast/DartNamedExpression.java b/compiler/java/com/google/dart/compiler/ast/DartNamedExpression.java
index 218d0957cb66278dee34fa9e0caafbe608780266..434348caa7b72a3f9945e88508d919d449a1bc35 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartNamedExpression.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartNamedExpression.java
@@ -13,7 +13,7 @@ public class DartNamedExpression extends DartExpression {
private DartExpression expression;
public DartNamedExpression(DartIdentifier ident, DartExpression expression) {
- this.name = ident;
+ this.name = becomeParentOf(ident);
this.expression = becomeParentOf(expression);
}

Powered by Google App Engine
This is Rietveld 408576698