Fix kotlin-maven-plugin compilation

This commit is contained in:
Alexander Udalov
2018-08-10 18:34:40 +02:00
parent 76214930da
commit f663b8f554
2 changed files with 5 additions and 6 deletions
@@ -346,7 +346,8 @@ object KotlinToJVMBytecodeCompiler {
}
}
private fun analyzeAndGenerate(environment: KotlinCoreEnvironment): GenerationState? {
@Suppress("MemberVisibilityCanBePrivate") // Used in ExecuteKotlinScriptMojo
fun analyzeAndGenerate(environment: KotlinCoreEnvironment): GenerationState? {
val result = repeatAnalysisIfNeeded(analyze(environment, null), environment, null) ?: return null
if (!result.shouldGenerateCode) return null