FIR IDE: temporary do not fail on non-resolved reference while resolving calls
This commit is contained in:
+3
-2
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user