After updating to the latest version of UAST, it s...
# compiler
a
After updating to the latest version of UAST, it seems that it hides any functions that take/return
reified
types. For example:
Copy code
package test.pkg
inline fun <reified T> Context.systemService1() = getSystemService(T::class.java)
inline fun Context.systemService2() = getSystemService(String::class.java)
For this
PsiClassItem
call to
methods
only returns 1 method (the one without
reified
). Removing
reified
brings it back, going back to older version of UAST also brings it back. I was wondering if this sounds familiar to anyone?
If I go back, look at
KoltinUClass
in the
KoltinUFile
and call
asSourceString
I get
Copy code
public final class _java_Kt {
    public static final fun systemService2(@org.jetbrains.annotations.NotNull $this$systemService2: test.pkg.Context) : java.lang.String {
        return getSystemService(java.lang.String.java)
    }
}
which shows the other method as stripped 😕
similarly
KotlinUClass#asSourceString
Copy code
package test.pkg

public final class _java_Kt {
    public static final fun systemService2(@org.jetbrains.annotations.NotNull $this$systemService2: test.pkg.Context) : java.lang.String {
        return getSystemService(java.lang.String.java)
    }
}