Manuel Wrage
02/20/2024, 7:42 PMFirFunctionSymbol
to IrFunctionSymbol
, FirClassSymbol
to IrClassSymbol
and so on?dmitriy.novozhilov
02/21/2024, 6:33 AMManuel Wrage
02/21/2024, 9:38 AMDescriptorBasedReferenceSymbolTableExtension
to convert the descriptor's I collected in frontend to their IR representations in the backend.dmitriy.novozhilov
02/21/2024, 9:44 AMFirDeclarationGenerationExtension
, you can use FirDeclarationOrigin.Plugin
and IrDeclarationOrigin.GeneratedByPlugin
(GeneratedDeclarationKey
passed to first transfers to the second)
For other declarations there is no simple solution
Classes can be mapped by classId
Other declarations should be mapped by signatures manuallyManuel Wrage
02/21/2024, 9:50 AMConeKotlinType
to IrType?
Manuel Wrage
02/21/2024, 9:55 AMIrElement
's by their IdSignature
via ReferenceSymbolTable
. Is there a way to get a IdSignature
from an FirElement
?dmitriy.novozhilov
02/21/2024, 10:32 AMFirBasedSignatureComposer
Manuel Wrage
02/21/2024, 10:48 AMManuel Wrage
02/21/2024, 10:49 AMConeKotlinType
to IrType
?dmitriy.novozhilov
02/21/2024, 10:57 AMBut this wouldn't work for local declarations right?Yes, it wouldn't
And what aboutThis conversion is also unavailable outside fir2irtoConeKotlinType
?IrType
Manuel Wrage
02/21/2024, 11:28 AM