Hi there!, I’m trying to get a hold of the descrip...
# compiler
r
Hi there!, I’m trying to get a hold of the descriptor or IR node for
kotlin.Int.plus
. I’m currently using with no luck the following code which returns other
plus
functions like the ones for collections, BigInteger and String but nothing for
Int
Copy code
builtIns.builtInPackagesImportedByDefault.flatMap {
    it.memberScope.getContributedDescriptors { true }
}
Any help on how to get a hold of those descriptors is appreciated. Thanks!
d
Here’s how the IR data class generator gets it
🙏 3
Does that give what you want?
r
It does!, thanks so much @Drew Hamilton!
👍 1
d
Nice!