Commit Graph

91942 Commits

Author SHA1 Message Date
Abduqodiri Qurbonzoda 187faa121e Test backreference to group with index zero 2022-04-05 15:21:29 +00:00
Abduqodiri Qurbonzoda 74121b26c0 Test octal literal in regex 2022-04-05 15:21:28 +00:00
Abduqodiri Qurbonzoda 46408ffd9d Fix tests by adjusting to platform behavior 2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda d500d03baa [K/N and WASM] Support back references to groups with multi-digit index #KT-51776 2022-04-05 15:21:27 +00:00
Abduqodiri Qurbonzoda 9c4c1ed557 [K/N and WASM] Implement named capturing group in Regexes #KT-41890 2022-04-05 15:21:26 +00:00
Abduqodiri Qurbonzoda c3f5d03b36 [JS] Support named capture groups in Regex #KT-51775 2022-04-05 15:21:25 +00:00
Vsevolod Tolstopyatov cf79752c14 Stabilize deepRecursiveFunction and DeepRecursiveScope
#KT-51848
2022-04-05 12:49:35 +00:00
Margarita Bobova 728f2bdbea Add Changelog for 1.6.20 2022-04-05 14:46:43 +03:00
Dmitry Timofeev 4e784eeb33 Create INTERSECTION_TYPE stubs for definitely non-nullable types
^KTIJ-20802 Fixed
2022-04-05 10:48:12 +00:00
Alexander Udalov df86290083 Add another test for KT-49715 and fix JS IR behavior
#KT-49715
 #KT-51798 Fixed
2022-04-05 01:06:57 +02:00
Xin Wang 24105139ea Handle methods descriptor clash in data class
1. Extension functions declared in data classes are generated earlier by `generateMembersDeclaredInClassBody`
2. Extension functions fake override from parent class are generated earlier by `generateFakeOverrideMemberDeclarations`

So it is safe to filter out extension functions inside `generateAdditionalMembersForDataClass`

 #KT-49715
 #KT-51798
2022-04-05 01:06:57 +02:00
Ilya Gorbunov 4c461d7864 Add min/max test generator and generated tests
Temporarily exclude these tests from kotlin-stdlib-wasm testing due to KT-51647
2022-04-04 22:33:25 +00:00
Ilya Gorbunov 60fbb0d171 Reintroduce min/max operations for non-empty collections KT-50146 2022-04-04 22:33:24 +00:00
Ilya Gorbunov 4709e2c274 stdlib-gen: simpify copyright notice reading 2022-04-04 22:33:23 +00:00
Ilya Gorbunov d225399241 Fix test fq names in stdlib JS API dump run configuration 2022-04-04 22:33:22 +00:00
Abduqodiri Qurbonzoda 42c9a27b8a Specialize Progression first/last/OrNull functions #KT-42178 2022-04-04 22:27:49 +00:00
Yahor Berdnikau cca2680c7f Update Gradle integration tests
Substituting plugin via 'pluginManagement.eachPlugin.useModule' does not
work with plugin variants.

^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 617e25b8a3 Update in GenerateGradleOptions paths to project sources
^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 5d11c5fa56 Add attributes to the kotlin subplugins classpath.
This removes selection ambiguity and provides Gradle multi-variant
support for 3rd party compile plugins wrapped in Gradle.

^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau b376146744 Update build setup for Gradle integration tests
^KT-49227 In Progress
2022-04-04 20:38:01 +02:00
Yahor Berdnikau 35c6f709db Update gradle plugin dependencies in 'kotlin-gradle-plugin-idea'
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 4839b2f193 Update 'kotlin-gradle-subplugin-example' setup
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 792d44e617 Migrate 'kotlin-serialization' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau d9ddcd991b Migrate 'kotlin-gradle-plugin' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau f25b00daa3 Migrate 'kotlin-lombok' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 1ddd90bba1 Migrate 'android-test-fixes' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau e875a0a311 Migrate 'kotlin-sam-with-receiver' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 21a12b9a58 Migrate 'kotlin-noarg' module to variants
^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau 2c7992596c Remove 'kotlin-gradle-plugin-dsl-codegen' from Gradle dependencies
Gradle dependencies configuration doesn't make sense in this module.

