public CompilationUnit decompileTypeToAst(final TypeDefinition type, final DecompilationOptions options) {
return buildAst(type, options).getCompilationUnit();
}
private AstBuilder buildAst(final TypeDefinition type, final DecompilationOptions options) {
final AstBuilder builder = createAstBuilder(options, type, false);
builder.addType(type);
runTransforms(builder, options, null);
return builder;
}