public CompilationUnit parse(ICompilationUnit unit, WorkingCopyOwner owner, boolean resolveBindings, IProgressMonitor pm) { fParser.setResolveBindings(resolveBindings); fParser.setSource(unit); if (owner != null) fParser.setWorkingCopyOwner(owner); fParser.setCompilerOptions(getCompilerOptions(unit)); CompilationUnit result= (CompilationUnit) fParser.createAST(pm); result.setProperty(SOURCE_PROPERTY, unit); return result;
public CompilationUnit parse(ICompilationUnit unit, boolean resolveBindings) { return parse(unit, resolveBindings, null);
	public CompilationUnit parse(ICompilationUnit unit, WorkingCopyOwner owner, boolean resolveBindings, IProgressMonitor pm) {		fParser.setResolveBindings(resolveBindings);		fParser.setSource(unit);		if (owner != null)			fParser.setWorkingCopyOwner(owner);		fParser.setCompilerOptions(getCompilerOptions(unit));		CompilationUnit result= (CompilationUnit) fParser.createAST(pm);		result.setProperty(SOURCE_PROPERTY, unit);		return result;	}