FIR IDE: Move KtDeclarationAndFirDeclarationEqualityChecker to idea-fir-low-level-api module
It will be required to compare PSI and FIR declarations for compiled PSI elements
This commit is contained in:
+2
-2
@@ -167,7 +167,7 @@ object KtDeclarationAndFirDeclarationEqualityChecker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@TestOnly
|
@TestOnly
|
||||||
internal fun renderPsi(ktFunction: KtFunction): String = buildString {
|
fun renderPsi(ktFunction: KtFunction): String = buildString {
|
||||||
appendLine("receiver: ${ktFunction.receiverTypeReference?.toKotlinTypReference()?.renderTypeAsKotlinType()}")
|
appendLine("receiver: ${ktFunction.receiverTypeReference?.toKotlinTypReference()?.renderTypeAsKotlinType()}")
|
||||||
ktFunction.valueParameters.forEach { parameter ->
|
ktFunction.valueParameters.forEach { parameter ->
|
||||||
appendLine("${parameter.name}: ${parameter.typeReference?.toKotlinTypReference()?.renderTypeAsKotlinType()}")
|
appendLine("${parameter.name}: ${parameter.typeReference?.toKotlinTypReference()?.renderTypeAsKotlinType()}")
|
||||||
@@ -176,7 +176,7 @@ object KtDeclarationAndFirDeclarationEqualityChecker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@TestOnly
|
@TestOnly
|
||||||
internal fun renderFir(firFunction: FirFunction<*>): String = buildString {
|
fun renderFir(firFunction: FirFunction<*>): String = buildString {
|
||||||
appendLine("receiver: ${firFunction.receiverTypeRef?.renderTypeAsKotlinType()}")
|
appendLine("receiver: ${firFunction.receiverTypeRef?.renderTypeAsKotlinType()}")
|
||||||
firFunction.valueParameters.forEach { parameter ->
|
firFunction.valueParameters.forEach { parameter ->
|
||||||
appendLine("${parameter.name}: ${parameter.returnTypeRef.renderTypeAsKotlinType()}")
|
appendLine("${parameter.name}: ${parameter.returnTypeRef.renderTypeAsKotlinType()}")
|
||||||
Reference in New Issue
Block a user