Properly process the absence of protobuf field.

This commit is contained in:
Alexander Gorshenev
2017-04-27 17:32:17 +03:00
committed by alexander-gorshenev
parent 67867dd6fb
commit cbce4cf994
@@ -98,11 +98,12 @@ class LocalDeclarationDeserializer(val rootDescriptor: DeserializedCallableMembe
}
private fun memberDeserializer(irProto: KonanIr.KotlinDescriptor): MemberDeserializer {
val containingFqName = irProto.classOrPackage
return if (containingFqName != null) {
memberDeserializerByParentFqNameIndex(containingFqName)
return if (irProto.hasClassOrPackage()) {
memberDeserializerByParentFqNameIndex(irProto.classOrPackage)
} else {
// TODO: learn to take the containing IR declaration
} else this.memberDeserializer
this.memberDeserializer
}
}
fun deserializeFunction(irProto: KonanIr.KotlinDescriptor): FunctionDescriptor =