FIR resolve: stop visiting receiver hierarchy during call completion

This commit is contained in:
Simon Ogorodnik
2019-06-20 15:10:45 +03:00
committed by Mikhail Glukhikh
parent 046c82ab60
commit bc7c822b74
@@ -65,7 +65,7 @@ class FirCallCompleterTransformer(
override fun transformFunctionCall(functionCall: FirFunctionCall, data: Nothing?): CompositeTransformResult<FirStatement> {
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 declaration = subCandidate.symbol.firUnsafe<FirCallableMemberDeclaration>()