FIR resolve: stop visiting receiver hierarchy during call completion
This commit is contained in:
committed by
Mikhail Glukhikh
parent
046c82ab60
commit
bc7c822b74
+1
-1
@@ -65,7 +65,7 @@ class FirCallCompleterTransformer(
|
|||||||
|
|
||||||
override fun transformFunctionCall(functionCall: FirFunctionCall, data: Nothing?): CompositeTransformResult<FirStatement> {
|
override fun transformFunctionCall(functionCall: FirFunctionCall, data: Nothing?): CompositeTransformResult<FirStatement> {
|
||||||
val calleeReference = functionCall.calleeReference as? FirNamedReferenceWithCandidate ?: return functionCall.compose()
|
val calleeReference = functionCall.calleeReference as? FirNamedReferenceWithCandidate ?: return functionCall.compose()
|
||||||
val functionCall = functionCall.transformChildren(this, data) as FirFunctionCall
|
val functionCall = functionCall.transformArguments(this, data) as FirFunctionCall
|
||||||
|
|
||||||
val subCandidate = calleeReference.candidate
|
val subCandidate = calleeReference.candidate
|
||||||
val declaration = subCandidate.symbol.firUnsafe<FirCallableMemberDeclaration>()
|
val declaration = subCandidate.symbol.firUnsafe<FirCallableMemberDeclaration>()
|
||||||
|
|||||||
Reference in New Issue
Block a user