Dmitriy Novozhilov
8cdddbfd9d
[FIR] Implement checkers for FIR parcelize plugin
...
There is one of checks left unimplemented (FirParcelizePropertyChecker.checkParcelableClassProperty)
because it requires huge commonization of detecting which type can be
serialized and which not, which is not prioritized job for now
2021-11-23 15:01:31 +03:00
Dmitriy Novozhilov
eac9a9fc79
[FIR] Implement FIR version of parcelize plugin
...
This commit includes only generation of declarations and
ir backend part, checkers are added in separate commit
2021-11-23 15:01:29 +03:00
Dmitriy Novozhilov
40d8451698
Add compiler diagnostic tests for parcelize checkers
2021-11-23 15:01:26 +03:00
Ilya Kirillov
d0318f1026
Analysis API: add test for file annotations
2021-11-22 22:47:00 +01:00
Ilya Kirillov
02adb1924b
Analysis API: add tests to check annotations on declarations
2021-11-22 22:46:58 +01:00
Ilya Kirillov
a084ad59de
Analysis API: add test for annotations on types
2021-11-22 22:46:56 +01:00
Tianyu Geng
d0d1c8c4b9
Analysis API: add test for getReturnExpressionTargetSymbol
...
Also fix FIR and FE1.0 implementations.
2021-11-19 23:29:17 +01:00
Jinseong Jeon
205866a516
FIR IDE: add API to get KtType from KtTypeParameter
2021-11-18 17:33:17 +01:00
Ilya Kirillov
7cb1f19a79
Analysis API: move component test classes to corresponding dirs
2021-11-17 20:55:10 +01:00
Ilya Kirillov
82db5fa443
Analysis API: refactor test generation dsl
2021-11-17 20:55:09 +01:00
Yan Zhulanow
21026cc704
[FIR IDE] Enable constant evaluation tests in AAPI/FE10
...
Implementation of constant evaluation was changed, so now it doesn't
swallow error values.
2021-11-12 20:09:54 +09:00
Yan Zhulanow
9106a4bbc5
[FIR IDE] Enable call resolution tests in AAPI/FE10
...
Fix numerous cases in Fe10KtCallResolver so the tests pass correctly.
2021-11-12 20:09:53 +09:00
Yan Zhulanow
07fb02c1f9
[FIR IDE] Enable symbol-by-psi tests for AAPI/FE10
2021-11-12 20:09:52 +09:00
Dmitriy Dolovov
e7caaa464e
[Test] Fix using classes as annotation parameters in generated classes
2021-11-11 12:32:53 +03:00
Ilya Kirillov
0c7728f64a
Analysis API: fix PsiType creation for type parameter type with flexible upper bound
2021-11-10 18:49:43 +01:00
Jinseong Jeon
6d150fb7a5
FIR IDE: add APIs about FunctionClassKind
2021-11-08 20:12:17 +01:00
Tianyu Geng
2c2851af6e
Analysis API: add test covering get missing when branches
...
Also fix FIR implementation to generate boolean branches in the same
order as FE1.0.
2021-11-04 23:04:35 +01:00
Tianyu Geng
197079c85c
FIR IDE: make smartcast API return unstable smartcasts
2021-11-04 16:00:37 +01:00
Jinseong Jeon
3f2c86afb8
FIR IDE/LC: introduce/use delegated member scope
2021-10-27 17:06:32 +02:00
Jinseong Jeon
700f8ac287
FIR IDE: relocate scope-related test data
2021-10-27 17:06:32 +02:00
Jinseong Jeon
4266ffa274
FIR IDE: fix typo in test directory (overridden)
2021-10-27 17:06:32 +02:00
Jinseong Jeon
9ed2c9d371
FIR LC: add tests about type approximation in PsiType provider
2021-10-25 20:24:48 +03:00
Yan Zhulanow
516dd825c2
[FIR IDE] Initial descriptor-based implementation of the Analysis API
2021-10-20 19:41:24 +03:00
Yan Zhulanow
e2c9be0932
[FIR IDE] Extract common components of the Analysis API to separate modules
2021-10-20 19:41:23 +03:00
Yan Zhulanow
20b73499f5
Pill: Add Analysis API test generator to the "Generate all tests" run configuration
2021-10-19 19:55:09 +03:00
Yan Zhulanow
1f2508c177
Pill: recognize 'protobufCompare' as a test module
2021-10-19 19:55:07 +03:00
Tianyu Geng
8b44a4685f
FIR IDE: add API to get super types of a KtType
2021-10-16 14:16:25 +02:00
Dmitriy Novozhilov
20e35167c8
[FIR] Add simple IR body generator to FIR plugin prototype
2021-10-12 17:26:39 +03:00
Dmitriy Novozhilov
e3579389ee
[FIR] Create IR text tests for declarations generators
2021-10-12 17:26:36 +03:00
Dmitriy Novozhilov
ea93d23dca
[FIR] Move fir plugin tests to diagnostics sub directory
2021-10-12 17:26:34 +03:00
Dmitriy Novozhilov
6d42914e56
[FIR] Migrate fir plugin prototype tests to new test infrastructure
2021-10-12 17:26:18 +03:00
Dmitriy Novozhilov
e56c87a17a
[Build] Move utils for generation JUnit 5 tests to :generators module
2021-10-12 17:26:18 +03:00
Dmitriy Novozhilov
df47bffabb
[Test] Migrate Parcelize tests to new test infrastructure
2021-10-07 13:08:45 +03:00
Dmitriy Novozhilov
bc7cc6b5a9
Move generated parcelize tests to tests-gen directory
2021-10-07 13:08:43 +03:00
Ilya Gorbunov
bd856ad726
Propagate option deprecation to options impl class
...
This is to avoid the new warning OVERRIDE_DEPRECATION that is reported
when a base method is deprecated and an overriding method is not.
2021-09-29 21:46:51 +03:00
Vyacheslav Gerasimov
ab146bd6d4
Build: Fix deprecated Gradle configurations usages
...
for migration to Gradle 7+ #KTI-559
2021-09-26 18:28:44 +03:00
Tianyu Geng
d77db2cda6
FIR checker: expose API to check if two types are compatible
...
This is useful for quickfixes offering casts. We don't want to offer
user to cast incompatible types.
Also, explicitly allow compare to `Nothing` and handle `Nothing` from intersection
2021-09-17 01:59:05 +03:00
Jinseong Jeon
068e81570d
FIR IDE: type-aware constant conversion
2021-09-15 22:32:12 +02:00
Ilya Kirillov
5b38bd2be2
FIR IDE: fix generators after changing analysis api packages
2021-09-15 11:32:47 +02:00
Ilya Kirillov
4d52b354af
FIR IDE: move analysis api fir generator to the analysis directory
2021-09-15 11:32:33 +02:00
Ilya Kirillov
b70f4f581e
FIR IDE: move low level api main sources to the analysis directory
2021-09-15 11:32:22 +02:00
Roman Golyshev
911bfcf150
[FIR IDE] Add basic compiler-side Import Optimizer tests
...
These tests are not complete, but it is intentional - it is just a basic
setup, so when the need arise, the tests can be added right away
2021-09-02 18:10:16 +00:00
Ilya Kirillov
abe2311372
FIR IDE: move declaration/package providers to separate module
2021-08-24 20:12:58 +03:00
Steven Schäfer
d08990ebb4
JVM: New single-pass implementation for jvm-abi-gen
2021-08-23 18:25:33 +02:00
Ivan Kylchik
b85a796492
Support interpretation for floorDiv and mod functions
2021-08-13 16:18:28 +03:00
Nikita Bobko
5455800de4
[imltogradle] Exclude 'kotlin.util.compiler-dependencies' module from generation
...
This module is used as helper module in JPS project module to make sure that IDEA will download
all required dependencies. There are some dependencies which IDEA cannot determine as used so
we force it to download them (kotlinc.kotlin-dist, kotlinc.kotlin-compiler-testdata)
We don't need this module in Gradle project model
This commit fixes:
```
Could not resolve project :prepare:ide-plugin-dependencies:kotlin-compiler-testdata-for-ide.
Required by:
project :kotlin-ide.kotlin.util.compiler-dependencies
```
2021-08-11 02:17:52 +02:00
Nikita Bobko
747cc7d55d
[imltogradle] Fix other kotlinc libraries which don't follow kotlinc.* naming
...
e.g. kotlin-reflect
2021-08-11 02:17:51 +02:00
Nikita Bobko
784273ac5b
[imltogradle] Add additional check for absence of snapshot version in JpsLikeJarDependency
2021-08-11 02:17:51 +02:00
Nikita Bobko
493fdbd418
Fix kotlin stdlib handling for 212 IDEA in ide-iml-to-gradle-generator
2021-08-11 02:17:51 +02:00
Alexander Udalov
0d1380c232
Fix warnings in generator modules
2021-08-10 17:57:50 +02:00