Nikita Bobko
39fa2b0baf
Delete Kotlin IntelliJ IDEA plugin sources
...
Kotlin plugin sources were migrated to intellij-community:
https://github.com/JetBrains/intellij-community/tree/master/plugins/kotlin
Preserve `jps-plugin/testData/incremental`
because it's used in `compiler/incremental-compilation-impl/test`
Preserve `idea/testData/multiModuleHighlighting/multiplatform`
because it's used in `MppHighlightingTestDataWithGradleIT`
2021-07-21 11:23:43 +02:00
Mikhail Glukhikh
d8417fd622
Introduce -opt-in stable compiler option instead of -Xopt-in
...
#KT-47099 Fixed
2021-07-12 21:26:18 +03:00
Ivan Kochurkin
59257e47c9
[FIR] Implement FUNCTION_CALL_EXPECTED
2021-06-29 22:39:22 +03:00
Ivan Kochurkin
92d7a61b4f
[FIR] Implement INCONSISTENT_TYPE_PARAMETER_VALUES, INCONSISTENT_TYPE_PARAMETER_BOUNDS
2021-06-29 02:00:09 +03:00
Ivan Kochurkin
ec20f52707
[FIR] Implement EXPANDED_TYPE_CANNOT_BE_INHERITED, PROJECTION_IN_IMMEDIATE_ARGUMENT_TO_SUPERTYPE
...
Add `starAsModifier` to `modifierSetPosition`
2021-06-29 02:00:08 +03:00
Ivan Kochurkin
5741374883
[FIR] Report UPPER_BOUND_VIOLATED only on checkers stage, fix detection of missing cases and testData
2021-06-25 20:57:45 +03:00
Dmitry Savvinov
fa869c2c2a
Add test on KT-46936
2021-06-25 15:17:06 +03:00
Tianyu Geng
84f8d4d315
FIR IDE: handle reference to package and outer classes
...
For a qualified name like `foo.bar.Outer.Inner`, FIR represents it as
one atomic FIR element. Hence, to properly resolve these names to the
corresponding package and class, we need some additional work.
2021-06-24 18:27:51 +02:00
Tianyu Geng
45ccec3b64
FIR IDE: Add HLAddWhenRemainingBranchesIntention
2021-06-24 18:26:20 +02:00
Tianyu Geng
63c65edda2
FIR IDE: AddWhenRemainingBranchFix
...
The fix reuses logic that is already available from
FirWhenExhaustivenessTransformer to collect missing when branches. The
current logic unfortunately uses hackyAllowRunningOnEdt to shorten the
generated code.
2021-06-24 18:26:18 +02:00
Tianyu Geng
5a1223e812
FIR IDE: don't add return for when expressions when converting to block
...
There doesn't seem to be a good reason why FE1.0 does this. Hence we
won't do it in FIR.
2021-06-23 22:22:15 +03:00
Tianyu Geng
55e7cc7ea3
FIR IDE: add HLConvertToBlockBodyIntention
2021-06-23 22:22:14 +03:00
Tianyu Geng
3aa6cb25ba
FIR IDE: Add ImportMemberIntention
2021-06-23 22:22:12 +03:00
Tianyu Geng
66d44f2471
FIR IDE: Add ImportAllMembersIntention
2021-06-23 22:22:10 +03:00
Tianyu Geng
22fbd2044c
FIR IDE: make ref shortener strictly follow range restriction
2021-06-23 22:22:08 +03:00
Tianyu Geng
726d141589
FIR IDE: Add fine-grained control to KtReferenceShortener
...
This change makes it possible to control how references to a symbol should be shortened.
2021-06-23 22:22:07 +03:00
Andrei Klunnyi
89801a1ac7
KT-44841 Move sealed: no warning on splitting hierarchy (JPS)
...
To provide similar behavior for both Gradle and JPS projects target and
source directories are now taken into account.
Prior to this commit AbstractMoveTest.kt contained a hack allowing not
to create empty target directories. It breaks updated logic of the move
check and therefore is removed.
To commit empty target directories under 'before' to git one needs to
put something in them (git ignores dirs otherwise). Hence .gitignore-s.
^KT-44841 Fixed
2021-06-21 09:51:17 +00:00
Ilya Kirillov
87c6ab493b
FIR IDE: mute some highlighting tests
...
They may fail if they run separately
2021-06-21 04:15:37 +02:00
Igor Yakovlev
8012429e31
[FIR IDE] Fix loop inheritance tests
2021-06-19 19:23:23 +02:00
Ilya Kirillov
8c69913640
FIR IDE: temporary ignore failing intention tests
2021-06-17 17:27:00 +03:00
Mark Punzalan
97c10b0b84
FIR IDE: Change PSI element type for NO_COMPANION_OBJECT and
...
EXPRESSION_EXPECTED_PACKAGE_FOUND from KtSimpleNameExpression to
KtExpression (source can be KtDotQualifiedExpression).
2021-06-17 17:26:58 +03:00
Yaroslav Chernyshev
6e9739caec
Add regression test for MPP android source set with resources
2021-06-16 09:32:45 +03:00
Ilya Kirillov
39e2df6916
FIR IDE: render unresolved types as qualifiers for member generator
2021-06-16 01:17:44 +03:00
Tianyu Geng
f6078b24df
FIR IDE: AddToString quickfix
2021-06-15 20:19:53 +02:00
Tianyu Geng
4bedf41f9c
FIR IDE: RemoveNulalbleFix quickfix
2021-06-15 20:19:52 +02:00
Ilya Kirillov
7d7782e8ff
Fix FE1.0 intention test
2021-06-12 23:53:46 +03:00
Mark Punzalan
9b5f754e75
FIR IDE: Enable add accessors quickfix for MUST_BE_INITIALIZED.
...
Also added diagnosticFixFactoriesFromIntentionActions() to share
quickfix-creation across multiple diagnostics with the same PSI.
2021-06-12 23:53:44 +03:00
Mark Punzalan
cd6dbd2515
FIR IDE: Assert that the action to invoke in
...
AbstractHighLevelQuickFixTest is of type QuickFixActionBase.
2021-06-12 23:53:43 +03:00
Mark Punzalan
91e62832ee
FIR IDE: Add applicability range to HLAddAccessorIntention (copied from
...
FE 1.0's logic) and actually check the range in AbstractHLIntention.
2021-06-12 23:53:40 +03:00
Mark Punzalan
a497dd1d31
FIR IDE: Enable add accessor intentions in plugin.
2021-06-12 23:53:39 +03:00
Ilya Kirillov
c4b1fa8ec0
Fix FE1.0 plugin testdata after adding // IGNORE_FIR directive
2021-06-10 19:05:33 +02:00
Tianyu Geng
90a0c9bb25
FIR IDE: quickfix to add override keyword
...
Also enables more tests that covers previous quickfixes
2021-06-10 19:05:33 +02:00
Tianyu Geng
ce767046eb
FIR checkers: report SMARTCAST_IMPOSSIBLE
2021-06-10 16:01:13 +03:00
Mark Punzalan
befa8aaac7
FIR IDE: Enable add initializer quickfix for MUST_BE_INITIALIZED.
2021-06-09 22:49:56 +03:00
Mark Punzalan
2773506f4c
FIR IDE: Don't offer AddExclExclCallFix when expression is definitely
...
null.
2021-06-09 22:49:52 +03:00
Mark Punzalan
c6427d57f1
FIR IDE: Enable AddExclExclCallFix for ASSIGNMENT_TYPE_MISMATCH and
...
INITIALIZER_TYPE_MISMATCH.
2021-06-09 22:49:50 +03:00
Nikolay Krasko
a4005cef19
Build: Drop ultimate, cidr and kmm from the build (KTI-563)
2021-06-09 17:43:52 +03:00
Aleksei.Cherepanov
35c067b215
Fix import for JPS build of Kotlin repo
...
Changed link of configuration on TC for getting artifacts
from "Compiler Dist (202) and Maven Artifacts"
to "Kotlin / Kotlin Public / Aggregate"
2021-06-08 22:01:31 +03:00
Mikhail Glukhikh
0a670bf055
Report EXPERIMENTAL_API diagnostics on various implicit usages
...
#KT-32443 Fixed
#KT-22852 Fixed
2021-06-08 11:37:28 +03:00
Denis.Zharkov
0aca3a3737
FIR: Adjust test data after introduction of INFERENCE_NO_INFORMATION_FOR_PARAMETER
...
See previous commits for details
2021-06-07 15:25:47 +03:00
Ivan Kochurkin
c4c2fbb5a0
[FIR] Implement RECURSIVE_TYPEALIAS_EXPANSION, CYCLIC_INHERITANCE_HIERARCHY diagnostics, fix stackoverlow exception in case if typealias points to type with type arguments
2021-06-03 20:41:58 +03:00
Mark Punzalan
d1531f9cdd
FIR: Choose a resolved candidate for augmented assignment when both
...
assign and operator candidates are unsuccessful.
2021-06-03 20:18:04 +03:00
Mark Punzalan
32bb64a225
FIR: Report UNSAFE_OPERATOR_CALL for augmented assignments (was
...
reporting UNSAFE_CALL).
2021-06-03 20:18:03 +03:00
Mark Punzalan
ef923d4cfe
FIR IDE: Enable ReplaceInfixOrOperatorCallFix for
...
UNSAFE_IMPLICIT_INVOKE_CALL.
2021-06-03 20:18:02 +03:00
Mark Punzalan
6de1000818
FIR: Report UNSAFE_INFIX_CALL for all infix-style calls, even if the
...
candidate is not an infix function.
This mirrors FE 1.0 (see
`AbstractTracingStrategy.reportUnsafeCallOnBinaryExpression()`) and
allows consistent handling for quickfixes on infix calls.
2021-06-03 20:18:01 +03:00
Mark Punzalan
ca7649edbb
FIR IDE: Enable ReplaceInfixOrOperatorCallFix for UNSAFE_CALL,
...
UNSAFE_INFIX_CALL, UNSAFE_OPERATOR_CALL.
2021-06-03 20:17:59 +03:00
Mark Punzalan
5a7f4ffc99
FIR IDE: Enable tests for ReplaceInfixOrOperatorCallFix.
2021-06-03 20:17:58 +03:00
Mark Punzalan
afeeec3091
IDE: Move ReplaceInfixOrOperatorCallFix to idea-frontend-independent.
2021-06-03 20:17:57 +03:00
Mark Punzalan
5a6d543fba
IDE: Don't do any resolution in ReplaceInfixOrOperatorCallFix.invoke().
2021-06-03 20:17:56 +03:00
Ilya Kirillov
edbfff71e9
FIR IDE: fix shortenings for enums
2021-06-03 19:39:05 +03:00