From: kpouer Date: Mon, 11 Aug 2003 21:29:24 +0000 (+0000) Subject: a bugfix on used variables report X-Git-Url: http://git.phpeclipse.com a bugfix on used variables report --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/GlobalStatement.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/GlobalStatement.java index f86f678..af63ccb 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/GlobalStatement.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/GlobalStatement.java @@ -37,7 +37,7 @@ public class GlobalStatement extends Statement implements Outlineable { if (i != 0) { buff.append(", ");//$NON-NLS-1$ } - buff.append(variables[i]); + buff.append(variables[i].toStringExpression()); } return buff.toString(); } @@ -69,7 +69,7 @@ public class GlobalStatement extends Statement implements Outlineable { public List getOutsideVariable() { final ArrayList list = new ArrayList(variables.length); for (int i = 0; i < variables.length; i++) { - list.addAll(variables[i].getModifiedVariable()); + list.addAll(variables[i].getUsedVariable()); } return list; }