Properly process the absence of protobuf field.
This commit is contained in:
committed by
alexander-gorshenev
parent
67867dd6fb
commit
cbce4cf994
+5
-4
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user