[IrSerializer] Preparations for functional interfaces handling

This commit is contained in:
Igor Chevdar
2019-08-02 14:08:38 +03:00
parent c007f3efb3
commit 00dc335559
17 changed files with 145 additions and 91 deletions
@@ -50,9 +50,13 @@ class FunctionInterfaceMemberScope(
TODO()
}
private val classifiers = mutableMapOf<Name, ClassifierDescriptor>()
override fun getContributedClassifier(name: Name, location: LookupLocation): ClassifierDescriptor? = when {
classDescriptorFactory.shouldCreateClass(packageName, name) ->
classDescriptorFactory.createClass(ClassId.topLevel(packageName.child(name)))
classifiers.getOrPut(name) {
classDescriptorFactory.createClass(ClassId.topLevel(packageName.child(name)))!!
}
else -> null
}
}