Commit Graph

467 Commits

Author SHA1 Message Date
Vladislav.Yaroshchuk
0c223d7960 IDEA-269182 IJI-1182 kotlin/project-model-updated: checksums and bind repositories support
GitOrigin-RevId: c1b270ed3f8e2ee8487a1f748cfaf80f6049d779
2023-06-23 14:48:16 +00:00
aleksandrina-streltsova
0a3d6756b9 [kotlin] advance compiler version to 1.9.20-dev-4794
GitOrigin-RevId: 6226096a759fdebfce87688341bbcd30c511fc10
2023-06-23 06:20:42 +00:00
aleksandrina-streltsova
02312f9759 [kotlin] advance compiler version to 1.9.20-dev-4715
GitOrigin-RevId: a2b840588b0b91cd9a75b0190abdf9e84ce89106
2023-06-22 16:34:10 +00:00
aleksandrina-streltsova
5050262224 Merge commit '77d71f8fea5675891810fc3b8cf9c72c64cfdf2a'
GitOrigin-RevId: 1a498795c741870e016adbd9c31082ae1e270655
2023-06-22 16:26:36 +00:00
Jinseong Jeon
91ff3e17cb FIR/UAST: test conversion of LC for .kts to UClass
GitOrigin-RevId: 3d61bf3a2f33567b956f825cd87e35cad8083c47
2023-06-21 09:09:49 +00:00
Pavel Kirpichenkov
88bfd73cf2 [MPP, tests] Update test KGP version to 1.9.20-dev-3234
KTIJ-25808

GitOrigin-RevId: 520b94b6fba91e26f141eeb1f05ee8df2ebdfd72
2023-06-19 09:55:11 +00:00
Roman Golyshev
2c5435cb07 [kotlin] Restore cooperative development in the 'kt-master' branch
GitOrigin-RevId: 36bf1084b5c3f71aa8bcbf677434cd4dfde30e59
2023-06-14 14:47:09 +00:00
Roman Golyshev
20d64d6540 [kotlin] Update bundled Kotlin compiler to 1.9.20-dev-3857
GitOrigin-RevId: c389425f5db6906e0870007df0c72f753346622b
2023-06-14 12:02:29 +00:00
Roman Golyshev
26b0570091 Merge branch 'kt-master' into fedochet/kt-master-merge
GitOrigin-RevId: 354d4e5385be06da1372876cd97af45d0cef56e2
2023-06-14 12:02:28 +00:00
Toshiaki Kameyama
c55153f1da [kotlin] "Redundant 'if' statement" inspection: support "Ignore chained 'if' statements" option
^KTIJ-25672 Fixed

closes https://github.com/JetBrains/intellij-community/pull/2475

GitOrigin-RevId: 791ae23fd37745780629336f0e655af535b11fd8
2023-06-09 13:38:24 +00:00
Yan Zhulanow
2900c8b61e [kotlin] Restore cooperative development in the 'kt-master' branch
GitOrigin-RevId: 505d2a0d7cad00af1bf1ae0a1df1f31319ba6cf4
2023-06-08 13:57:45 +00:00
Yan Zhulanow
efa7a1d228 [kotlin] Update bundled Kotlin compiler to 1.9.20-dev-3384
GitOrigin-RevId: 664e1aa3e6e03b9467906b1fd9dbfa101573ad73
2023-06-08 11:02:44 +00:00
Yan Zhulanow
b58ced47d0 Merge commit '318eb2b6c15ce28128fa3359f5ff893ca1e8edfd'
GitOrigin-RevId: 9fa6ec111423874267f744abf738b20d613285e7
2023-06-08 11:02:37 +00:00
Anna Kozlova
77f7380a72 [kotlin] k2: enable goto type declaration
- rewrite implementation to use analysis api
- use same test data for k1 and k2
- in k1 case, targetElement can be whitespace when implicit lambda parameter is not resolved (kept untouched)

GitOrigin-RevId: b14bef43c62540ce37d101c171ccedfd32de920a
2023-06-07 21:46:59 +00:00
Bart van Helvert
eb0aa72395 [kotlin] Add test infrastructure for testing move refactoring
No tests for now, should be enabled when tests start working. ^KTIJ-23273

GitOrigin-RevId: de325f0bf0864be3cc9a91f144bd98dbe6d68d23
2023-06-06 19:16:18 +00:00
Pavel Kirpichenkov
71608e3d58 [MPP, tests] Update test KGP version to 1.9.20-dev-2357
KTIJ-25668

