From 72e26771d852c98e1e722648c868a0d474eb0d96 Mon Sep 17 00:00:00 2001 From: Ilya Kirillov Date: Tue, 8 Jun 2021 13:18:37 +0200 Subject: [PATCH] FIR IDE: do not require resolve bodies toc check candidates for completion --- .../api/fir/components/KtFirCompletionCandidateChecker.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt index 1ffaeab7a6e..cddb89c931c 100644 --- a/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt +++ b/idea/idea-frontend-fir/src/org/jetbrains/kotlin/idea/frontend/api/fir/components/KtFirCompletionCandidateChecker.kt @@ -44,7 +44,7 @@ internal class KtFirCompletionCandidateChecker( possibleExplicitReceiver: KtExpression?, ): Boolean = withValidityAssertion { require(firSymbolForCandidate is KtFirSymbol<*>) - return firSymbolForCandidate.firRef.withFir(phase = FirResolvePhase.BODY_RESOLVE) { declaration -> + return firSymbolForCandidate.firRef.withFir(phase = FirResolvePhase.IMPLICIT_TYPES_BODY_RESOLVE) { declaration -> check(declaration is FirCallableDeclaration<*>) checkExtension(declaration, originalFile, nameExpression, possibleExplicitReceiver) }