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;
*/
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. */
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$
}