X-Git-Url: http://git.phpeclipse.com 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 615fc04..663735a 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 @@ -160,7 +160,7 @@ public class MethodDeclaration extends Statement implements OutlineableWithChild if (arguments != null) { final Enumeration vars = arguments.keys(); while (vars.hasMoreElements()) { - list.add(new VariableUsage((String) vars.nextElement(), getSourceStart())); + list.add(new VariableUsage((String) vars.nextElement(), sourceStart)); } } @@ -254,6 +254,7 @@ public class MethodDeclaration extends Statement implements OutlineableWithChild VariableUsage variableUsage = (VariableUsage) usedVars.get(i); if (!isVariableDeclaredBefore(declaredVars, variableUsage)) { try { + PHPeclipsePlugin.log(1,variableUsage.getName()+" "+variableUsage.getStartOffset()); PHPParserSuperclass.setMarker("warning, usage of an unknown variable : " + variableUsage.getName(), variableUsage.getStartOffset(), variableUsage.getStartOffset() + variableUsage.getName().length(),