^KT-49227 In Progress
2022-04-04 20:38:00 +02:00
Yahor Berdnikau b600a52a57 Migrate kotlin-gradle-build-metrics module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau e4dcc9344a Migrate kotlin-gradle-plugin-model module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau b2e3c5c557 Migrate kotlin-gradle-statistics module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau 8d69675e7b Migrate kotlin-allopen module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau 437592ac2a Migrate kotlin-gradle-plugin-api module to variants
^KT-49227 In Progress
2022-04-04 20:37:59 +02:00
Yahor Berdnikau ad9aa8d519 Add plugin variants
Change configuration adding Gradle plugin variants. 'main' SourceSet
is used for minimal supported Gradle versions, 'common' SourceSet for
common code that is similar between versions, plus, currently,
'gradle70' SourceSet for Gradle 7.0+ versions.

^KT-49227 In Progress
2022-04-04 20:37:56 +02:00
Alexander Likhachev 96b71e83ec [Gradle] Deprecate the system property for compiler execution strategy
#KT-51830 Fixed
2022-04-04 18:32:55 +00:00
Nikolay Krasko f5e89079e9 Temporary revert maven-jar-plugin version in kotlin-osgi-bundle
Workaround for:
Classes found in the wrong directory:
{META-INF/versions/9/kotlin/reflect/jvm/internal/impl/serialization/deserialization/builtins/BuiltInsResourceLoader.class=kotlin.reflect.jvm.internal.impl.serialization.deserialization.builtins.BuiltInsResourceLoader, META-INF/versions/9/module-info.class=module-info}

KTI-729
2022-04-04 17:51:40 +00:00
Nikolay Krasko dc83c64447 Use default jar execution instead creating a new one
Workaround `You have to use a classifier to attach supplemental
artifacts to the project instead of replacing them` error.

KTI-729
2022-04-04 17:51:39 +00:00
Nikolay Krasko 1288aaf0a2 Update maven-jar-plugin and maven-source-plugin on the way to reproducible builds
KTI-729
2022-04-04 17:51:39 +00:00
Alexander Korepanov 9952d43252 [JS IR] IC improvements
- Reuse a built fragment
  - Use cache for saving built JS code
2022-04-04 17:42:04 +00:00
Stanislav Erokhin f8ae097e50 Restore API used in mobile-ide/kotlin-ocswift
See IDEA/f53c2114c38f856bdf0ff4d01de9fffeeeb630f2 commit.
In 222+ IDEA usage of the old ErrorUtils (and other classes)
was eliminated, but not in the 211-221 versions.

Relevant Kotlin commit: b5933c70e2

Also, I noticed that stub for createUnresolvedType do not
store arguments into Error type, so I've fixed that too
2022-04-04 16:48:35 +00:00
Ilya Goncharov 611e70c254 rra/ilgonmic/js-fun-import
[JS IR] Test import.meta syntax

[JS IR] Add possibility to use import.meta

[JS IR] Check if import function-like returns Promise

[JS IR] Add test with import function syntax

[JS IR] Allow import function-like in js function

Merge-request: KT-MR-5948
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-51125 fixed
2022-04-04 16:26:54 +00:00
Dmitriy Novozhilov 5a3b397552 [FIR] Get rid of FirTypedDeclaration
`FirTypedDeclaration` has only one inheritor (`FirCallableDeclaration`),
  so there is no much sense to keep this class
2022-04-04 15:23:58 +00:00
Dmitriy Novozhilov ae0ce57b2c [FIR] Don't force calculation of return type of overrides during status resolution 2022-04-04 15:23:57 +00:00
Dmitriy Novozhilov effa3f197a [FIR] Move ReturnTypeCalculator to :fir:providers module
Also make it an abstract class and turn ReturnTypeCalculatorForFullBodyResolve
  into object (because it has no state and there is no need to create
  different instances of it)
2022-04-04 15:23:56 +00:00
Dmitriy Novozhilov ff1e2c05bf [FIR] Fix declaration specificity rules
Handle visibility of declarations and setters of properties
2022-04-04 15:23:56 +00:00
Dmitriy Novozhilov caffe36181 [FIR] Move utilities for matching overrides into separate session component 2022-04-04 15:23:55 +00:00
Dmitriy Novozhilov 0025d170d1 [FIR] Reorganize processing of candidates in MemberScopeTowerLevel
First collect all candidates and only then consume them. This is needed
  for further handling of overridable candidates from smartcasts
2022-04-04 15:23:54 +00:00
Yahor Berdnikau ebb292849f Remove experimental.coroutines DSL
And 'kotlin.coroutines' property as well.

^KT-50494 Fixed
2022-04-04 15:11:46 +00:00
Ilya Chernikov 35f80c04ca IR Scripting: update capturing logic for the REPL, imported scripts,
as well as all other implicit receivers.
2022-04-04 14:55:53 +00:00