colored "operators and brackets"
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / internal / compiler / ast / CompilationUnitDeclaration.java
index a3aeef4..dc49be5 100644 (file)
@@ -32,6 +32,7 @@ public class CompilationUnitDeclaration extends AstNode implements ProblemSeveri
   //  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;
@@ -130,18 +131,18 @@ public class CompilationUnitDeclaration extends AstNode implements ProblemSeveri
     }
   }
 
-  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;
@@ -288,7 +289,7 @@ public class CompilationUnitDeclaration extends AstNode implements ProblemSeveri
 
     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)