GitOrigin-RevId: 61f91fdf6effc64b0d31ec16d4a4a36880ae2ba5
2023-05-31 11:18:39 +00:00
Vladimir Dolzhenko
4bba0e010a [kotlin] restore cooperative development in kt-master branch
GitOrigin-RevId: 0ff628b01cec544f72b0f36c6b22a29969215637
2023-05-31 10:59:31 +00:00
Vladimir Dolzhenko
3fc140c79d [kotlin] advance compiler version to 1.9.20-dev-2616
GitOrigin-RevId: 964177e7238812463d94c50f7bc0a8097b9d3938
2023-05-30 18:10:03 +00:00
Vladimir Dolzhenko
afe8092dc2 Merge commit '2ccf2bb0272952071b7d6caa67ff5d0f4b130515'
GitOrigin-RevId: d8334ba56c825499bb63c1aa391dfc91c1cf2361
2023-05-30 17:01:19 +00:00
Andrei Klunnyi
52f5c3ca8c [kotlin] KTIJ-21108 K2: support of highlighting/completion in .gradle.kts files
^KTIJ-21108 fixed

GitOrigin-RevId: 4079c0e3ecded91d3008e4f35fbe4dc50cbde2f6
2023-05-26 12:49:24 +00:00
Justin Paupore
b749b4ce85 Port ParcelMigrateToParcelizeQuickFix to K2.
This is the only quickfix that requires analysis. The analysis-related
code has been split out into a resolver object that, given a context
object (BindingContext for K1, KtAnalysisSession for K2), answers
analysis queries.

^KTIJ-25177

GitOrigin-RevId: 42f68cebbc9bb62d8435d0d86720f97a4d05bba3
2023-05-25 19:52:45 +00:00
Justin Paupore
b1feb40fa6 Add PSI-only quickfixes for K2.
For quickfixes that do not rely on analysis (everything except
ParcelMigrateToParcelizeQuickFix), register those quickfixes against the
diagnostics generated by the K2 Parcelize plugin.

^KTIJ-25177

GitOrigin-RevId: 9a11c28db219459adc4bbe5895faf21e46d38d4a
2023-05-25 19:52:38 +00:00
Justin Paupore
7157b08ea9 Split K1 Parcelize tests into module.
This is in preparation for adding K2 tests.

^KTIJ-25177

GitOrigin-RevId: 13bfa3883b47a380e5028c99fbcc84205bab2662
2023-05-25 19:52:31 +00:00
Justin Paupore
8e490c6446 Rearrange inspection and quickfix tests.
- Move AbstractInspectionTest to the inspections package, and
  AbstractQuickFixTest to the quickfix package.
- Move AbstractK2QuickFixTest to the quickfix package, so that
  parcelize can use this for K2 parcelize tests.

^KTIJ-25177

GitOrigin-RevId: aaaee3f48997ca54e5929ab53ea3e1987aad448c
2023-05-25 19:51:46 +00:00
Yan Zhulanow
bbc4f52bf0 [kotlin] Add tests for diff file highlighting
^KT-57559 Fixed

GitOrigin-RevId: ae52d98e84080e40dadb394467a2f56f39a14933
2023-05-16 10:42:12 +00:00
Nikita Bobko
164e7fd836 3/3 Provide RemoveUseSiteTargetFix for useless use-site get annotation target
^KTIJ-25002 Fixed
Review: https://jetbrains.team/p/ij/reviews/106177

GitOrigin-RevId: 07ab7d005b23abe8263022a3d411c31a0df3a723
2023-05-15 18:56:13 +00:00
Nikita Bobko
00c6ad25a3 1/3 Refactoring: make RemoveAnnotationFix frontend independent
^KTIJ-25002 Fixed
Review: https://jetbrains.team/p/ij/reviews/106177

Previously it could be used only in K1, now it can be used in K1 & K2.
The refactoring is needed for the next two commits

GitOrigin-RevId: 8adc26ae580e7ad8d74ea4ce2b5de866c9bf3b03
2023-05-15 18:56:11 +00:00
Sebastian Sellmair
05d5a166f5 [KTIJ-25507] Advance test KGP version to 1.9.20-dev-1095
GitOrigin-RevId: 7997e934baa4b5c496de51d732701913af187112
2023-05-10 17:07:23 +00:00
Anna Kozlova
1300e50506 [kotlin] restore cooperative development in kt-master branch
GitOrigin-RevId: 7f17213f2ee26ce794735d5f41dbe1501652bcdb
2023-05-10 10:12:06 +00:00
Anna Kozlova
da2c30da41 [kotlin] advance compiler version to 1.9.20-dev-1103
GitOrigin-RevId: 7b0ee741db8f9d2fb5b21c1a25c620a9540bc6dc
2023-05-10 08:24:58 +00:00
Anna Kozlova
f0323143a1 Merge commit '9894dedb5fb206e1e7c9a8e27455b89845a2a9e4'
GitOrigin-RevId: acd87ce2cccfa36e2541d1b859aaf97feb8e1a6b
2023-05-10 08:00:21 +00:00
Ilya Kirillov
6251242e6d Revert "[kotlin][k2] temporary disable RemoveRedundantQualifierNameInspection"
This reverts commit 238cf173586dc57283e00151063653a21729d1ea.

GitOrigin-RevId: 2b598b9a46db7868bc0a632ea5ade875ee927f85
2023-05-04 15:29:37 +00:00
Andrey Cherkasov
f07f97efce [kotlin] Port ConvertBinaryExpressionWithDemorgansLawIntention for K2
#KTIJ-25460 Fixed

