From ed7ffb8c4cb253e11ecfe8a6969b00f32c2a8bff Mon Sep 17 00:00:00 2001 From: kpouer Date: Tue, 12 Aug 2003 07:07:29 +0000 Subject: [PATCH 1/1] a small bugfix on unused parameter offset --- .../internal/compiler/ast/MethodDeclaration.java | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) 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; -- 1.7.1