Commit Graph

91770 Commits

Author SHA1 Message Date
Yahor Berdnikau dc0a1df8d4 Restore "AbstractKotlinCompileTool class now also implements PatternFilterable"
This reverts commit d5e5513dfd.
2022-03-24 19:02:57 +01:00
Yahor Berdnikau 4aa6d984fc Restore "Drop tasks inheritance from 'AbstractCompile' and 'SourceTask'"
This reverts commit 2c5d817633.
2022-03-24 19:02:54 +01:00
770grappenmaker 64f0240d9f kotlinx.serialization: Fix interface delegation when delegate is initialized in a function (#4727)
Fixes https://github.com/Kotlin/kotlinx.serialization/issues/241
2022-03-24 16:11:36 +03:00
Victor Petukhov 7e491edf95 Allow empty type info for excl expressions
^KT-34515 Fixed
2022-03-24 11:46:00 +00:00
Evgeniy.Zhelenskiy b6f2513dd2 [FIR] Introduce valueClassRepresentation to FIR
#KT-1179
2022-03-24 11:38:44 +00:00
Evgeniy.Zhelenskiy 28bf83ceac [IR] Unite inline class and multi-field value class representation
#KT-1179
2022-03-24 11:38:43 +00:00
Evgeniy.Zhelenskiy 282ab398c6 [IR] Generify lowerings
#KT-1179
2022-03-24 11:38:42 +00:00
Victor Petukhov 22b2554368 [FE 1.0] Support suspend only SAM conversions
^KT-50477 Fixed
2022-03-24 09:28:28 +00:00
Elena Lepilkina d2c0234895 [K/N][perf] Fix url for buildserver 2022-03-24 08:22:30 +00:00
Steven Schäfer 1134dc3858 JVM IR: Resolve fake overrides during inline class mangling
This is necessary to determine which mangling scheme to use (KT-51672).
2022-03-24 00:38:34 +00:00
Victor Petukhov 57a134c543 [FE 1.0] Report recursive type checker problem as a warning till 1.9
^KT-48546
2022-03-23 21:13:34 +00:00
Victor Petukhov 2307122089 [FE 1.0] Report errors for recursive types from completion as well
Such diagnostics could be missed at least for plus assignment's right side because it wasn't report for the second time of analysis

^KT-48546 Fixed
2022-03-23 21:13:34 +00:00
Victor Petukhov 27fa632630 [FE 1.0] Update test data with new error type representation 2022-03-23 21:13:33 +00:00
Victor Petukhov b5933c70e2 [FE 1.0] Refactor error utils: split error entities and introduce error type and error scope kinds 2022-03-23 21:13:33 +00:00
Victor Petukhov 8c1fcddea3 [FE 1.0] Don't miss NO_SET_METHOD checks
^KT-28109 Fixed
2022-03-23 21:13:33 +00:00
Victor Petukhov 3aabc8d666 [FE 1.0] Substitute anonymous object's supertypes while using that in public declarations
^KT-46136 Fixed
2022-03-23 21:13:32 +00:00
Yahor Berdnikau 2c5d817633 Revert "Drop tasks inheritance from 'AbstractCompile' and 'SourceTask'"
This reverts commit e9498c8978.
2022-03-23 19:03:32 +01:00
Yahor Berdnikau d5e5513dfd Revert "AbstractKotlinCompileTool class now also implements PatternFilterable"
This reverts commit 0025bf9ed3.
2022-03-23 19:03:17 +01:00
Yahor Berdnikau 46f44763ac Revert "Remove sourceFileExtensions input"
This reverts commit f81e49f210.
2022-03-23 19:02:56 +01:00
Yahor Berdnikau 69b4b80dff Revert "Add KotlinCompile.androidLayoutResources input"
This reverts commit 6ee503f2b2.
2022-03-23 19:02:41 +01:00
Yahor Berdnikau 46d3f96f0b Revert "Simplify scripting configurations setup"
This reverts commit f4078b0940.
2022-03-23 19:02:23 +01:00
Yahor Berdnikau 47a9fb725e Revert "Rename 'classpath' input into 'libraries'"
This reverts commit c7e594fc7f.
2022-03-23 19:01:18 +01:00
sebastian.sellmair 1391c983a2 Implement checkExpectedGradlePropertyValues to notify developers about changing Gradle properties 2022-03-23 13:55:50 +00:00
Viacheslav Kormushkin cc30d99f6f Remove dependency on the cocoapods-generate plugin
#KT-50622
2022-03-23 11:46:19 +00:00
Mikhail Glukhikh b327f5c731 Substitute type variables properly in ConeOverloadConflictResolver
#KT-46187 Fixed
2022-03-23 09:54:46 +00:00
sebastian.sellmair 310ab12a92 kotlin-gradle-plugin-idea: Replace special -for-compatibility-tests publication
... with separate module intended to download and prepare
the `kotlin-gradle-plugin-idea` classpath used for testing
backwards compatibility.
2022-03-22 18:45:57 +01:00
Svyatoslav Scherbina 42ed0c5fe6 Native: add .alloc(value) for primitive types to interop runtime
^KT-50312 Fixed
2022-03-22 18:49:09 +03:00
Svyatoslav Scherbina 11fdd2e4fa Native: add source code generator for kotlin-native/Interop/Runtime
Task ``:generators:generateNativeInteropRuntime` runs the generator.
2022-03-22 18:49:09 +03:00
Svyatoslav Scherbina 19d13bb8bf ObjCExport: enable unitSuspendFunctionObjCExport=proper by default
For Unit-returning suspend functions ObjCExport now generates
completion handlers without redundant `KotlinUnit*` result parameter.

So Swift (5.5+) can import these functions as Void-returning async
functions.

unitSuspendFunctionObjCExport=legacy binary option can be used to
enable the legacy behaviour. It will be removed in a future release.

^KT-49928 Fixed
2022-03-22 15:42:35 +00:00
Yahor Berdnikau c7e594fc7f Rename 'classpath' input into 'libraries'
'classpath' makes sense only in case of Kotlin/Jvm, but not for
Kotlin/Js or Kotlin/Native. 'libraries' is common ground for a name.

For 'KotlinCompile' task 'getClasspath' and 'setClasspath' methods
are left with deprecation note.

^KT-32805 Fixed
2022-03-22 15:29:08 +00:00
Yahor Berdnikau f4078b0940 Simplify scripting configurations setup
Make it more clear what is resolving from what.

^KT-32805 In Progress
2022-03-22 15:29:07 +00:00
Yahor Berdnikau 6ee503f2b2 Add KotlinCompile.androidLayoutResources input
This input is used by 'android-extensions' subplugin to track changed
Android layout resource files.

^KT-32805 In Progress
2022-03-22 15:29:07 +00:00
Yahor Berdnikau f81e49f210 Remove sourceFileExtensions input
This and new KotlinCompile task inputs dedicated for scripting
allowed providing proper Kotlin scripts compilation support without
eager configuration dependencies resolve.

^KT-32805 In Progress
2022-03-22 15:29:06 +00:00
Yahor Berdnikau 0025bf9ed3 AbstractKotlinCompileTool class now also implements PatternFilterable
This allows to drop SourceRoots intermediate container and replace it
with normal Gradle inputs. This inputs will use ant-style
patterns for filtering allowing Gradle to apply better caching
between builds.

KaptTask replaces ConventionTask parent with DefaultTask.

^KT-32805 In Progress.
2022-03-22 15:29:05 +00:00
Yahor Berdnikau e9498c8978 Drop tasks inheritance from 'AbstractCompile' and 'SourceTask'
'AbstractCompile' task has inputs that are related only to Java
compilation and should not used for Kotlin compile tasks.

'SourceTask' most probably will be deprecated in future Gradle releases
- https://github.com/gradle/gradle/issues/9040. Plus it has
old 'sources' with 'FileTree' type which is not stable
for task inputs snapshotting.

Another breaking change - 'destinationDir' task property is not longer
available. It is replaced by 'destinationDirectory' which uses Gradle
Provider API type.

^KT-32805 In Progress
2022-03-22 15:29:05 +00:00
Yahor Berdnikau f70b477fa7 Add @NativeGradlePluginTests annotation
And related Gradle tasks to run it.

^KT-51553 In Progress
2022-03-22 15:14:51 +00:00
Yahor Berdnikau 10fdc399c4 Remove @SimpleGradlePluginTests annotation
And related Gradle tasks to run it.

^KT-45745 Fixed
2022-03-22 15:14:50 +00:00
Jinseong Jeon 881a6bed35 AA: add tests about resolution to Java static method 2022-03-22 15:44:50 +01:00
Jinseong Jeon 13b9fed488 AA FE1.0: make invoke reference handle implicit invoke only 2022-03-22 15:44:49 +01:00
Jinseong Jeon 06d1acaadd AA: one more kind for Java synthetic property origin 2022-03-22 15:44:47 +01:00
Jinseong Jeon cbef3faae7 AA: expose library modules in the project structure 2022-03-22 15:44:46 +01:00
Jinseong Jeon dcc349da0d AA: split PSI lookup utils from deserialized declaration provider 2022-03-22 15:44:46 +01:00
Jinseong Jeon 4d938e93c6 FIR LC: remove IDE prefix from FIR version of KotlinAsJavaSupport
since it's used in standalone mode as well
2022-03-22 15:44:45 +01:00
Victor Petukhov 25a06bdc56 [Compiler CLI] Make language version description not in capital letters
^KT-51673 Fixed
2022-03-22 13:41:46 +00:00
Roman Golyshev 22830cf159 [FIR IDE] Fix resolving sugared compound operators (like +=, -=)
^KTIJ-21374 Fixed
2022-03-22 13:14:54 +00:00
Artem Kobzar 51bb548aef fix: remove unusedUnit_getInstance calls. 2022-03-22 10:02:21 +00:00
Mikhael Bogdanov 093b1bebb0 KAPT+IR: Generate LVT in kapt mode 2022-03-22 09:50:08 +00:00
Artem Kobzar 0153f5d92a chore: set isComplete flag also for interfaces that do not contain constructor fields. 2022-03-21 18:53:04 +00:00
Igor Yakovlev d881f0d2a6 [WASM] Replace String storage type from CharArray to WasmCharArray 2022-03-21 17:24:38 +00:00
Alexander Dudinsky fb0819d490 Implement OsCondition test annotation
With this annotation we can configure specific tests for
running on different platforms on TC and locally.
`supportedOn` shows the platform where the test should pass.
`enabledOnCI` configures on which platform test should be run on CI.
2022-03-21 15:35:05 +00:00