Age | Commit message (Collapse) | Author |
|
(cherry picked from commit 8bd44ea0fd4d66cf6f1e6965fd428fb6b2773cd5)
|
|
(cherry picked from commit e3ce61c4a1de91026a1c5b94ae15ef5458148509)
|
|
* Add api for definitely non null type element.
* Implement definitely non null type element for FE1.0.
fixes #1127
(cherry picked from commit c048c6b03374e86379fed40d47be6af5303cb668)
|
|
fixes #1182
(cherry picked from commit 609eef76563c1782fb3271ae40ead6e0a5090ab7)
|
|
fix type resolution for java type parameters.
fixes #1250
(cherry picked from commit 402a62be709e445622a28670ee9852da0c5fea81)
|
|
Fixes #1210.
|
|
This special handling is needed when an annotation has implicit use site
target restriction declared at that annotations declaration site. This is
only happening for properties declared in constructor parameter because in
constructor parameter, the use site is value parameter which does not violate
annotation target contract, and annotations gets carried over to its actual
property, therefore need to read the annotation declaration and resolve for targets.
|
|
|
|
old test framework implementation has MockApplication created multiple times,
causing issues with AA stand alone mode initialization.
using a cli compiler from another class loader to avoid this issue.
|
|
* also includes a fix to Java psi modifier for AA.
|
|
* implemented referenceElements with KtType.
* added a lite value parameter implementation for value parameters in function type.
* included parent information for non KtSymbol based KSSymbols.
* added more type rendering logics.
* more handling of type alias in type comparision.
* unmutes typeAliasComparision test, temporary mutes nestedClassType.
|
|
* handles type alias for getting declarations for KSType.
* unmutes typeAlias test.
|
|
* for referenced java types, compiler already handles nullability annotations.
* fixes #167
|
|
declarations.
fixes #1011
|
|
* fixed rendering logic for error types and flexible types.
* fixed origin for kotlin synthetic property accessors.
* unmuted implicitElements implicitPropertyAccessors javaTypes makeNullable parameterTypes tests.
|
|
test-utils.
|
|
|
|
* fixes #989
|
|
default toString() rendering differs from old implementation too far.
reimplement with custom rendering logic to match behavior.
unmutes typeComposure test.
|
|
* 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.
|
|
|