GitOrigin-RevId: 2bd510dbc14cf701cb11a3798d44e6d4004bfe73
2023-05-04 14:49:23 +00:00
Justin Paupore
950ccbeb8c Fix bug in project model updater.
The filter that removed existing kotlinc libraries during project model
update was looking at whether the _contents_ of the file began with
`kotlinc_`, rather than whether the _name_ did so. This meant that
libraries that were removed would not have their library XML files
deleted.

GitOrigin-RevId: 900b68e8c5587b40b4fcd5d1964c17a5df25f5c5
2023-05-04 11:18:47 +00:00
Sebastian Sellmair
dabce8eeec [KTIJ-25223] Advance test KGP version to 1.9.20-dev-293
This build enables Multiplatform/Android SourceSetLayout V2 by default

GitOrigin-RevId: 322d3dbd521f5894fd400689a98e74edfee6a696
2023-05-03 14:18:47 +00:00
Pavel Kirpichenkov
0265609e7f [KTIJ-25223] Advance test KGP version to 1.9.0-dev-6976
GitOrigin-RevId: 3c61b9f9a1642f269b9aff5b3fa530202f6bc233
2023-05-03 14:18:46 +00:00
Maksim Zuev
4e34fefbaa [debugger] Add tests for KTIJ-25077
GitOrigin-RevId: b0d734a55a7b9d53b628e662bbd510ac8dd442c2
2023-05-02 09:29:59 +00:00
aleksandrina-streltsova
d5194127c0 [kotlin k2] Completion: filter out shadowed callables
^KTIJ-23711 Fixed

GitOrigin-RevId: 8b1df46bfea0031aa2f2092812cef25bb5612b00
2023-04-27 09:17:31 +00:00
EgorKulikov
7f165aa91e [kotlin] Change version back master to kt-master
GitOrigin-RevId: d957ed61f9669dd9c758d968bdd04d0e440bb2c0
2023-04-26 15:56:30 +00:00
EgorKulikov
f77ef4cfd6 [kotlin] Merge kt-master
GitOrigin-RevId: 1fa0ad85ebe718be01cb1d2aa5affeb17b1af92b
2023-04-26 15:23:34 +00:00
EgorKulikov
a5fa2d96c5 [kotlin] Update kotlin version
GitOrigin-RevId: ee671818df6fe53cd05bf9d61b33d10a9361feb3
2023-04-26 13:08:11 +00:00
EgorKulikov
b56b9a544c [kotlin] Merge kt-master
GitOrigin-RevId: d2e42a0fa0ef6b9007c2bf68845c987f3527a962
2023-04-26 13:05:05 +00:00
Ilya Kirillov
1afc9e0119 [Kotlin] add tests for declarations completion from resolve extensions
^KT-58262

GitOrigin-RevId: 88cff1328020f80064ba1c23ee2a790494403166
2023-04-25 23:42:31 +00:00
Frederik Haselmeier
ab5a64267d [kotlin] Update bundled Kotlin JPS plugin
^KTIJ-25235 fixed

Merge-request: IJ-MR-106714
Merged-by: Frederik Haselmeier <Frederik.Haselmeier@jetbrains.com>

GitOrigin-RevId: 4ac2abbbe3bffaa040b71028e306971f1eda1922
2023-04-25 20:13:01 +00:00
Yan Zhulanow
041dbae242 [kotlin] Add cross-library reference resolution tests (KTIJ-23073)
GitOrigin-RevId: cf8755577395c86fade5057b73708ccc02dd4a75
2023-04-24 11:00:16 +00:00
Yan Zhulanow
960afa503c [kotlin] Add reference resolution tests for both decompiled libraries and libraries with sources
GitOrigin-RevId: f01d179d985ab1a831b0a172908c0152f71dcb6a
2023-04-24 11:00:16 +00:00
Yan Zhulanow
9826bce842 [kotlin] Prepare reference resolution tests for cross-library module setup
Put both library and source files to specific directories, so they can be treated as library sources.

GitOrigin-RevId: bb19931e26b1592b8bbec3c1530f112d7511aec1
2023-04-24 11:00:16 +00:00
Dmitrii Gridin
6de081eb5e [kotlin][project model updater] add more cache redirector
GitOrigin-RevId: 26233a816896596b4da95dde291dde5132c59e3b
2023-04-20 09:13:46 +00:00
Dmitrii Gridin
4514657feb [kotlin][k2] temporary disable RemoveRedundantQualifierNameInspection
KtReferenceShortener should be investigated

^KT-56543

GitOrigin-RevId: 238cf173586dc57283e00151063653a21729d1ea
2023-04-19 20:13:04 +00:00
Ilya Kirillov
ce59ba3e31 Update kotlin compiler version, so it includes the Kotlin PSI stubs updates
It's the previously merged 1.9.0-dev-6335 + 04eb02085a

GitOrigin-RevId: a8d3cd7df99cbd6b928f162407c3d316a0129871
2023-04-19 18:23:57 +00:00