Andrey Zinovyev
94da1e37aa
[FIR] Implement RETURN_TYPE_MISMATCH_ON_INHERITANCE diagnostic
2021-07-08 18:13:38 +03:00
Dmitriy Novozhilov
30578cfb95
Delete DynamicBundle copy
...
We can safely use it from IDEA after IDEA-248785 was fixed
2021-07-08 13:29:21 +03:00
Dmitriy Novozhilov
d473d22d8c
[Test] Migrate SpecTestsConsistencyTest to JUnit5
2021-07-08 13:29:21 +03:00
Dmitriy Novozhilov
c0c9e4a114
Update testadata of PSI dump of java records
2021-07-08 13:29:21 +03:00
Dmitriy Novozhilov
955c506294
Update load java testdata with type use annotations
2021-07-08 13:29:21 +03:00
Dmitriy Novozhilov
4d4d3a998b
[FIR] Update load java testdata according to new sealed modifier
2021-07-08 13:29:20 +03:00
Dmitriy Novozhilov
5552f5f5b2
[FIR] Update light classes testdata
...
In 203 platform java.lang.Object in position of type parameter
bound is not rendered
2021-07-08 13:29:20 +03:00
Dmitriy Novozhilov
a710cdf822
[FIR] Properly unregister java element finder in CLI compiler
2021-07-08 13:29:20 +03:00
Dmitriy Novozhilov
11faf04a4c
[Test] Remove dependencies on IDEA classes from test modules
...
Some of IDEA services (like in `com.intellij/execution`) was copied,
because they are used in tests but jars with them compiled with
jdk 11 and we run our tests on jdk 8, so their bytecode can not
be read
2021-07-08 13:29:19 +03:00
Dmitriy Novozhilov
11dfbd41ac
[Test] Delete obsolete descriptor renderer tests
2021-07-08 13:29:19 +03:00
Dmitriy Novozhilov
eb94575c69
Remove redundant usages of IDEA services in CLI
2021-07-08 13:29:19 +03:00
Dmitriy Novozhilov
82e3e00bf5
Fix compilation after migrating to ASM 9
2021-07-08 13:29:19 +03:00
Dmitriy Novozhilov
80971d7b8b
~~~~ switch 203 ~~~~
2021-07-08 13:29:18 +03:00
Yan Zhulanow
cf65754ea4
Update 203 bunch
2021-07-08 13:29:18 +03:00
Dmitriy Novozhilov
ccc3e3510c
[Test] Remove useless dependencies on IDEA from FIR test modules
2021-07-08 13:29:18 +03:00
Dmitriy Novozhilov
b6bc57fa09
[Test] Remove useless dependencies on IDEA from :compiler:tests-common-new
2021-07-08 13:29:17 +03:00
Dmitriy Novozhilov
88b7694762
[Test] Remove useless dependencies on IDEA from :compiler:tests-common
2021-07-08 13:29:17 +03:00
Dmitry Petrov
1a0a3df9d2
JVM_IR simplify BridgeLowering
...
Generate bridges immediately for each class.
No need to compute existing signatures for a given method name unless it
requires a special bridge.
2021-07-07 21:24:55 +03:00
Xin Wang
8317daa00b
Don't generate nullability assertions in methods for directly invoked lambdas
2021-07-07 20:32:47 +03:00
Nikita Bobko
339231b05e
Move KtFunctionLiteral.findLabelAndCall from kotlin-ide.frontend-independent to compiler.psi
...
I want to be able to use this function in `:kotlin-scripting-ide-common` & `frontend-independent`
This commit also allows to remove copy-pasted `findLabelAndCall` in `scripting-ide-services` module
2021-07-07 16:51:44 +02:00
pyos
50797dba8d
JVM: do not use crossinline flag when inlining assertions
...
Crossinline lambdas *can* be inlined into objects, but don't *have* to;
the correct place should be determined from the context, not from the
parameter.
2021-07-07 16:48:01 +02:00
pyos
e64cda61d5
JVM_IR: do not generate $assertionsDisabled twice during inlining
2021-07-07 16:48:01 +02:00
Andrey Zinovyev
de3f31cf78
[FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics
...
No support for inheritance deprecations
and deprecations in qualifier's parts
2021-07-07 16:19:28 +03:00
Andrey Zinovyev
9fad55d551
[FIR] Use @DeprecatedSinceKotlin in the resolution
2021-07-07 16:19:27 +03:00
Igor Yakovlev
b64f7909b8
[FIR IDE] Implement own fir light classes support
2021-07-07 14:08:41 +02:00
Mikhail Glukhikh
c7877cb440
FIR: fix contract deserialization for assertIs<T>
2021-07-07 14:28:00 +03:00
Ilya Kirillov
51576c70b6
FIR: introduce package directive
...
The package directive is needed for KtElement -> FirElement mapping in IDE.
There should be some FirElement which will be result of mapping of elements
inside KtPackageDirective.
2021-07-06 22:49:50 +03:00
Mikhail Glukhikh
bf40c07cc3
FIR: drop questionable DiagnosticKind.NotRootCause
2021-07-06 18:43:16 +03:00
Tianyu Geng
768ddea18f
FIR checker: ILLEGAL_DECLARATION_IN_WHEN_SUBJECT
2021-07-06 18:27:47 +03:00
Tianyu Geng
31573a98e8
FIR checker: report EXPECTED_CONDITION
2021-07-06 18:27:23 +03:00
Victor Petukhov
65fd8fc174
Add generated files with descriptors for foreign annotation tests
2021-07-06 18:10:22 +03:00
Alexander Udalov
e7b37d99cb
Fix new compiler warnings in daemon and build-common
2021-07-06 13:31:21 +02:00
Victor Petukhov
6cfb1f40d6
Specify jspecify mode explicitly for warnings in tests
2021-07-06 09:54:32 +03:00
Victor Petukhov
74aa8e7497
Get rid of singleOrNull of NullabilityAnnotationStates
2021-07-06 09:54:31 +03:00
Victor Petukhov
50ad5116b5
Add CLI test for -Xnullability-annotations
2021-07-06 09:54:30 +03:00
Victor Petukhov
b0a44705b4
Take into account user defined jsr-305 annotations
2021-07-06 09:54:30 +03:00
Victor Petukhov
b2dff10e32
Implement caching states for nullability annotations
2021-07-06 09:54:30 +03:00
Victor Petukhov
a82772f31a
Depend on passed language version explicitly to compute nullability annotation settings
2021-07-06 09:54:29 +03:00
Victor Petukhov
18384788a4
Move type enhancement state stuff into core:descriptors.jvm
2021-07-06 09:54:29 +03:00
Victor Petukhov
ea901d81fb
Get rid of redundant Jsr305State
2021-07-06 09:54:28 +03:00
Victor Petukhov
f46dc713d7
Support rxjava 3 nullability annotations
2021-07-06 09:54:28 +03:00
Victor Petukhov
6d3badb2cd
Support configuring of nullability annotations with their report levels through a test directive
2021-07-06 09:54:27 +03:00
Victor Petukhov
61c2f1b203
Extract building JSR-305 settings to separate function
2021-07-06 09:54:27 +03:00
Victor Petukhov
f92ab691f8
Add explicit enabling of TypeEnhancementImprovementsInStrictMode in jspecify tests
2021-07-06 09:54:26 +03:00
Victor Petukhov
39ffcd3ba6
User proper report level for compatqual nullability annotations
2021-07-06 09:54:26 +03:00
Victor Petukhov
e16033f8d8
Add androidx recently nullability annotations
2021-07-06 09:54:26 +03:00
Victor Petukhov
4173f2d294
Don't forget jspecify annotation during extracting nullability from known annotations
2021-07-06 09:54:24 +03:00
Victor Petukhov
46d0b16142
Use new default settings for java nullability annotations in JavaTypeEnhancementState and get rid of all hardcoded defaults
2021-07-06 09:54:24 +03:00
Victor Petukhov
c8af1b735f
Introduce compiler flag to manage status of specific Java nullability annotations
2021-07-06 09:54:23 +03:00
Alexander Udalov
113632c49c
Psi2ir: load single-value Java array annotation arguments correctly
...
#KT-47467 Fixed
2021-07-05 21:49:10 +02:00