Rewritten Parser/Scanner to package net.sourceforge.phpdt.internal.compiler.parser
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / codeassist / complete / CompletionOnMethodName.java
diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/codeassist/complete/CompletionOnMethodName.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpdt/internal/codeassist/complete/CompletionOnMethodName.java
deleted file mode 100644 (file)
index 9679be1..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2000, 2001, 2002 International Business Machines Corp. and others.
- * All rights reserved. This program and the accompanying materials 
- * are made available under the terms of the Common Public License v0.5 
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/cpl-v05.html
- * 
- * Contributors:
- *     IBM Corporation - initial API and implementation
- ******************************************************************************/
-package net.sourceforge.phpdt.internal.codeassist.complete;
-
-import net.sourceforge.phpdt.internal.compiler.CompilationResult;
-import net.sourceforge.phpdt.internal.compiler.ast.MethodDeclaration;
-import net.sourceforge.phpdt.internal.compiler.lookup.ClassScope;
-
-public class CompletionOnMethodName extends MethodDeclaration {
-       public int selectorEnd;
-
-       public CompletionOnMethodName(CompilationResult compilationResult){
-               super(compilationResult);
-       }
-       
-       public void resolve(ClassScope upperScope) {
-               
-               super.resolve(upperScope);
-               throw new CompletionNodeFound(this, upperScope);
-       }
-
-       public String toString(int tab) {
-
-               String s = tabString(tab);
-               s += "<CompletionOnMethodName:"; //$NON-NLS-1$
-
-               if (modifiers != AccDefault) {
-                       s += modifiersString(modifiers);
-               }
-
-               s += returnTypeToString(0);
-               s += new String(selector) + "("; //$NON-NLS-1$
-               if (arguments != null) {
-                       for (int i = 0; i < arguments.length; i++) {
-                               s += arguments[i].toString(0);
-                               if (i != (arguments.length - 1))
-                                       s = s + ", "; //$NON-NLS-1$
-                       };
-               };
-               s += ")"; //$NON-NLS-1$
-               if (thrownExceptions != null) {
-                       s += " throws "; //$NON-NLS-1$
-                       for (int i = 0; i < thrownExceptions.length; i++) {
-                               s += thrownExceptions[i].toString(0);
-                               if (i != (thrownExceptions.length - 1))
-                                       s = s + ", "; //$NON-NLS-1$
-                       };
-               };
-
-               s += ">"; //$NON-NLS-1$
-               return s;
-       }
-}
\ No newline at end of file