[AA] KtCallableSymbol: rename receiver to receiverParameter
^KT-54417
This commit is contained in:
committed by
Space Team
parent
6b41d8c1e4
commit
1ebfbc0ee9
+4
-4
@@ -47,7 +47,7 @@ abstract class AbstractKtSignatureSubstitutorImpl : KtSignatureSubstitutor() {
|
||||
return KtFunctionLikeSignature(
|
||||
symbol,
|
||||
substitutor.substitute(symbol.returnType),
|
||||
symbol.receiver?.type?.let { substitutor.substitute(it) },
|
||||
symbol.receiverParameter?.type?.let { substitutor.substitute(it) },
|
||||
symbol.valueParameters.map { substitute(it, substitutor) }
|
||||
)
|
||||
}
|
||||
@@ -57,7 +57,7 @@ abstract class AbstractKtSignatureSubstitutorImpl : KtSignatureSubstitutor() {
|
||||
return KtVariableLikeSignature(
|
||||
symbol,
|
||||
substitutor.substitute(symbol.returnType),
|
||||
symbol.receiver?.type?.let { substitutor.substitute(it) },
|
||||
symbol.receiverParameter?.type?.let { substitutor.substitute(it) },
|
||||
)
|
||||
}
|
||||
|
||||
@@ -70,10 +70,10 @@ abstract class AbstractKtSignatureSubstitutorImpl : KtSignatureSubstitutor() {
|
||||
}
|
||||
|
||||
override fun <S : KtFunctionLikeSymbol> asSignature(symbol: S): KtFunctionLikeSignature<S> {
|
||||
return KtFunctionLikeSignature(symbol, symbol.returnType, symbol.receiver?.type, symbol.valueParameters.map { asSignature(it) })
|
||||
return KtFunctionLikeSignature(symbol, symbol.returnType, symbol.receiverParameter?.type, symbol.valueParameters.map { asSignature(it) })
|
||||
}
|
||||
|
||||
override fun <S : KtVariableLikeSymbol> asSignature(symbol: S): KtVariableLikeSignature<S> {
|
||||
return KtVariableLikeSignature(symbol, symbol.returnType, symbol.receiver?.type)
|
||||
return KtVariableLikeSignature(symbol, symbol.returnType, symbol.receiverParameter?.type)
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -102,7 +102,7 @@ abstract class AbstractAnalysisApiSignatureContractsTest : AbstractAnalysisApiSi
|
||||
substitutor: KtSubstitutor,
|
||||
testServices: TestServices
|
||||
) {
|
||||
testServices.assertions.assertEquals(symbol.receiver?.type?.let(substitutor::substitute), signature.receiverType)
|
||||
testServices.assertions.assertEquals(symbol.receiverParameter?.type?.let(substitutor::substitute), signature.receiverType)
|
||||
testServices.assertions.assertEquals(symbol.returnType.let(substitutor::substitute), signature.returnType)
|
||||
|
||||
testServices.assertions.assertEquals(symbol.valueParameters.size, signature.valueParameters.size)
|
||||
@@ -118,7 +118,7 @@ abstract class AbstractAnalysisApiSignatureContractsTest : AbstractAnalysisApiSi
|
||||
substitutor: KtSubstitutor,
|
||||
testServices: TestServices
|
||||
) {
|
||||
testServices.assertions.assertEquals(symbol.receiver?.type?.let(substitutor::substitute), signature.receiverType)
|
||||
testServices.assertions.assertEquals(symbol.receiverParameter?.type?.let(substitutor::substitute), signature.receiverType)
|
||||
testServices.assertions.assertEquals(symbol.returnType.let(substitutor::substitute), signature.returnType)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ internal fun KtAnalysisSession.stringRepresentation(any: Any): String = with(any
|
||||
}
|
||||
)
|
||||
append("(")
|
||||
(this@with as? KtFunctionSymbol)?.receiver?.let { receiver ->
|
||||
(this@with as? KtFunctionSymbol)?.receiverParameter?.let { receiver ->
|
||||
append("<extension receiver>: ${receiver.type.render()}")
|
||||
if (valueParameters.isNotEmpty()) append(", ")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user