Sam Garfinkel
06/12/2020, 3:03 PMTypes and Elements classes? There’s some reusable functionality that would be nice, such as an isSubtypeOf(t1: KmType, t2: KmType.Zac Sweers
06/12/2020, 3:47 PMSam Garfinkel
06/12/2020, 4:14 PMKmClass for the parameter type but the inspector is crashing when trying to resolve Kotlin primitives, such as kotlin.String, which makes sense because the Kotlin data types are mirrors of Java types.Sam Garfinkel
06/12/2020, 4:16 PMZac Sweers
06/12/2020, 7:57 PMExecutableElement in tags iircZac Sweers
06/12/2020, 7:59 PMZac Sweers
06/12/2020, 8:00 PMZac Sweers
06/12/2020, 8:01 PMMethodData, then add the element here: https://github.com/square/kotlinpoet/blob/master/kotlinpoet-classinspector-elements/src/main/kotlin/com/squareup/kotlinpoet/classinspector/elements/ElementsClassInspector.kt#L527Sam Garfinkel
06/12/2020, 8:49 PMWorst case though, you can look up the original element from its km signatureHow do I do this? Would I be manually inspecting each constructor, then checking if the parameters are the same?
Sam Garfinkel
06/12/2020, 8:51 PMkotlin.String .