Change Signature: Support constructors of header/impl classes

This commit is contained in:
Alexey Sedunov
2017-08-10 21:22:44 +03:00
parent 7f9110b4e6
commit f5c7db8270
77 changed files with 1075 additions and 11 deletions
@@ -181,7 +181,10 @@ object HeaderImplDeclarationChecker : DeclarationChecker {
listOf(module.getPackage(containingDeclaration.fqName).memberScope)
}
is ClassDescriptor -> {
containingDeclaration.findClassifiersFromModule(module).mapNotNull { (it as? ClassDescriptor)?.unsubstitutedMemberScope }
val classes = containingDeclaration.findClassifiersFromModule(module).filterIsInstance<ClassDescriptor>()
if (this is ConstructorDescriptor) return classes.flatMap { it.constructors }
classes.map { it.unsubstitutedMemberScope }
}
else -> return emptyList()
}