fixed problem with TokenNameDOLLAR_LBRACE token in outlineinfo
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / ast / MethodDeclaration.java
index 1ee9990..af701a8 100644 (file)
@@ -1,7 +1,6 @@
 package net.sourceforge.phpdt.internal.compiler.ast;
 
 import net.sourceforge.phpdt.internal.compiler.ast.Block;
-import net.sourceforge.phpdt.internal.compiler.ast.ArgumentDeclaration;
 import net.sourceforge.phpdt.internal.compiler.parser.OutlineableWithChildren;
 import net.sourceforge.phpdt.internal.compiler.parser.Outlineable;
 import net.sourceforge.phpdt.internal.ui.PHPUiImages;
@@ -17,11 +16,15 @@ import java.util.ArrayList;
  */
 public class MethodDeclaration extends Statement implements OutlineableWithChildren {
 
+  /** The name of the method. */
   public char[] name;
   public Hashtable arguments;
+
+
   public Statement[] statements;
   public int bodyStart;
   public int bodyEnd = -1;
+  /** Tell if the method is a class constructor. */
   public boolean isConstructor;
   private Object parent;
   /** The outlineable children (those will be in the node array too. */
@@ -59,8 +62,8 @@ public class MethodDeclaration extends Statement implements OutlineableWithChild
       Enumeration values = arguments.elements();
       int i = 0;
       while (values.hasMoreElements()) {
-        ArgumentDeclaration o = (ArgumentDeclaration) values.nextElement();
-        buff.append(o.toString(0));
+        VariableDeclaration o = (VariableDeclaration) values.nextElement();
+        buff.append(o.toStringExpression());
         if (i != (arguments.size() - 1)) {
           buff.append(", "); //$NON-NLS-1$
         }