You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, KSP2 chose to hide KaFirSymbol as internal so I cannot access these APIs. Nor did KSP2 provided any API for source element...
We would pretty much have to do reflection if wanna retrieve source elemnt, or know which jar&class an ksnode came from...
Wish list
Is it possible to make KaFirSymbol public to expose the API? Or provide a way to access the FirSymbol? Or provide an public property/function that direct to FirClassLikeSymbol<*>.sourceElement and FirCallableSymbol<*>.containerSource?
Otherwise, is there any other way to tell which jar and class is an ksNode from?
Thanks!
The text was updated successfully, but these errors were encountered:
In KSP1 i used to use source element to interpret which jar and class a ksNode came from (help us tell which jar and class is used, etc.)
In kotlin analysis,
FirSymbol
also provided ways likeFirClassLikeSymbol<*>.sourceElement
andFirCallableSymbol<*>.containerSource
to retrieve source element of a symbol, which can tell us which jar and class (from classpath) an symbol came fromHowever, KSP2 chose to hide
KaFirSymbol
as internal so I cannot access these APIs. Nor did KSP2 provided any API for source element...We would pretty much have to do reflection if wanna retrieve source elemnt, or know which jar&class an ksnode came from...
Wish list
Is it possible to make KaFirSymbol public to expose the API? Or provide a way to access the FirSymbol? Or provide an public property/function that direct to
FirClassLikeSymbol<*>.sourceElement
andFirCallableSymbol<*>.containerSource
?Otherwise, is there any other way to tell which jar and class is an ksNode from?
Thanks!
The text was updated successfully, but these errors were encountered: