KtFile: J2K and cleanup

This commit is contained in:
Dmitry Jemerov
2017-08-31 18:47:14 +02:00
parent ebef2dc0cf
commit 839f197a1e
12 changed files with 172 additions and 274 deletions
@@ -320,7 +320,7 @@ class MultifileClassCodegenImpl(
private fun writeKotlinMultifileFacadeAnnotationIfNeeded() {
if (!state.classBuilderMode.generateMetadata) return
if (files.any { it.isScript }) return
if (files.any { it.isScript() }) return
val extraFlags = if (shouldGeneratePartHierarchy) JvmAnnotationNames.METADATA_MULTIFILE_PARTS_INHERIT_FLAG else 0