import net.sourceforge.phpdt.internal.compiler.problem.ProblemReporter;
import net.sourceforge.phpdt.internal.compiler.problem.ProblemSeverities;
-public class CompilationUnitDeclaration extends AstNode implements ProblemSeverities, ReferenceContext {
+public class CompilationUnitDeclaration extends ASTNode implements ProblemSeverities, ReferenceContext {
public ImportReference currentPackage;
public ImportReference[] imports;
// public TypeDeclaration[] types;
public ArrayList types;
//public char[][] name;
+ public int[][] comments;
public boolean ignoreFurtherInvestigation = false; // once pointless to investigate due to errors
public boolean ignoreMethodBodies = false;
}
}
- public void checkUnusedImports() {
-
- if (this.scope.imports != null) {
- for (int i = 0, max = this.scope.imports.length; i < max; i++) {
- ImportBinding importBinding = this.scope.imports[i];
- ImportReference importReference = importBinding.reference;
- if (importReference != null && !importReference.used) {
- scope.problemReporter().unusedImport(importReference);
- }
- }
- }
- }
+// public void checkUnusedImports() {
+//
+// if (this.scope.imports != null) {
+// for (int i = 0, max = this.scope.imports.length; i < max; i++) {
+// ImportBinding importBinding = this.scope.imports[i];
+// ImportReference importReference = importBinding.reference;
+// if (importReference != null && !importReference.used) {
+// scope.problemReporter().unusedImport(importReference);
+// }
+// }
+// }
+// }
public CompilationResult compilationResult() {
return compilationResult;
if (imports != null)
for (int i = 0; i < imports.length; i++) {
- s += tabString(tab) + "import " + imports[i].toString() + ";\n"; //$NON-NLS-1$ //$NON-NLS-2$
+ s += tabString(tab) + "include " + imports[i].toString() + ";\n"; //$NON-NLS-1$ //$NON-NLS-2$
};
if (types != null)
for (int i = 0; i < types.size(); i++) {
- s += ((AstNode) types.get(i)).toString(tab) + "\n"; //$NON-NLS-1$
+ s += ((ASTNode) types.get(i)).toString(tab) + "\n"; //$NON-NLS-1$
}
return s;
}