package net.sourceforge.phpdt.internal.compiler.parser;
+import java.util.Stack;
+
import net.sourceforge.phpdt.core.IJavaModelMarker;
import net.sourceforge.phpdt.core.compiler.IProblem;
import net.sourceforge.phpdt.internal.compiler.CompilationResult;
// A P I
public void parse(MethodDeclaration md, CompilationUnitDeclaration unit) {
- //only parse the method body of md
- //fill out method statements
-
- //convert bugs into parse error
-
- if (md.isAbstract())
- return;
- // if (md.isNative())
- // return;
- // if ((md.modifiers & AccSemicolonBody) != 0)
- // return;
-
- initialize(false);
- goForMethodBody();
- nestedMethod[nestedType]++;
-
- referenceContext = md;
- compilationUnit = unit;
-
- scanner.resetTo(md.sourceEnd + 1, md.declarationSourceEnd);
- // reset the scanner to parser from { down to }
- try {
- parse();
- } catch (AbortCompilation ex) {
- lastAct = ERROR_ACTION;
- } finally {
- nestedMethod[nestedType]--;
- }
-
- // if (lastAct == ERROR_ACTION) {
- // return;
- // }
- //
- // //refill statements
- // md.explicitDeclarations = realBlockStack[realBlockPtr--];
- // int length;
- // if ((length = astLengthStack[astLengthPtr--]) != 0)
- // System.arraycopy(
- // astStack,
- // (astPtr -= length) + 1,
- // md.statements = new Statement[length],
- // 0,
- // length);
+// TODO jsurfer - make the parse process work on methods ?
+ return;
+
+// //only parse the method body of md
+// //fill out method statements
+//
+// //convert bugs into parse error
+//
+// if (md.isAbstract())
+// return;
+// // if (md.isNative())
+// // return;
+// // if ((md.modifiers & AccSemicolonBody) != 0)
+// // return;
+//
+// initialize(false);
+// goForMethodBody();
+// nestedMethod[nestedType]++;
+//
+// referenceContext = md;
+// compilationUnit = unit;
+//
+// scanner.resetTo(md.sourceEnd + 1, md.declarationSourceEnd);
+//
+// // reset the scanner to parser from { down to }
+// try {
+// parse();
+// } catch (AbortCompilation ex) {
+// lastAct = ERROR_ACTION;
+// } finally {
+// nestedMethod[nestedType]--;
+// }
+//
+// // if (lastAct == ERROR_ACTION) {
+// // return;
+// // }
+// //
+// // //refill statements
+// // md.explicitDeclarations = realBlockStack[realBlockPtr--];
+// // int length;
+// // if ((length = astLengthStack[astLengthPtr--]) != 0)
+// // System.arraycopy(
+// // astStack,
+// // (astPtr -= length) + 1,
+// // md.statements = new Statement[length],
+// // 0,
+// // length);
}
// A P I