[FIR] FirReceiverParameter: rename type to typeRef
^KT-54417
This commit is contained in:
committed by
Space Team
parent
40c64c672d
commit
86422d0944
+1
-1
@@ -129,7 +129,7 @@ class FirContractDeserializer(private val c: FirDeserializationContext) {
|
||||
val name: String
|
||||
val typeRef = if (valueParameterIndex < 0) {
|
||||
name = "this"
|
||||
ownerFunction.receiverParameter?.type
|
||||
ownerFunction.receiverParameter?.typeRef
|
||||
} else {
|
||||
val parameter = ownerFunction.valueParameters.getOrNull(valueParameterIndex) ?: return null
|
||||
name = parameter.name.asString()
|
||||
|
||||
+2
-2
@@ -371,7 +371,7 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
|
||||
this.returnTypeRef = returnTypeRef
|
||||
receiverParameter = proto.receiverType(c.typeTable)?.toTypeRef(local)?.let { receiverType ->
|
||||
buildReceiverParameter {
|
||||
type = receiverType
|
||||
typeRef = receiverType
|
||||
annotations += receiverAnnotations
|
||||
}
|
||||
}
|
||||
@@ -476,7 +476,7 @@ class FirMemberDeserializer(private val c: FirDeserializationContext) {
|
||||
returnTypeRef = proto.returnType(local.typeTable).toTypeRef(local)
|
||||
receiverParameter = proto.receiverType(local.typeTable)?.toTypeRef(local)?.let { receiverType ->
|
||||
buildReceiverParameter {
|
||||
type = receiverType
|
||||
typeRef = receiverType
|
||||
annotations += receiverAnnotations
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user