FIR IDE: fix compilation
This commit is contained in:
+1
-1
@@ -138,7 +138,7 @@ internal class KtFirScopeProvider(
|
|||||||
positionInFakeFile: KtElement
|
positionInFakeFile: KtElement
|
||||||
): LowLevelFirApiFacadeForCompletion.FirCompletionContext {
|
): LowLevelFirApiFacadeForCompletion.FirCompletionContext {
|
||||||
val firFile = LowLevelFirApiFacade.getFirFile(ktFile, firResolveState)
|
val firFile = LowLevelFirApiFacade.getFirFile(ktFile, firResolveState)
|
||||||
val declarationContext = EnclosingDeclarationContext.detect(positionInFakeFile)
|
val declarationContext = EnclosingDeclarationContext.detect(ktFile, positionInFakeFile)
|
||||||
|
|
||||||
return declarationContext.buildCompletionContext(firFile, firResolveState)
|
return declarationContext.buildCompletionContext(firFile, firResolveState)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user