Commit Graph

94690 Commits

Author SHA1 Message Date
Sebastian Sellmair 0f5a298689 [Gradle][MPP] InternalKotlinSourceSet: Provide class information on casting failure
^KT-52726 Verification Pending
2022-09-12 10:58:45 +00:00
Sebastian Sellmair 63232b1849 [Gradle][MPP] Implement assertAllImplementationsAlsoImplement assertion function
^KT-52726 Verification Pending
2022-09-12 10:58:45 +00:00
Sebastian Sellmair 134ed4bae1 [Gradle][MPP] ObservableSet.addAll: Incrementally add elements and invoke listeners
^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00
Sebastian Sellmair 74b2285877 [Gradle][MPP] Implement additional InternalKotlinSourceSetTests
.. for withDependsOnClosure and compilations

^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00
Sebastian Sellmair a0d350fad4 [Gradle][MPP] ObservableSet: Implement equals/hashCode/toString
^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00
Sebastian Sellmair dc8a6b8def [Gradle][MPP] Replace slow CompilationSourceSetUtil with InternalKotlinSourceSet api
^KT-52726 Verification Pending
2022-09-12 10:58:44 +00:00
Sebastian Sellmair 0e6a074c9c [Gradle][MPP] Implement InternalKotlinSourceSet.compilations
This property can later be used to replace the slow
compilationsBySourceSet util.

KT-52726
2022-09-12 10:58:43 +00:00
Sebastian Sellmair 5a4f73be50 [Gradle][MPP] Implement InternalKotlinCompilation and make .kotlinSourceSets and .allKotlinSourceSets observable
The effect of this changes are twofold:

1) Maintaining the 'allKotlinSourceSets' closure
makes access to this field cheaper

2) The observability of changes in the kotlinSourceSets
will allow implementing a faster compilationsBySourceSet util

KT-52726
2022-09-12 10:58:43 +00:00
Sebastian Sellmair 1d41a1cde7 [Gradle][MPP][Minor] kotlinCompilations.kt: Extract abstract classes into separate files
This shall increase readability and maintainablity.

KT-52726
2022-09-12 10:58:43 +00:00
Sebastian Sellmair 1c52f7c13b [Gradle][MPP][Minor] kotlinCompilations.kt: Remove unused 'composeName'
KT-52726
2022-09-12 10:58:43 +00:00
Sebastian Sellmair 5f924518af [Gradle][MPP] CompilationDetails.source: Use .forAll over 'whenEvaluated'
KT-52726
2022-09-12 10:58:42 +00:00
Sebastian Sellmair c6e9216663 [Gradle][MPP] Replace KotlinSourceSet closure extensions w/ InternalKotlinSourceSet API
KT-52726
2022-09-12 10:58:42 +00:00
Sebastian Sellmair d19aea36e5 [Gradle][MPP] Implement InternalKotlinSourceSet with observable dependsOn
This is used twofold:
1) The dependsOnClosure and withDependsOnClosure can be accessed
w/o any additional overhead

2) This can later be used to maintain caches for a
replacement of the slow compilationsBySourceSet util

KT-52726
2022-09-12 10:58:42 +00:00
Mikhail Glukhikh b19832ef9a K1: modify error message of ENUM_DECLARING_CLASS_DEPRECATED
Related to KT-53805
2022-09-12 10:45:23 +00:00
Mikhail Glukhikh 769a2ca9b1 K1: report ENUM_DECLARING_CLASS_DEPRECATED on enum entry properly
#KT-53807 Fixed
2022-09-12 10:45:23 +00:00
Leonid Startsev 62f67e46fd Add SerializerFactory supertype for Native & JS in FIR serialization plugin.
This supertype is intended to be used with @AssociatedObject on platforms
where reflection possibilities are limited.
2022-09-12 10:19:39 +00:00
Abduqodiri Qurbonzoda b388c7503b Advance Int/Long/Double.units deprecation level to ERROR #KT-53864 2022-09-11 23:49:07 +03:00
Abduqodiri Qurbonzoda 89b5ce1ed7 Advance Duration.toLongUnits() deprecation level to ERROR #KT-53864 2022-09-11 23:49:07 +03:00
Abduqodiri Qurbonzoda b1300332ee Advance Duration.inUnits deprecation level to ERROR #KT-53864 2022-09-11 23:49:06 +03:00
Abduqodiri Qurbonzoda 0b4ceb0897 Advance Duration.units(value) deprecation level to ERROR #KT-53864 2022-09-11 23:49:06 +03:00
Abduqodiri Qurbonzoda 7060811c8b Remove the brittle contains optimization code #KT-47707 2022-09-11 10:54:37 +00:00
Dmitry Gridin 51fd2af6fd [lc] decompiled: update debug info
^KTIJ-22722
2022-09-10 21:37:47 +02:00
Alexander Udalov ed6fe15e07 Support serialization of builtins with ExperimentalStdlibApi
This will allow to remove OptIn and ExperimentalStdlibApi from
serialized builtins after bootstrap.

 #KT-53073
