}
public CompilationUnit convert(org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration unit, char[] source) {
try {
if(unit.compilationResult.recoveryScannerData != null) {
RecoveryScanner recoveryScanner = new RecoveryScanner(this.scanner, unit.compilationResult.recoveryScannerData.removeUnused());
this.scanner = recoveryScanner;
this.docParser.scanner = this.scanner;
}
this.compilationUnitSource = source;
this.compilationUnitSourceLength = source.length;