From 52a80db1cce5da18a233b39fd23f2c6fd00865cc Mon Sep 17 00:00:00 2001 From: kpouer Date: Thu, 3 Jul 2003 22:09:22 +0000 Subject: [PATCH 1/1] The variable name is now an expression ... I know it's strange but in php you can do that : $a + $b = $c ... --- .../internal/compiler/ast/VarAssignation.java | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VarAssignation.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VarAssignation.java index e54de47..6fff25b 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VarAssignation.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/VarAssignation.java @@ -21,7 +21,7 @@ public class VarAssignation extends Expression { public static final int LSHIFT_EQUAL = 11; public static final int RSIGNEDSHIFT_EQUAL = 12; - public char[] variableName; + public Expression variableName; public Expression initializer; public int operator; @@ -33,7 +33,7 @@ public class VarAssignation extends Expression { * @param sourceStart the sourceStart * @param sourceEnd the sourceEnd */ - public VarAssignation(final char[] variableName, + public VarAssignation(final Expression variableName, final Expression initializer, final int operator, final int sourceStart, @@ -85,8 +85,7 @@ public class VarAssignation extends Expression { * @return the expression */ public String toStringExpression() { - final StringBuffer buff = new StringBuffer("$"); - buff.append(variableName); + final StringBuffer buff = new StringBuffer(variableName.toStringExpression()); buff.append(" ");//$NON-NLS-1$ buff.append(operatorToString()); buff.append(" ");//$NON-NLS-1$ -- 1.7.1