Ilmir Usmanov
7b14975740
Add 'value' modifier to modifier order
...
Otherwise, there will be unfixable 'non-canonical modifier order'
warning
#KT-46088
#KTIJ-5636 Fixed
2021-04-16 18:51:44 +03:00
Mark Punzalan
957f6ddafd
FIR checker: Enable ReplaceWithDotCallFix for UNNECESSARY_SAFE_CALL.
2021-04-14 22:30:42 +02:00
Mikhail Glukhikh
6ee169c01e
Rename EffectiveVisibility.Private to PrivateInClass
2021-04-08 09:41:26 +03:00
Abduqodiri Qurbonzoda
b0f1ddc91e
Advance max/min(By/With) deprecation level to ERROR
2021-04-07 07:49:23 +03:00
Tianyu Geng
4d505f4393
FIR IDE: add intention to add custom accessor to uninitliazed property
2021-04-06 13:19:00 +02:00
Tianyu Geng
6d69959bfd
FIR IDE: register quickfix to add lateinit modifier
2021-04-06 13:19:00 +02:00
Tianyu Geng
d5ea68c585
FIR IDE: add quick fix to add initializer for MUST_BE_INITIALIZED_OR_BE_ABSTRACT
2021-04-06 13:19:00 +02:00
Tianyu Geng
72f7405e4a
FIR IDE: add quickfix to add abstract modifier for MUST_BE_INITIALIZED_OR_BE_ABSTRACT
2021-04-06 13:19:00 +02:00
Ilya Kirillov
bd38363077
FIR IDE: use IGNORE_FIR instead of FIR_COMPARISON in hl quick fix tests
...
To explicitly specify which test are failing
2021-04-01 18:24:17 +02:00
Vyacheslav Gerasimov
f2a892a972
Cleanup 201 and as41 bunch files
2021-03-30 14:23:43 +03:00
Mikhail Zarechenskiy
943f03e55f
Fix add import quick fix for delegated property and missing extension
...
^KT-39199 Fixed
2021-03-30 13:58:41 +03:00
Victor Petukhov
5d78b0a962
Report resolution ambiguity on '+=' by taking into account full resolution result including post type checking for '+'
...
^KT-45503 Fixed
2021-03-30 12:12:56 +03:00
Mark Punzalan
dd20dd9806
Report WRONG_MODIFIER_TARGET on the modifier instead of the declaration
...
in ExternalFunChecker.
This allows RemoveModifierFix to provide a quickfix to remove it.
2021-03-27 22:27:36 +01:00
Mark Punzalan
062adf21de
FIR IDE: Use KtFirExpressionTypeProvider.getExpectedType() in
...
ReplaceCallFix.
2021-03-23 11:04:33 +01:00
Mark Punzalan
e9298d1d71
FIR IDE: Allow FIR-specific "after" files for
...
AbstractHighLevelQuickFixTest.
2021-03-23 11:04:33 +01:00
Mark Punzalan
164d7d80b6
FIR IDE: Enable ReplaceCallFix for UNSAFE_CALL.
2021-03-23 11:04:33 +01:00
Mark Punzalan
1b649fa4cb
FIR IDE: Generate quickfix tests related to ReplaceCallFix.
2021-03-23 11:04:33 +01:00
Mark Punzalan
c3d2ce0c1f
FIR checker/IDE: Add checker and quickfix for WRONG_MODIFIER_TARGET.
...
There are only simple checks for `external` and `const` for now. The
rest of the checks (see ModifiersChecker in FE1.0) will be added later.
2021-03-17 10:45:26 +01:00
Mark Punzalan
bb790195a2
FIR IDE: Enable ChangeVariableMutabilityFix for MUST_BE_INITIALIZED.
2021-03-11 16:31:40 +01:00
Tianyu Geng
8158a07063
FIR IDE: add quickfix for NESTED_CLASS_NOT_ALLOWED
2021-03-05 13:27:36 +01:00
Tianyu Geng
bca393bd5c
FIR IDE: Add quickfix for PRIVATE_SETTER_FOR_(OPEN|ABSTRACT)_PROPERTY
2021-03-01 19:30:31 +01:00
Ilmir Usmanov
2523ea1ef4
Do not add @JvmInline annotation on JS and Native
2021-02-25 16:07:00 +01:00
Ilmir Usmanov
2df049fc03
Minor. Remove outdated test and update maven test
2021-02-25 16:06:58 +01:00
Ilmir Usmanov
8c31fcb615
Add inline class -> @JvmInline value class intention
2021-02-25 16:06:54 +01:00
Mark Punzalan
1c94372b6c
FIR checker/IDE: Add checker and quickfix for VAL_WITH_SETTER.
2021-02-25 13:06:53 +01:00
Tianyu Geng
aec498a4ea
Add quickfixes for NON_FINAL_MEMBER_IN_FINAL_CLASS
2021-02-24 15:56:35 +01:00
Tianyu Geng
56854a8b1a
FIR IDE: register quickfix for the following
...
1. NON_ABSTRACT_FUNCTION_WITH_NO_BODY
2. ABSTRACT_PROPERTY_IN_NON_ABSTRACT_CLASS
3. ABSTRACT_FUNCTION_IN_NON_ABSTRACT_CLASS
2021-02-19 13:16:42 +01:00
Mark Punzalan
706d3e5aa8
FIR IDE: Add quickfix for VAR_ANNOTATION_PARAMETER.
2021-02-15 21:07:32 +01:00
Mark Punzalan
4e44804c77
FIR IDE: Add quickfix for INAPPLICABLE_LATEINIT_MODIFIER.
...
Also changed FE1.0 checker and all related fix factories to report error
on the declaration instead of the lateinit modifier. This is consistent
with the direction of all checkers in FIR (no reporting on modifiers).
2021-02-15 19:37:14 +01:00
Ilya Kirillov
d42cc219bf
FIR IDE: fix collecting diagnostics for raanalysable non-toplevel declarations
2021-02-12 15:25:14 +01:00
Dmitriy Novozhilov
f3a8fcaea6
[FE] Make constructors of sealed classes protected instead of internal
2021-02-12 13:36:38 +03:00
Mark Punzalan
7962224804
FIR IDE: Add quickfix for VAR_OVERRIDDEN_BY_VAL.
2021-02-11 11:11:00 +01:00
Ilya Kirillov
d72a2d39da
FIR IDE: ignore not passing quickfixes tests
2021-02-09 17:15:31 +01:00
Dmitriy Novozhilov
17230397e6
[Test] Update or drop some IDE tests about experimental coroutines
2021-01-28 13:19:34 +03:00
Dmitriy Novozhilov
a9ef8bb32f
[IDE] Update SuperClassNotInitialized to relaxed restrictions on sealed classes
2021-01-28 13:19:28 +03:00
Dmitriy Novozhilov
16e0c0b820
[Test] Update testdata of quickfix tests related to sealed classes
2021-01-28 13:19:28 +03:00
Mikhail Zarechenskiy
a33877a9b9
Fix add import quick fix for unresolved conventional invoke operator
...
After adding extension invoke on DeepRecursiveFunction in 1.4,
the compiler start reporting another error and now it doesn't write
info about callable descriptor. Therefore it's needed to use another
source of info for expression type
^KT-40926 Fixed
2021-01-22 13:57:47 +03:00
Andrei Klunnyi
eed27906e3
KT-44043 [Sealed interfaces]: tests
...
So far, quick-fix tests infrastructure neither supports the check
for multiple files (several .before/.after pairs) nor multi module
structure. Provided tests are quite limited yet allow to make sure that
the fix in question appears in expected context and get activated.
^KT-44043 fixed
2021-01-14 10:25:34 +00:00
Andrei Klunnyi
3f287d344e
KT-43941 [Sealed interfaces]: subclass intention
...
Restriction for sealed inheritors was relaxed. Instead of being nested
class members now they can be the members of the same module and
package.
2020-12-28 13:45:58 +00:00
Andrei Klunnyi
2b3fc330ad
KTIJ-664 [SealedClassInheritorsProvider]: test fixes
2020-12-16 11:35:27 +01:00
Vladimir Dolzhenko
124888eb43
Revert back AddFunctionParametersFix test data output for 201-
2020-11-28 14:25:58 +03:00
Vladimir Dolzhenko
17e6e88176
Fixed AddFunctionParametersFix test data output
2020-11-28 14:25:57 +03:00
Dmitry Gridin
a72cdeabb4
fix testData
...
^KT-40861
2020-10-27 18:58:48 +07:00
Yan Zhulanow
87574dddd9
Revert "ReplaceWith: suggest for "invoke" extension"
...
This reverts commit be194c34
2020-10-24 00:22:41 +09:00
Yan Zhulanow
383190f25e
Revert "Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function"
...
This reverts commit 73e319ca
2020-10-24 00:22:40 +09:00
Yan Zhulanow
0ae21a157f
Revert ""Change to return with label" quick fix: apply for type mismatch"
...
This reverts commit f76e9886
2020-10-24 00:22:39 +09:00
Yan Zhulanow
b18de1e3ff
Revert "Provide quickfix for specifying type of variable initialized with null"
...
This reverts commit cdf7f46c
2020-10-24 00:22:39 +09:00
Yan Zhulanow
4327bc4ac3
Revert "KT-23394: Add a test with a property"
...
This reverts commit f2dc132d
2020-10-24 00:22:38 +09:00
Yan Zhulanow
c4a48598c0
Revert ""Add parameter to function" for TYPE_MISMATCH: fix it works correctly for extension function"
...
This reverts commit 03e725d5
2020-10-24 00:22:38 +09:00
Yan Zhulanow
ab70cc35ea
Revert "Add quick fix for 'JAVA_CLASS_ON_COMPANION'"
...
This reverts commit 15a615d6
2020-10-24 00:22:37 +09:00