FIR IDE: temporary do not fail on non-resolved reference while resolving calls

This commit is contained in:
Ilya Kirillov
2021-03-22 15:15:39 +01:00
parent ce0c0ad2e3
commit 5f4b42a309
@@ -98,14 +98,15 @@ internal class KtFirCallResolver(
is FirErrorNamedReference -> calleeReference.createErrorCallTarget(source) is FirErrorNamedReference -> calleeReference.createErrorCallTarget(source)
is FirErrorReferenceWithCandidate -> calleeReference.createErrorCallTarget(source) is FirErrorReferenceWithCandidate -> calleeReference.createErrorCallTarget(source)
is FirSimpleNamedReference -> is FirSimpleNamedReference ->
error( null
/* error(
""" """
Looks like ${this::class.simpleName} && it calle reference ${calleeReference::class.simpleName} were not resolved to BODY_RESOLVE phase, Looks like ${this::class.simpleName} && it calle reference ${calleeReference::class.simpleName} were not resolved to BODY_RESOLVE phase,
consider resolving it containing declaration before starting resolve calls consider resolving it containing declaration before starting resolve calls
${this.render()} ${this.render()}
${(this.psi as? KtElement)?.getElementTextInContext()} ${(this.psi as? KtElement)?.getElementTextInContext()}
""".trimIndent() """.trimIndent()
) )*/
else -> error("Unexpected call reference ${calleeReference::class.simpleName}") else -> error("Unexpected call reference ${calleeReference::class.simpleName}")
} ?: return null } ?: return null
return KtFunctionCall(target) return KtFunctionCall(target)