Removed some leftovers.
This commit is contained in:
committed by
alexander-gorshenev
parent
53d01129ce
commit
67867dd6fb
-5
@@ -84,7 +84,6 @@ internal class IrDescriptorDeserializer(val context: Context,
|
|||||||
val localDeclarationProto = irProto.irLocalDeclaration.descriptor
|
val localDeclarationProto = irProto.irLocalDeclaration.descriptor
|
||||||
when {
|
when {
|
||||||
localDeclarationProto.hasFunction() -> {
|
localDeclarationProto.hasFunction() -> {
|
||||||
val functionProto = localDeclarationProto.function
|
|
||||||
val index = irProto.index
|
val index = irProto.index
|
||||||
val descriptor = localDeserializer.deserializeFunction(irProto)
|
val descriptor = localDeserializer.deserializeFunction(irProto)
|
||||||
descriptorIndex.put(index, descriptor)
|
descriptorIndex.put(index, descriptor)
|
||||||
@@ -92,7 +91,6 @@ internal class IrDescriptorDeserializer(val context: Context,
|
|||||||
}
|
}
|
||||||
|
|
||||||
localDeclarationProto.hasProperty() -> {
|
localDeclarationProto.hasProperty() -> {
|
||||||
val propertyProto = localDeclarationProto.property
|
|
||||||
val index = irProto.index
|
val index = irProto.index
|
||||||
val descriptor = localDeserializer.deserializeProperty(irProto)
|
val descriptor = localDeserializer.deserializeProperty(irProto)
|
||||||
descriptorIndex.put(index, descriptor)
|
descriptorIndex.put(index, descriptor)
|
||||||
@@ -174,16 +172,13 @@ internal class IrDescriptorDeserializer(val context: Context,
|
|||||||
proto: KonanIr.KotlinDescriptor,
|
proto: KonanIr.KotlinDescriptor,
|
||||||
functionDescriptor: FunctionDescriptor) {
|
functionDescriptor: FunctionDescriptor) {
|
||||||
|
|
||||||
//val functionProto = functionDescriptor.proto
|
|
||||||
functionDescriptor.valueParameters.forEachIndexed { i, parameter ->
|
functionDescriptor.valueParameters.forEachIndexed { i, parameter ->
|
||||||
//val parameterProto = functionProto.getValueParameter(i)
|
|
||||||
// Assume they are in the same order.
|
// Assume they are in the same order.
|
||||||
val index = proto.getValueParameter(i).index
|
val index = proto.getValueParameter(i).index
|
||||||
descriptorIndex.put(index, parameter)
|
descriptorIndex.put(index, parameter)
|
||||||
}
|
}
|
||||||
|
|
||||||
functionDescriptor.typeParameters.forEachIndexed {i, parameter ->
|
functionDescriptor.typeParameters.forEachIndexed {i, parameter ->
|
||||||
//val parameterProto = functionProto.getTypeParameter(i)
|
|
||||||
// Assume they are in the same order too.
|
// Assume they are in the same order too.
|
||||||
val index = proto.getTypeParameter(i).index
|
val index = proto.getTypeParameter(i).index
|
||||||
descriptorIndex.put(index, parameter)
|
descriptorIndex.put(index, parameter)
|
||||||
|
|||||||
Reference in New Issue
Block a user