https://kotlinlang.org logo
#kontributors
Title
# kontributors
o

oleksiyp

03/17/2019, 9:45 AM
I am wondering why in Kotlin JS reflection qualifiedName is not available. It is easy to parse kjsm files and get whatever meta information is needed, but you are not able to match it to objects because only simpleName is available in KClass. I am trying to leverage meta information to make https://mockk.io work for JS platform. Are there any objections to add qualifiedName now? I will do PR
o

orangy

03/23/2019, 10:09 PM
@bashor
b

bashor

04/02/2019, 6:10 PM
The main objection is that it’s not required in most cases, but it will increase the size of the generated code.
It’s not quick but I think you can restore this information at runtime by walking objects tree from module root.
Maybe we can generate metadata more compact way and get a space for qualifier 🙂. @oleksiyp If you interesting in we can discuss details.
however, I don’t know a good way to make metadata more compact without breaking compatibility 😞.
o

oleksiyp

04/02/2019, 7:52 PM
Yes, I am interested. For me still this is major blocker. Besides discussion on how to make it compact, can you tell how to traverse module root. May be this one is enough
2 Views