X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/MethodDeclaration.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/MethodDeclaration.java index e63c662..b5988a9 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/MethodDeclaration.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/internal/compiler/ast/MethodDeclaration.java @@ -11,8 +11,8 @@ package net.sourceforge.phpeclipse.internal.compiler.ast; import net.sourceforge.phpdt.core.compiler.CharOperation; +import net.sourceforge.phpdt.internal.compiler.ASTVisitor; import net.sourceforge.phpdt.internal.compiler.CompilationResult; -import net.sourceforge.phpdt.internal.compiler.IAbstractSyntaxTreeVisitor; import net.sourceforge.phpdt.internal.compiler.flow.ExceptionHandlingFlowContext; import net.sourceforge.phpdt.internal.compiler.flow.FlowInfo; import net.sourceforge.phpdt.internal.compiler.flow.InitializationFlowContext; @@ -24,6 +24,9 @@ import net.sourceforge.phpdt.internal.compiler.problem.AbortMethod; public class MethodDeclaration extends AbstractMethodDeclaration { public TypeReference returnType; + public static final int FUNCTION_DEFINITION = 1; + public static final int METHOD_DEFINITION = 2; + public int type; /** * MethodDeclaration constructor comment. @@ -129,7 +132,7 @@ public class MethodDeclaration extends AbstractMethodDeclaration { return returnType.toString(tab) + " "; //$NON-NLS-1$ } - public void traverse(IAbstractSyntaxTreeVisitor visitor, ClassScope classScope) { + public void traverse(ASTVisitor visitor, ClassScope classScope) { if (visitor.visit(this, classScope)) { if (returnType != null)