Age | Commit message (Collapse) | Author |
|
* implemented reading annotation arguments declared in Kt source.
* implemented annotation default value reading for Kt sources.
* implemented function local declarations.
* refactored `KSType.declaration` for better handling local classes.
* refactored `KSClassDeclaration` implementation to use more abstract KtSymbol.
* split annotationValue tests into kotlin and java.
* unmutes annotationValue_kt test.
|
|
unmutes this test for AA.
|
|
E.g. a `kotlin.Function0` type is a Kotlin "fictional" type;
the real JVM type it is backed by for JVM is `kotlin.jvm.functions.Function0`.
Inside the compiler the backing type is always converted into Kotlin's one.
Yet for KSP the `kotlin.jvm.functions.Function0` with its deserialized descriptor
can be obtained directly (e.g. via `getJavaClassByName`) and used along with
the `kotlin.Function0` type.
This CL fixes the assignability check between such types.
|
|
* Recover `lateinit` modifier for descriptor-based implementations.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compiler subtype checking does not convert Java types to Kotlin types, while getting super types from a java type does the conversion, therefore resulting in subtype checking for Java types to fail.
Check if candidate super type is a Java type, convert to Kotlin type for subtype checking.
Potentially needs an ultimate fix in compiler for subtype checking.
|
|
|
|
|
|
If there is no direct super type, use kotlin.Any.
|
|
|
|
so that they can be shared.
|
|
|