merged with Andrey's changes
This commit is contained in:
@@ -165,14 +165,10 @@ public class KotlinCompiler {
|
||||
|
||||
environment.setStubs(arguments.stubs);
|
||||
|
||||
if (arguments.docOutputDir != null) {
|
||||
KDocLoader.install(arguments.docOutputDir, environment.getMyEnvironment());
|
||||
}
|
||||
|
||||
// install any compiler plugins
|
||||
List<CompilerPlugin> plugins = arguments.getCompilerPlugins();
|
||||
if (plugins != null) {
|
||||
environment.getMyEnvironment().getCompilerPlugins().addAll(plugins);
|
||||
environment.getEnvironment().getCompilerPlugins().addAll(plugins);
|
||||
}
|
||||
|
||||
if (arguments.stdlib != null) {
|
||||
|
||||
@@ -221,8 +221,9 @@ public class CompileSession {
|
||||
List<CompilerPlugin> plugins = environment.getCompilerPlugins();
|
||||
if (!module) {
|
||||
if (plugins != null) {
|
||||
CompilerPluginContext context = new CompilerPluginContext(project, bindingContext.getBindingContext(), getSourceFileNamespaces());
|
||||
for (CompilerPlugin plugin : plugins) {
|
||||
plugin.processFiles(bindingContext.getBindingContext(), getSourceFileNamespaces());
|
||||
plugin.processFiles(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user