2022-09-09 21:31:39 +02:00
Alexander Udalov 686cd82327 Serialize OptIn to builtins, improve tests
Skip SOURCE-retention annotations in builtins serialization tests,
because otherwise the source analysis result can't be equal to the
metadata deserialization result.

 #KT-53073 Fixed
2022-09-09 21:31:39 +02:00
Roman Golyshev 3f6742916a Increment stub binary version due to externalId change
Follow-up to e0c2813a37
2022-09-09 18:48:30 +02:00
Mikhail Glukhikh 393e99fa44 FE: don't run overload-by-lambda-return-type with unsuccessful candidates
Related to KT-52927
2022-09-09 16:12:24 +00:00
Vladimir Sukharev 046f0ad95d Adjust test kt53119_append_generated.kt to changes in KT-53864
Merge-request: KT-MR-7080
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-09-09 14:42:11 +00:00
Jinseong Jeon 68519af97a AA: add tests about platform types
...as declaration return type or expression type
2022-09-09 15:02:23 +02:00
Vladimir Sukharev c8864369fd Use main class as test generator name
Merge-request: KT-MR-7031
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com>
2022-09-09 12:51:18 +00:00
Jinseong Jeon b9501e7452 SLC: suppress final on interface functions
even bridges to functions in companion object
2022-09-09 14:47:10 +02:00
Mikhail Glukhikh e02fd8f4a8 FE: don't run builder inference in UNTIL_FIRST_LAMBDA mode
#KT-52927 Fixed
2022-09-09 12:44:39 +00:00
Ilya Kirillov 8ee4cf46d3 [slc] actualize SLC testdata 2022-09-09 14:38:12 +02:00
Jinseong Jeon 3eb68a6ee8 S/LC: fix default visibility of constructor of sealed class 2022-09-09 14:38:12 +02:00
Jinseong Jeon 5225c51a5a SLC: handle @JvmOverloads on constructor 2022-09-09 14:38:12 +02:00
Jinseong Jeon d4efc8d81d SLC: use partition to distinguish ctor properties from regular members 2022-09-09 14:38:11 +02:00
Jinseong Jeon 4859524115 SLC: account for upperbounds when computing nullability of type parameter 2022-09-09 14:38:11 +02:00
Alexander Udalov e83819e682 Minor, remove obsolete directives from jvm-abi-gen tests
Language version 1.6 was needed in these tests to enable annotation
instantiation, but that feature is now enabled by default.
2022-09-09 14:32:36 +02:00
Alexander Udalov 6e1cddd039 Disable @SourceDebugExtension generation in jvm-abi-gen tests
In these two tests, contents of the annotation differ by design, and
that does not constitute a difference in ABI.
2022-09-09 14:32:35 +02:00
Alexander Udalov 7dad47cd76 Add -X argument to disable generation of @SourceDebugExtension
This will be used in tests in the subsequent commit.
2022-09-09 14:32:35 +02:00
Alexander Udalov 87d3ce6ded Write a copy of SMAP to a new annotation
To make it available for dynamically attached JVMTI agents.

`@SourceDebugExtension` annotation value is equal to the
SourceDebugExtension attribute value, which is checked now for all box
tests. The difference is that the annotation stored in the constant
pool, which is available for dynamically attached JVMTI agents.

 #KT-53438 Fixed
2022-09-09 14:32:35 +02:00
Igor Chevdar 1e6f7f6d58 [K/N] Fixed problem with non-empty output directory 2022-09-09 12:23:05 +00:00
Artem Kobzar da367a467d [K/JS] chore: stop unnecessary defineProperties generating. 2022-09-09 11:14:26 +00:00
Sergej Jaskiewicz 9176ba5b2d [JS IR] Don't set fileIdentity when embedding sources into sourcemaps
(see the comment)
2022-09-09 11:02:26 +00:00
Sergej Jaskiewicz 64465480a3 [JS] J2K for SourceMap3Builder 2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz 660e8ff4da Rename .java to .kt 2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz 7874b1fcad [JS] Rename JsLocation.identityObject to fileIdentity 2022-09-09 11:02:25 +00:00
Sergej Jaskiewicz b9cac8a4ca [JS IR] Support the sourceMapEmbedSources setting (partially)
This doesn't work with external libraries yet (including stdlib).
2022-09-09 11:02:25 +00:00
Rick Clephas b406722e20 [K/N] Prohibit empty ObjCNames 2022-09-09 12:31:36 +02:00
Anna Kozlova 0290f09ac2 ensure changes in getters/setters modifiers are not treated as local 2022-09-09 12:07:35 +02:00
Yahor Berdnikau 920fc2b8af Set minimal supported Gradle version to 6.8.3
^KT-53885 Fixed
2022-09-09 08:26:52 +00:00