public void inferTypes(CompilationUnitDeclaration parsedUnit, CompilerOptions compileOptions) {
	if (parsedUnit.typesHaveBeenInferred)
		return;
	if (compileOptions==null)
		compileOptions=this.options;
	
//	if (this.inferenceEngines==null)
//		initializeInferenceEngine(parsedUnit);
//	InferEngine inferEngine=compileOptions.inferOptions.createEngine();
//	for (int i=0;i<this.inferenceEngines.length;i++)
//	{
//		try {
//			IInferEngine engine=this.inferenceEngines[i];
//			engine.initialize();
//			engine.setCompilationUnit(parsedUnit);
//			engine.doInfer();
//		} catch (RuntimeException e) {
//			org.eclipse.wst.jsdt.internal.core.util.Util.log(e, "error during type inferencing");
//		}
//	}
	parsedUnit.typesHaveBeenInferred=true;
}