Hello! I’m not sure where to go with this question...
# compiler
i
Hello! I’m not sure where to go with this question, so please let me know if there’s some kind of documentation or example which I can take a look at. I’m currently trying to add support for
kotlinx.collections.immutable
to
kotlin-parcelize
plugin. At the moment I’m trying to figure out how can I correctly build symbol for the
kotlinx.collections.immutable.toPersistentList
extension function and call it on
IrVariable
as a receiver. Originally ``kotlinx.collections.immutable.toPersistentList`` is defined in
extensions.kt
file. So, I assume that I need to build symbol for the
ExtensionsKt.toPersistentList(iterable: Iterable<T>)
static function? Is it correct or I should go in another direction?
d
If you are working at IR level in plugin, you should think about declarations from kotlin point of view, not from any platform So you need to look up for functions with CallableId
package = kotlinx.collections.immutable, name = toPersistentList
and then choose one which suites you by types of parameters/receiver/return type
🙏 1