Does anyone know where I can find the source code or documentation about platform libraries, e.g. platform.Foundation.*?
I downloaded Kotlin toolchain on Mac, and it seems klib/platform/$target folder contains lots of platform libraries, however I only found
cstubs.bc
file insider, can not find any kotlin bindings, does anyone know how to get kotlin bindings for those platform libraries?
At the risk of going around in circles... Isn't it the bindings that you found in the target folder?
darkmoon_uk
08/11/2022, 11:50 AM
I wouldn't expect the bindings themselves to be explicitly documented. Take the Kotlin ObjC interop documentation in context with the original iOS API documentation.
l
Lei Lei
08/12/2022, 5:59 AM
I tried to run `cinterop`with Foundation.def, it only generates
cstubs.bc
file, same as the one in Kotlin toolchain.
I would like to add IDE support for platform libraries, e.g. code completion, syntax error detection, how can I do that without Kotlin bindings?