From: kpouer Date: Tue, 12 Aug 2003 07:07:29 +0000 (+0000) Subject: a small bugfix on unused parameter offset X-Git-Url: http://git.phpeclipse.com a small bugfix on unused parameter offset --- diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/MethodDeclaration.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/MethodDeclaration.java index 1a8c534..4e017eb 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/MethodDeclaration.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/compiler/ast/MethodDeclaration.java @@ -172,9 +172,10 @@ public class MethodDeclaration extends Statement implements OutlineableWithChild private List getParameters(final List list) { if (arguments != null) { - final Enumeration vars = arguments.keys(); + final Enumeration vars = arguments.elements(); while (vars.hasMoreElements()) { - list.add(new VariableUsage((String) vars.nextElement(), sourceStart)); + final VariableDeclaration variable = (VariableDeclaration) vars.nextElement(); + list.add(new VariableUsage(variable.name(), variable.sourceStart)); } } return list;