KT-15673 Couldn't use header function in 3rd module

This commit is contained in:
Sergey Mashkov
2017-01-12 13:35:59 +03:00
parent 39ad8fb22c
commit a3f5d8e68a
@@ -127,7 +127,7 @@ object KotlinJavascriptSerializationUtil {
val packageView = module.getPackage(fqName)
// TODO: ModuleDescriptor should be able to return the package only with the contents of that module, without dependencies
val skip: (DeclarationDescriptor) -> Boolean = { DescriptorUtils.getContainingModule(it) != module }
val skip: (DeclarationDescriptor) -> Boolean = { DescriptorUtils.getContainingModule(it) != module || (it is MemberDescriptor && it.isHeader) }
val fileRegistry = KotlinFileRegistry()
val serializerExtension = KotlinJavascriptSerializerExtension(fileRegistry)