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
Toshiaki Kameyama
15a615d63b
Add quick fix for 'JAVA_CLASS_ON_COMPANION'
...
#KT-29264 Fixed
2020-10-23 15:46:53 +09:00
Toshiaki Kameyama
03e725d5da
"Add parameter to function" for TYPE_MISMATCH: fix it works correctly for extension function
...
#KT-39557
2020-10-23 15:46:52 +09:00
Yan Zhulanow
f2dc132d5d
KT-23394: Add a test with a property
2020-10-23 15:46:51 +09:00
Toshiaki Kameyama
cdf7f46ce1
Provide quickfix for specifying type of variable initialized with null
...
#KT-23394 Fixed
2020-10-23 15:46:51 +09:00
Toshiaki Kameyama
f76e98868c
"Change to return with label" quick fix: apply for type mismatch
...
#KT-32280 Fixed
2020-10-23 15:46:51 +09:00
Toshiaki Kameyama
73e319ca7a
Replace with ordinary assignment: do not suggest when operator is augmented assignment operator function
...
#KT-34715 Fixed
2020-10-23 15:46:50 +09:00
Toshiaki Kameyama
be194c3460
ReplaceWith: suggest for "invoke" extension
...
#KT-8597 Fixed
2020-10-23 15:46:49 +09:00
Dmitry Savvinov
f50851a982
Fix testdata after migrating to NewKotlinTypeCheckerImpl in OverrideResolver
...
- In kt10409 both 'pipe'-declarations contain error type.
NewKotlinTypeChecker in OverrideResolver considers error types as equal,
thus they are matched as bound declarations, thus 'IterablePipeline'
isn't considered to contain abstract member, thus no suggestion to add
abstract modifier.
Because initially test was covering purely technical issue of working
with error types, instead of removing it completely the additional
abstract member has been added
- in kt10808 we don't add explicit type anymore because
'noTypeInference' is false, because both expected type and actual type
are error-types, and KotlinIntroduceVariableHandler explicitly uses type
checker with 'errorTypesEqualToAnything=false'.
Also, this change might be ultimately seen as small improvement, because
if one extracts something with error type, they would certainly prefer
it to have a proper type as soon as errors are resolved (i.e. additional
code/imports written), rather than having a useless Any-type.
2020-10-09 13:44:06 +03:00
Toshiaki Kameyama
5abb6bc7a5
Add quickfix for SENSELESS_NULL_IN_WHEN to remove redundant when branch
...
#KT-24556 Fixed
2020-09-29 23:58:29 +09:00
Toshiaki Kameyama
668473c337
Add quickfix for CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT to remove const modifier
...
#KT-35215 Fixed
2020-09-29 23:58:28 +09:00
Toshiaki Kameyama
75e8849c94
Add quick fix for INLINE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER
...
#KT-34533 Fixed
2020-09-29 23:58:26 +09:00
Toshiaki Kameyama
330502a0a6
KT-22665 "Create object" quick fix produce wrong code for enum ( #2883 )
...
* "Create object" quick fix: do not suggest for enum
#KT-22665 Fixed
2020-09-28 14:02:10 +02:00
Toshiaki Kameyama
14bdcb1e26
"Create enum constant" quick fix: suggest if expected type is Any
...
#KT-22666 Fixed
2020-09-25 15:57:11 +02:00
Yan Zhulanow
15b2850ee0
Parcelize: Add IDE support for the Parcelize compiler plugin with sources extracted from Android Extensions plugin (KT-40030)
2020-09-24 15:50:57 +09:00
Toshiaki Kameyama
f20a6b7fe1
Change function signature: add/change receiver type
...
#KT-21799 Fixed
2020-09-22 18:07:24 +02:00
Toshiaki Kameyama
c09c0468d4
Replace deprecated symbol usage: move named lambda argument outside parentheses
...
#KT-31523 Fixed
2020-09-22 10:51:36 +02:00
Victor Petukhov
fca6436170
Fix IDE test after bcd33da6f8
2020-09-11 13:51:15 +03:00
Vladimir Dolzhenko
eb3bde1538
Amend test data after adding Convert assignment to assignment expression intention
...
Relates to #KT-22420
2020-09-03 21:38:46 +02:00
Vladimir Dolzhenko
d4ef85f6c2
Amend test data after adding Convert assignment to assignment expression intention
...
Relates to #KT-22420
2020-09-03 18:04:55 +02:00