use of com.google.devtools.j2objc.gen.GenerationUnit in project j2objc by google.
the class GenerationTest method generateFromUnit.
protected String generateFromUnit(CompilationUnit unit, String filename) throws IOException {
GenerationUnit genUnit = new GenerationUnit(unit.getSourceFilePath(), options);
genUnit.incrementInputs();
genUnit.addCompilationUnit(unit);
TranslationProcessor.generateObjectiveCSource(genUnit);
return getTranslatedFile(filename);
}
Aggregations