get code for the compilation unit to create from CompilationUnit (closes #3 again)