import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Map;
+
import net.sourceforge.phpdt.core.compiler.IProblem;
import net.sourceforge.phpdt.internal.compiler.env.IBinaryType;
import net.sourceforge.phpdt.internal.compiler.env.ICompilationUnit;
import net.sourceforge.phpdt.internal.compiler.util.Util;
import net.sourceforge.phpeclipse.internal.compiler.ast.CompilationUnitDeclaration;
import net.sourceforge.phpeclipse.internal.compiler.ast.TypeDeclaration;
+
public class Compiler implements ITypeRequestor, ProblemSeverities {
public UnitParser parser;
public ICompilerRequestor requestor;
// name lookup
public LookupEnvironment lookupEnvironment;
// ONCE STABILIZED, THESE SHOULD RETURN TO A FINAL FIELD
- public static boolean DEBUG = true;
+ public static boolean DEBUG = false;
public int parseThreshold = -1;
// number of initial units parsed at once (-1: none)
/*
* @param parseLiteralExpressionsAsConstants
* <code>boolean</code> This parameter is used to optimize the
* literals or leave them as they are in the source. If you put
- * true, "Hello" + " world" will be converted to "Hello world".
+ * true, "Hello" . " world" will be converted to "Hello world".
*/
public Compiler(INameEnvironment environment, IErrorHandlingPolicy policy,
Map settings, final ICompilerRequestor requestor,
// if (options.verbose) {
// if (totalUnits > 1) {
// System.out.println(
- // Util.bind("compilation.units" , String.valueOf(totalUnits)));
+ // ProjectPrefUtil.bind("compilation.units" , String.valueOf(totalUnits)));
// //$NON-NLS-1$
// } else {
// System.out.println(
- // Util.bind("compilation.unit" , String.valueOf(totalUnits)));
+ // ProjectPrefUtil.bind("compilation.unit" , String.valueOf(totalUnits)));
// //$NON-NLS-1$
// }
// }
unit.resolve();
// flow analysis
- if (analyzeCode) unit.analyseCode();
+// if (analyzeCode) unit.analyseCode();
// code generation
// if (generateCode) unit.generateCode();
}
}
-}
+}
\ No newline at end of file