Commit Graph

95010 Commits

Author SHA1 Message Date
Dmitriy Dolovov c5d4619ebc [IR] Restore old Psi2IrTranslator constructor for older IDEs
^KT-54115
^KT-53649
2022-09-21 16:13:21 +02:00
Artem Kobzar 443f7d1048 [K/JS] Do not run generate-file-tests task if the source was not changed 2022-09-21 13:53:43 +00:00
Sebastian Sellmair 5580e4f06c [Gradle] KotlinPlugin.kt: Convert minimalSupportedAgpVersion into data class representation
^KT-54033 Verification Pending
2022-09-21 13:43:46 +00:00
Sebastian Sellmair f286588e4c [Gradle] Setup kotlin sources directly on AndroidSourceSet for AGP >= 7.0
^KT-54033 Verification Pending
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 958c7e72da [Gradle] Replace KotlinPlugin.kt#androidPluginVersion with AndroidGradlePluginVersion
^KT-54033 WIP
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 7d5b3d3628 [Gradle] KotlinMultiplatformAndroidGradlePluginCompatibilityHealthCheck: Use AndroidGradlePluginVersion tool
^KT-54033 WIP
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 32f86d4672 [Gradle] Implement AndroidGradlePluginVersion util
^KT-54033 WIP
2022-09-21 13:43:44 +00:00
Ilya Goncharov 3a39a0d468 [Gradle, JS] Karma kotlin reporter initialize browser if it was not initialized
^KT-54132
2022-09-21 13:15:27 +00:00
Yahor Berdnikau fbc155ba17 Restore 'target' input for KotlinNativeLink task
^KT-54112 Fixed
2022-09-21 15:13:46 +02:00
Yahor Berdnikau 136ccbd328 Remove JvmTarget.JVM_1_6 from Gradle DSL
This target is not available inside compiler and left for IDE
compatibility.

^KT-54103 Fixed
2022-09-21 13:34:26 +02:00
Ilya Goncharov f450b9397e [Gradle, JS] Fix testData for kotlin-gradle-plugin-api 2022-09-21 10:58:27 +00:00
Ilya Goncharov 912066aadf [Gradle, JS] Fix for output file 2022-09-21 10:58:27 +00:00
Ilya Goncharov b721b3e13c [Gradle, JS] dependsOn for test tasks 2022-09-21 10:58:26 +00:00
Ilya Goncharov e7f2085aa9 [Gradle, JS] platformType as internal 2022-09-21 10:58:26 +00:00
Ilya Goncharov 4906f17d09 [JS IR] Fix js compiler arguments 2022-09-21 10:58:25 +00:00
Ilya Goncharov 3d1db387f7 [Gradle, JS] Extension for outputFileProperty 2022-09-21 10:58:25 +00:00
Ilya Goncharov cab79d950f [Gradle, JS] outputName -> moduleName 2022-09-21 10:58:25 +00:00
Ilya Goncharov 55731f27a4 [Gradle, JS] Adopt changes about compilerOptions 2022-09-21 10:58:24 +00:00
Ilya Goncharov 4eedfe7f58 [Gradle, JS] Fix compilation after rebase 2022-09-21 10:58:24 +00:00
Ilya Goncharov 0efb8a64bf [Gradle, JS] Add fileTree for kotlin2jsCompile 2022-09-21 10:58:23 +00:00
Ilya Goncharov 0bcb823550 [Gradle, JS] Rebase on master 2022-09-21 10:58:23 +00:00
Ilya Goncharov 8d90173ea5 [JS, IR] Deprecated outputFile 2022-09-21 10:58:23 +00:00
Ilya Goncharov 71ab99c47f [JS, IR] Fix wasm tests 2022-09-21 10:58:22 +00:00
Ilya Goncharov 9685b0a86b [JS, IR] Wasm with outputDir and outputName 2022-09-21 10:58:21 +00:00
Ilya Goncharov f320efedd3 [JS, Tests] Migrate IR tests onto outputDir and outputName 2022-09-21 10:58:21 +00:00
Ilya Goncharov eeb0520b48 [Gradle, JS] Migrate kotlin-stdlib-js 2022-09-21 10:58:21 +00:00
Ilya Goncharov eed994f1fe [Gradle, JS] Correct require relative path 2022-09-21 10:58:20 +00:00
Ilya Goncharov 642fae1a5b [Gradle, JS] Migrate onto destinationDirectory and outputName 2022-09-21 10:58:20 +00:00
Ilya Kirillov cd5b9d6356 [Analysis API] do not generate standalone tests which use compiler plugin 2022-09-21 09:44:24 +02:00
Ilya Kirillov 2387b31b9b [Analysis API] add kotlin-stdlib to Analysis API tests via KotlinStandardLibrariesPathProvider
to customize it outside kotlin repo
2022-09-21 09:44:24 +02:00
Ilya Kirillov a74b5dbcad Add annotations-jar to compiler tests via KotlinStandardLibrariesPathProvider
to customize it outside kotlin repo
2022-09-21 09:44:24 +02:00
Ilya Kirillov 51cece4741 Publish Analysis API test framework 2022-09-21 09:44:23 +02:00
Ilya Goncharov d203dc35bf [JS IR] Add to IR keep possibility similar to legacy-dce one
It helps to:

