Commit Graph

91739 Commits

Author SHA1 Message Date
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
Mikhail Glukhikh 70366c3bcb FIR: forbid java.lang.String deprecated constructors #KT-51364 Fixed 2022-03-21 13:58:13 +00:00
Pavel Punegov 0fa60ea75f [K/N][samples] Add else branch to make when exhaustive 2022-03-21 13:05:16 +00:00
Artem Kobzar 6aa8c3aa2a chore: prevent the creation of unused code blocks in IR. 2022-03-21 11:26:13 +00:00
Sergey Bogolepov 77c04e7d71 [K/N] Do not inline runtime functions in case of armv7 darwin targets
^KT-51649 fixed
2022-03-21 09:11:13 +00:00
Artem Kobzar aa85b755c1 chore: remove unused break statements from inlined functions bodies. 2022-03-19 20:04:22 +00:00
Junmin Kim c7d4b97fe1 Fix typo in KFunctionProxy.kt
Replace `eqaulsByAdapteeCall` with `equalsByAdapteeCall`
2022-03-18 19:48:19 +03:00
Simon Ogorodnik 1bb655034b Inference. Add parent builder inference constraints only once 2022-03-18 12:14:00 +00:00
Simon Ogorodnik 9f6a812786 Fix multiple registration of same type variable in builder inference 2022-03-18 12:14:00 +00:00
Simon Ogorodnik 7fa13f758f Make constraint system fail hard on registering existing variable 2022-03-18 12:14:00 +00:00
Alexander Udalov ae2c4753df Fix incorrect test data on KCallable.call for inline classes 2022-03-18 12:29:05 +01:00
Alexander Udalov 8b56babb1d Fix type mapping of nullable inline class types in reflection
Based on #4761.

 #KT-31141 Fixed

Co-authored-by: wrongwrong <boranti1995@gmail.com>
2022-03-18 12:29:05 +01:00
Alexander Udalov 07ebf4ed29 Do not suppress errors with -Xsuppress-version-warnings
#KT-48833 Fixed
2022-03-18 12:28:28 +01:00
Ilya Goncharov adad0b4628 [JS IR] Fix export of nested enums
Merge-request: KT-MR-5916
Merged-by: Ilya Goncharov <Ilya.Goncharov@jetbrains.com>

^KT-51211 fixed
2022-03-18 09:45:14 +00:00
Roman Golyshev 644db43e67 [FIR IDE] Filter non-implicit smart-casts in KtSmartCastProviderMixIn
Also, make `getSmartCastInfo` work more like SMART_CAST slice for
binding context

^KTIJ-21013 Fixed
2022-03-18 01:01:46 +04:00
sebastian.sellmair 1b45c00fc7 Add :kotlin-tooling-core and :kotlin-tooling-metadata to 'toolsTest' 2022-03-17 16:53:41 +00:00
sebastian.sellmair a87c2ace29 kotlin-tooling-core: Remove plugin jps-compatible 2022-03-17 16:53:41 +00:00
sebastian.sellmair f540b4bc82 KotlinToolingVersion: Evaluate maturity eagerly 2022-03-17 16:53:40 +00:00
sebastian.sellmair 6800475202 KotlinToolingVersion: Support -release in versions 2022-03-17 16:53:40 +00:00
sebastian.sellmair 87c339f637 [Minor] KotlinMetadataCompilationData: Use LinkedHashMap directly
Previously commonCompilationDataPerFragment and
nativeCompilationDataPerFragment were declared as using
`mutableMapOf`, which will not offer the necessary 'compute' function
in IDE analysis.

KT-51386
2022-03-17 15:39:55 +00:00
sebastian.sellmair 85998f8857 [KPM] Consistently use uppercase factory style for idea model builders
KT-51386
2022-03-17 15:39:55 +00:00
sebastian.sellmair 03cf978b77 [KPM] Consistently seal interfaces in :kotlin-gradle-plugin-idea
KT-51386
2022-03-17 15:39:54 +00:00
sebastian.sellmair 1a0d8f777c [KPM] Remove IdeaKotlinModuleIdentifier in favor of consistent IdeaKotlinFragmentCoordinates
KT-51386
2022-03-17 15:39:54 +00:00
sebastian.sellmair ef3a3d71b9 [KPM] Remove duplicate KotlinGradleFragmentInternal.refinesClosure
KT-51386
2022-03-17 15:39:54 +00:00
sebastian.sellmair fc0b78e106 [KPM] Share run configuration for updating kgp-idea binary reference
KT-51386
2022-03-17 15:39:53 +00:00
sebastian.sellmair e1ead6b8bf [KPM] Integrate refines dependencies into IdeaKotlinSourceDependency
KT-51386
2022-03-17 15:39:53 +00:00
sebastian.sellmair 0f8f61c373 [KPM] Introduce separate IdeaKotlinDependencyCoordinates entity
This splits IdeaKotlinSourceCoordinates from the actual
IdeaKotlinSourceDependency

KT-51386
2022-03-17 15:39:52 +00:00
sebastian.sellmair 588ea65d66 [KPM] Replace .containingModule.variantsContainingFragment with .containingVariants
KT-51386
2022-03-17 15:39:52 +00:00
sebastian.sellmair f65c61472b [KPM] Remove now unused IdeFragmentDependencyResolver
KT-51386
2022-03-17 15:39:51 +00:00
sebastian.sellmair edbf5c5cd8 [KPM] Document IdeaKotlinProjectModelBuilder
KT-51386
2022-03-17 15:39:51 +00:00
sebastian.sellmair cf19261173 [KPM] Document IdeaKotlinPlatformDependencyResolver
KT-51386
2022-03-17 15:39:51 +00:00
sebastian.sellmair e2d61e7f94 [KPM] Document IdeaKotlinDependencyTransformer
KT-51386
2022-03-17 15:39:50 +00:00