aboutsummaryrefslogtreecommitdiff
path: root/test-utils/src/main/kotlin/com
AgeCommit message (Collapse)Author
2023-01-19Support Definitely non null type language feature.Jiaxiang Chen
* Add api for definitely non null type element. * Implement definitely non null type element for FE1.0. fixes #1127 (cherry picked from commit c048c6b03374e86379fed40d47be6af5303cb668)
2023-01-12use correct overridee check for properties declared in constructors.Jiaxiang Chen
fixes #1182 (cherry picked from commit 609eef76563c1782fb3271ae40ead6e0a5090ab7)
2023-01-12fix psi look up for java type parameter descriptors.Jiaxiang Chen
fix type resolution for java type parameters. fixes #1250 (cherry picked from commit 402a62be709e445622a28670ee9852da0c5fea81)
2023-01-06Use correct psi implementation for finding type parameter declaration.Jiaxiang Chen
Fixes #1210.
2022-11-01AA: support multiple module test for AA.Jiaxiang Chen
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.
2022-11-01final Java fields should not be mutable.Jiaxiang Chen
* also includes a fix to Java psi modifier for AA.
2022-10-04Implements referenceElement.Jiaxiang Chen
* 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.
2022-09-23respect nullability annotations on Java type references.Jiaxiang Chen
* for referenced java types, compiler already handles nullability annotations. * fixes #167
2022-09-23Use abbreviated type for creating reference elements from inherited ↵Jiaxiang Chen
declarations. fixes #1011
2022-09-15Unmutes more single module tests for analysis API.Jiaxiang Chen
* fixed rendering logic for error types and flexible types. * fixed origin for kotlin synthetic property accessors. * unmuted implicitElements implicitPropertyAccessors javaTypes makeNullable parameterTypes tests.
2022-09-13retrieve annotations for KSType from KotlinType instead of KSTypeReferenceJiaxiang Chen
2022-09-13manually look up in scope when annotation argument type is nested annotation.Jiaxiang Chen
* fixes #989
2022-08-30AA: implement KtType rendering logic.Jiaxiang Chen
default toString() rendering differs from old implementation too far. reimplement with custom rendering logic to match behavior. unmutes typeComposure test.
2022-08-27AA: implement annotation argument value.Jiaxiang Chen
* 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.
2022-08-27fix test for hello.kt: sort test result.Jiaxiang Chen
unmutes this test for AA.
2022-07-16Fix assignable check for function types with deserialized descriptors.Fedor Ihnatkevich
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.
2022-06-28Recover `lateinit` modifier for descriptor-based implementations. (#1030)Fedor Ihnatkevich
* Recover `lateinit` modifier for descriptor-based implementations.
2022-05-26fix annotation value resolution for annotations declared in Java source.Jiaxiang Chen
2022-05-17use correct type for vararg value parameter descriptor implementationJiaxiang Chen
2022-05-10try to get psi before creating sealed sub class declarationsJiaxiang Chen
2022-04-30UPDATE_KOTLIN_VERSION: 1.7.20-dev-474Jiaxiang Chen
2022-04-22Add support for getting annotation default values (#949)James Kleeh
2022-04-20Add support for knowing if an annotation value was declared or notjameskleeh
2022-04-04Fix subtype checking for Java types.Jiaxiang Chen
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.
2022-04-03use abbrevation for type arguments in KSTypeYigit Boyar
2022-04-03repro for #881Yigit Boyar
2022-03-30Align superTypes among implementationsTing-Yuan Huang
If there is no direct super type, use kotlin.Any.
2022-03-17Hoist test file parsing logicTing-Yuan Huang
2022-03-17Move test processors to test-utilsTing-Yuan Huang
so that they can be shared.
2022-03-17Introduce new test framework in test-utilsTing-Yuan Huang