- keep declarations even if they are not reachable and not exported
- not minify names of not exported declarations

Compiler argument: -Xir-keep=A,B

Can be used for top-level declarations or for member

^KT-54118 fixed
2022-09-20 16:06:17 +00:00
nataliya.valtman 4863e5d47b Store errors into separate files 2022-09-20 14:11:25 +02:00
Dmitry Khalanskiy 4cbee3cde7 Fix KT-51478
The issue was that, when various context elements were available
to fulfill a need for an extension receiver, but none of them were
applicable to it, the compiler behaved the same way as if there
was no extension receiver at all.

https://youtrack.jetbrains.com/issue/KT-51478/Inapplicable-receiver-diagnostic-expected-when-there-are-two-context-receiver-candidates
2022-09-20 10:32:32 +00:00
Nikolay Lunyak dccb7faf2e [FIR] KT-53479: Paraphrase INSTANCE_ACCESS_BEFORE_SUPER_CALL 2022-09-20 09:51:20 +00:00
Dmitriy Novozhilov 367761008b [Lombok] Make FQNs of Guava collections shade-safe
^KT-53683
2022-09-20 11:08:30 +03:00
Dmitriy Novozhilov b1d42e1383 [Lombok] Update incorrect testdata according to KT-53965 2022-09-20 10:38:00 +03:00
Dmitriy Novozhilov 111dab7a88 [Lombok] Fix test configuration 2022-09-20 10:37:59 +03:00
Alexander Udalov a19fc4650b Workaround a problem in publishing kotlin-backend-native-for-ide 2022-09-20 03:55:13 +02:00
Vladimir Dolzhenko fc8cb40a0d Make KtFileElementType#INSTANCE final
#KT-53781
2022-09-19 20:34:35 +00:00
Vladimir Dolzhenko 8804742220 Revert back and deprecate KtStubElementTypes#FILE
Due to usages in some external tooling

#KT-53781
2022-09-19 20:34:35 +00:00
Ilya Gorbunov e35ace5d3a Deprecate AbstractDoubleTimeSource
There are too few usages of it, and it can be mostly replaced with AbstractLongTimeSource.
2022-09-19 19:16:40 +00:00
Ilya Gorbunov 57c9d61291 ComparableTimeMark and specialized TimeSource KT-54082
- Introduce ComparableTimeMark interface extending TimeMark,
and TimeSource.WithComparableMarks - a time source that returns such time marks.
- Implement ComparableTimeMark in ValueTimeMark and AbstractLong/DoubleTimeMark classes.
2022-09-19 19:16:40 +00:00
Mikhail Glukhikh a4b2a8c4ea AbstractTypeChecker: fix special case with CapturedType as self type argument
#KT-53908 Fixed
May fix also KT-53271
2022-09-19 19:12:21 +00:00
Mikhail Glukhikh ed21011183 NewConstraintSystemImpl: remove redundant suppressions 2022-09-19 19:12:20 +00:00
Mikhail Glukhikh 6ab516a7e5 FE: add test for KT-53908 2022-09-19 19:12:20 +00:00
Artem Kobzar 73e7053c35 [K/JS] Use only single variant of default arguments function wrapper for exported and not-exported functions 2022-09-19 17:49:04 +00:00
Alexander Korepanov ea7ce55082 [JS IR] Add a test with an object in inline function for JS IC 2022-09-19 16:54:14 +00:00
Sebastian Sellmair 7a8250cf17 [Gradle] Add ReadMe.md to k.g.p-api module
^KT-54029 Verification Pending
2022-09-19 16:03:46 +00:00