Dropping package facades:

- use KotlinCodegenFacade to build light classes
(PackageCodegen is not enough to obtain proper diagnostics)
This commit is contained in:
Dmitry Petrov
2015-10-16 18:02:59 +03:00
parent 9de45f4c56
commit 31a85132c6
2 changed files with 19 additions and 8 deletions
@@ -141,9 +141,7 @@ public class KotlinJavaFileStubProvider<T extends WithFileStubAndExtraDiagnostic
@Override
public void generate(@NotNull GenerationState state, @NotNull Collection<JetFile> files) {
PackageCodegen codegen = state.getFactory().forPackage(packageFqName, files);
codegen.generate(CompilationErrorHandler.THROW_EXCEPTION);
state.getFactory().asList();
KotlinCodegenFacade.doGenerateFiles(files, state, CompilationErrorHandler.THROW_EXCEPTION);
}
@Override