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
Sergey Bogolepov
e396da0562
[K/N] Update list of targets with stable caches
...
Enable compiler caches for iosSimulatorArm64 and macosArm64 targets
to make Apple Silicon distribution feature complete with
Intel-based one.
2021-07-06 18:15:30 +03:00
Victor Petukhov
65fd8fc174
Add generated files with descriptors for foreign annotation tests
2021-07-06 18:10:22 +03:00
Ilya Goncharov
c797d38312
[Gradle, JS]Add base dirs and prefix for correct source maps calculating
2021-07-06 12:59:03 +00:00
Alexander Udalov
e7b37d99cb
Fix new compiler warnings in daemon and build-common
2021-07-06 13:31:21 +02:00
Sergey Shanshin
0d211a53cb
Support serializable classes clash with JVM primitive types by name
...
Fixes Kotlin/kotlinx.serialization#1353
2021-07-06 12:52:53 +03:00
Ilya Goncharov
7181631051
[Gradle, JS] Add statistics for Kotlin/JS
...
- source map usages (legacy, ir)
- incremental klib
- incremental JS IR
- property lazy initialization
^KT-47435 fixed
2021-07-06 07:38:56 +00: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
877ca370c2
Use memoized function to compute and store annotation states cache
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
8de05691a9
Revert "Move fqname related stuff into core:util.runtime module"
...
This reverts commit e651e1c6
2021-07-06 09:54:28 +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
d5180f79aa
Support picking settings of exacter annotations by the length of the matching part of fqname
2021-07-06 09:54:25 +03:00
Victor Petukhov
70dbc50305
Rename JSPECIFY_DEFAULT_NOT_NULL to JSPECIFY_NULL_MARKED
2021-07-06 09:54:25 +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
8e7c0e8c61
Describe default settings for java nullability annotations depending on current kotlin version
2021-07-06 09:54:24 +03:00
Victor Petukhov
205087cae3
Move fqname related stuff into core:util.runtime module
2021-07-06 09:54:23 +03:00
Victor Petukhov
c8af1b735f
Introduce compiler flag to manage status of specific Java nullability annotations
2021-07-06 09:54:23 +03:00
Yahor Berdnikau
c3a3e99724
Fix toolchain is not applied for modules with 'java' plugin.
...
Use common base java plugin for configuration action: 'java-base'.
^KT-46972 Fixed
2021-07-05 23:15:44 +02:00
Alexander Udalov
113632c49c
Psi2ir: load single-value Java array annotation arguments correctly
...
#KT-47467 Fixed
2021-07-05 21:49:10 +02:00
Pavel Punegov
269f83f86e
Update kotlin-build-gradle-plugin to 0.0.31
2021-07-05 19:43:28 +00:00
Pavel Punegov
c2fe46020e
Native: improve CompilerVersion to correspond to the versioning schema
...
* Add pub and dev-google-pr meta versions
* Allow using release versions with and without build number
* Add tests for version parsing
2021-07-05 19:43:27 +00:00
Yahor Berdnikau
1bd0607b53
Fix toolchain jdk override was not working for all modules.
...
Now it also considers the case when separate tasks toolchain
are configured or module only has java toolchain.
^KT-46972 Fixed
2021-07-05 21:15:04 +02:00
Pavel Kunyavskiy
70ca222806
[K/N] Disable external calls checker for wasm target
2021-07-05 18:49:09 +00:00
Zalim Bashorov
4c4bcb1e3e
[Gradle, JS] Turn on by default sourcemap generation for JS IR
...
#KT-46551 Fixed
2021-07-05 21:01:45 +03:00
Zalim Bashorov
8da62b56fb
[IR] Put correct line numbers on return while inlining
...
#KT-46551 In Progress
2021-07-05 21:01:44 +03:00
Zalim Bashorov
d1f5ab4b09
[JS IR] Generate correct source locations in sourcemap for inline declarations
...
* Keep returnable blocks.
* Add a new lowering which simplifies returnable blocks by introducing
temporary variable for result and changing returnable block's type to Unit.
* Use information from returnable blocks in codegen to generate
the right source locations in sourcemap.
* Support in namer (LocalNameGenerator).
* Fix some lowerings to work correctly with returnable blocks.
#KT-46551 In Progress
2021-07-05 21:01:43 +03:00
Zalim Bashorov
2460f5f9ae
[JS CLI] Support sourcemap generation for IR BE in CLI
...
#KT-46551 In Progress
2021-07-05 21:01:41 +03:00
Zalim Bashorov
5a3efc1a98
[JS IR] Fill source info in codegen
...
#KT-46551 In Progress
2021-07-05 21:01:40 +03:00
Zalim Bashorov
64c6d852de
[JS IR] Preparing for introducing sourcemap as another compilation output
...
* Rename `JsCode` to `CompilationOutputs`.
* Rename members of CompilerResult.
#KT-46551 In Progress
2021-07-05 21:01:38 +03:00
Zalim Bashorov
d9b7230144
[JS IR] add dependency to sourcmap module
...
#KT-46551 In Progress
2021-07-05 21:01:37 +03:00
Zalim Bashorov
aae1057f35
[IR] Support IrReturnableBlock inside IR renderer
2021-07-05 21:01:35 +03:00
Ilya Chernikov
6911860cca
Clean-up coroutines usage in scripting libs and plugin
...
#KT-30778 fixed (again)
2021-07-05 19:26:42 +03:00
Ilya Chernikov
49e0b639f8
Add JSR-223 tests with compilable and bindings
2021-07-05 19:26:40 +03:00
Ilya Chernikov
32b6cfe2ea
[Scripting] fix receiver substitution in script JVM IR lowering
2021-07-05 19:26:39 +03:00
Ilya Chernikov
a7b94b398a
[minor] Bump serialization lib version in scripting test
2021-07-05 19:26:38 +03:00
Ilya Chernikov
0c2591e938
Bump coroutines version used in scripting to 1.5.0
...
#KT-43917 fixed
2021-07-05 19:26:37 +03:00