Skip to content

Commit

Permalink
FIR IDE: fix compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
darthorimar committed Nov 23, 2020
1 parent 65b5e4b commit 112f677
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 112f677

Please sign in to comment.