[Analysis API FIR] fix containing declaration for value parameter

now it should also work for non-source declarations
This commit is contained in:
Ilya Kirillov
2022-11-18 18:04:33 +01:00
parent 7781ad67d4
commit f775778efa
6 changed files with 21 additions and 4 deletions
@@ -54,8 +54,7 @@ internal class KtFirSymbolContainingDeclarationProvider(
}
is KtValueParameterSymbol -> {
// todo that does not work for parameters not from source, corresponding info should be added to the fir tree
getParentSymbolByPsi()
firSymbolBuilder.callableBuilder.buildCallableSymbol(symbol.firSymbol.fir.containingFunctionSymbol)
}
is KtCallableSymbol -> {