added perspective shortcuts for debug and resource to php perspective
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / compiler / DocumentElementParser.java
index b2f8ef1..80da79e 100644 (file)
@@ -8,14 +8,12 @@
 package net.sourceforge.phpdt.internal.compiler;
 
 import net.sourceforge.phpdt.core.compiler.IProblem;
+import net.sourceforge.phpdt.internal.compiler.ast.CompilationUnitDeclaration;
 import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
 import net.sourceforge.phpdt.internal.compiler.impl.CompilerOptions;
 import net.sourceforge.phpdt.internal.compiler.parser.UnitParser;
 import net.sourceforge.phpdt.internal.compiler.problem.AbortCompilation;
 import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
-import net.sourceforge.phpeclipse.internal.compiler.ast.CompilationUnitDeclaration;
-
-import org.eclipse.core.resources.IResource;
 
 /*
  * A document element parser extracts structural information from a piece of source, providing detailed source positions info.
@@ -1027,7 +1025,7 @@ public class DocumentElementParser extends UnitParser {
     try {
       initialize();
       goForCompilationUnit();
-      referenceContext = compilationUnit = compilationUnit = new CompilationUnitDeclaration(problemReporter(),
+      referenceContext = compilationUnit = new CompilationUnitDeclaration(problemReporter(),
           new CompilationResult(unit, 0, 0, 10), //this.options.maxProblemsPerUnit),
           regionSource.length);
       scanner.resetTo(0, regionSource.length);