FIR IDE: fix compilation

This commit is contained in:
Ilya Kirillov
2020-11-10 15:46:33 +03:00
parent 65b5e4b62b
commit 112f6771eb
@@ -138,7 +138,7 @@ internal class KtFirScopeProvider(
positionInFakeFile: KtElement
): LowLevelFirApiFacadeForCompletion.FirCompletionContext {
val firFile = LowLevelFirApiFacade.getFirFile(ktFile, firResolveState)
val declarationContext = EnclosingDeclarationContext.detect(positionInFakeFile)
val declarationContext = EnclosingDeclarationContext.detect(ktFile, positionInFakeFile)
return declarationContext.buildCompletionContext(firFile, firResolveState)
}