FIR IDE: Set correct source for the function built in the air

- This enables the completion to work in the declaration itself, not
only in body
This commit is contained in:
Roman Golyshev
2020-08-31 17:00:05 +03:00
parent 90c89bddc5
commit 7649043479
@@ -77,6 +77,7 @@ object LowLevelFirApiFacade {
body = builtFunction.body
symbol = builtFunction.symbol as FirNamedFunctionSymbol
resolvePhase = minOf(originalFunction.resolvePhase, FirResolvePhase.DECLARATIONS)
source = builtFunction.source
this.session = state.firIdeSourcesSession
}