Toshiaki Kameyama
35459d2ca7
"Add not-null asserted (!!) call": add '!!' to receiver of function reference
...
#KT-37841 Fixed
2020-08-17 12:05:45 +03:00
Toshiaki Kameyama
efa981db36
"Create class from usage": add visibility to primary constructor if needed
...
#KT-29844 Fixed
2020-08-13 19:51:01 +03:00
Toshiaki Kameyama
f6e70cfed8
Wrap with let: fix it works correctly for invoking function type
...
#KT-39182 Fixed
2020-08-13 19:30:34 +03:00
Toshiaki Kameyama
80e4e7939d
"Create abstract function" quick fix: don't suggest it if super classes are not writable
...
#KT-40215 Fixed
2020-07-17 19:35:02 +03:00
Toshiaki Kameyama
b9a220c624
AddSuspendModifierFix: suggest in inline lambda
...
#KT-38139 Fixed
2020-07-16 18:49:29 +03:00
Roman Golyshev
5cf6b860a6
KT-39869 Add inspection for FQN usages of kotlin.browser package
...
- `kotlin.dom` does not need this because it contains only extensions
- Add test for launching whole project fix; mute it because currently it
does not pass
- The test fails because in tests `RefJavaManager` tries to create
`RefJavaFileImpl` for .kt files. It will try to use UAST, but it
does not work for JS files. In production this is disabled, so no
problems occur
2020-07-06 18:04:01 +00:00
Roman Golyshev
75de352ce2
KT-39869 Add ObsoleteKotlinJsPackagesInspection inspection
...
- This inspection allows to migrate from `kotlin.dom|kotlin.browser`
to `kotlinx.dom|kotlinx.browser` packages respectively
- This inspection is available from the import statements, and also
from the `Run migrations` action
- ^KT-39869 Fixed
2020-07-06 18:04:00 +00:00
Roman Golyshev
871bb30dbe
KT-39869 Refactor ObsoleteExperimentalCoroutinesInspection.kt
...
- We need this to reuse the logic for migration inspections
2020-07-06 18:03:58 +00:00
Toshiaki Kameyama
e31ea0c243
ReplaceWith: suggest to replace for 'get/set' operator functions
...
#KT-15944 Fixed
2020-07-03 21:10:24 +07:00
Toshiaki Kameyama
efdeb7b449
Introduce "Add '== true'" quick fix for TYPE_MISMATCH
...
#KT-39930 Fixed
2020-07-02 19:31:43 +07:00
Dmitry Gridin
86fe10ba44
AddDefaultConstructorFix: fix testData
...
#KT-20718
2020-06-30 23:22:08 +07:00
Toshiaki Kameyama
7be5410877
Add a quick fix for NO_CONSTRUCTOR error on 'expect' annotation entry
...
#KT-20718 Fixed
2020-06-30 23:22:08 +07:00
Mikhail Zarechenskiy
6efa7a51c6
Fix priority for "add import" action wrt DeprecatedSinceKotlin
2020-06-29 14:25:09 +03:00
Mikhail Zarechenskiy
a2da00eb49
Prohibit using DeprecatedSinceKotlin outside kotlin subpackage
2020-06-29 14:25:08 +03:00
Mikhail Zarechenskiy
2f55a3fa0d
Add various test for DeprecatedSinceKotlin annotation
2020-06-29 14:23:26 +03:00
Dmitry Gridin
c3b726f10a
Inline refactoring: should add explicit type argument for parameters
...
#KT-17402 Fixed
2020-06-29 07:55:20 +00:00
Ilya Gorbunov
034623f82a
Fix top level import quick fix test for JS
...
There's no longer any JS-only top level function that is not imported
by default, so I used a common non-imported top level function.
2020-06-25 18:36:04 +03:00
Ilya Gorbunov
448e0ceae1
Drop quickfix tests that relied on removed native annotation
2020-06-25 18:36:04 +03:00
Alexey Trilis
593684ecb6
Fix testdata after changing API of kotlin.browser and kotlin.dom
2020-06-24 13:38:29 +03:00
Dmitry Gridin
360a5bf348
Inline refactoring: improve resolve
...
#KT-39705 Fixed
#KT-19459 Fixed
2020-06-23 10:25:52 +00:00
Dmitry Gridin
4de582564c
ImportOptimizer: basic support for removing unresolved imports
...
#KT-32409 Fixed
Part of #KT-31331
2020-06-23 09:48:05 +00:00
Toshiaki Kameyama
4d2caa8e76
KT-33211 Quickfix "add parameter" for method references should infer functional type instead of KFunction ( #2664 )
...
* "Add parameter to function" quick fix: add function type instead of KFunction for method references
#KT-33211 Fixed
* Support suspend function references
2020-06-11 17:01:07 +03:00
Toshiaki Kameyama
957a927790
KT-15846 'Change lambda expression return type' quick fix does nothing ( #3182 )
...
* Change parameter type quickfix: fix it works correctly on property delegate
#KT-15846 Fixed
* Change parameter type quickfix: fix it works correctly when function literal has trailing comments
#KT-15846 Fixed
2020-06-11 12:07:44 +03:00
Toshiaki Kameyama
343af60cb4
Add intention to expand boolean expression
...
#KT-38597 Fixed
2020-06-02 23:52:06 +03:00
Yunir Salimzyanov
3b9000cc0c
Cleanup 191 extension files (KTI-240)
2020-06-01 18:43:10 +03:00
Yan Zhulanow
8e8171547b
Add super type in "Convert to anonymous object" test
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama
111b2945e1
"Convert to anonymous object" quickfix: false negative when interface has concrete members
...
#KT-37908 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama
6868f53f46
"Change JVM name" (@JvmName) quickfix: improve name suggester for generic functions
...
#KT-38559 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama
cea879cbd5
"Make containing function suspend" quickfix: don't suggest for anonymous function
...
#KT-38948 Fixed
2020-06-01 21:42:02 +09:00
Yan Zhulanow
18070303d5
Update test data (KT-32511)
2020-05-27 02:38:42 +09:00
Toshiaki Kameyama
f6a13df388
Add quick fix for AMBIGUOUS_SUPER
...
#KT-5271 Fixed
2020-05-27 02:38:42 +09:00
Toshiaki Kameyama
19d1532dc7
AddFunctionParametersFix: use argument name as parameter name if argument is referenced variable
...
#KT-14021 Fixed
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
8b8059acdd
Add quick fix for MANY_IMPL_MEMBER_NOT_IMPLEMENTED
...
#KT-17121 Fixed
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
21d6d50241
Create class quick fix: suggest on supertype entry
...
#KT-32511 Fixed
2020-05-27 02:38:41 +09:00
Toshiaki Kameyama
4973d3c359
"Create enum constant" quick fix: handle trailing comman correctly
...
#KT-36461 Fixed
#KT-36462 Fixed
2020-05-27 02:38:41 +09:00
Dmitry Gridin
499a02ebe3
AddThrowsAnnotationIntention: improve for mpp
...
#KT-38391 Fixed
2020-05-20 02:19:10 +00:00
Dmitry Gridin
7b079a5f1c
Deprecated symbol usages: fix test
2020-05-20 09:04:46 +07:00
Dmitry Gridin
12217ef2ab
Add regression test for ReplaceWith
...
#KT-35015 Fixed
2020-05-19 16:15:13 +07:00
Toshiaki Kameyama
02c17378b1
Replace deprecated symbol usage: replace imported object function correctly
...
#KT-33951 Fixed
2020-05-19 15:40:59 +07:00
Dmitry Gridin
50506658c0
fix some tests for as36
2020-05-08 19:13:28 +07:00
Dmitry Gridin
ee0b7426c4
KotlinFunctionCallUsage: fix psi tree
...
#KT-38632
2020-05-07 12:36:44 +00:00
Dmitry Gridin
11a3482970
tests: apply official code style
...
#KT-38632 Fixed
2020-05-07 12:36:44 +00:00
Toshiaki Kameyama
bcefee0105
Replace deprecated symbol usage: do not add 'this' receiver for imported object function
...
#KT-26361 Fixed
2020-04-29 20:19:41 +07:00
Dmitry Gridin
2b8bb30744
Change signature: fix formatting for long qualifier names
...
#KT-12878 Fixed
2020-04-28 11:58:16 +00:00
Dmitry Gridin
c91089be59
AddJvmNameAnnotationFix: fix case with top-level functions
...
#KT-17209 Fixed
2020-04-24 18:53:11 +07:00
Toshiaki Kameyama
f494b4ce11
Add 'Add JvmName annotation' quick fix for CONFLICTING_JVM_DECLARATIONS
...
#KT-17209
2020-04-24 18:53:10 +07:00
Toshiaki Kameyama
eff57001dc
Create secondary constructor: fill 'this()' arguments
...
#KT-11865 Fixed
2020-04-16 17:04:09 +02:00
Toshiaki Kameyama
1b0fac4a67
Add quick fix for PROPERTY_TYPE_MISMATCH_ON_OVERRIDE on constructor parameter
...
#KT-29934 Fixed
2020-04-15 21:32:29 +02:00
Toshiaki Kameyama
8c4fdd1edd
Unused import: do not report for 'invoke' function import that is used from same file
...
#KT-24281 Fixed
2020-04-15 14:00:41 +02:00
Toshiaki Kameyama
8aa120576b
Add quick fix for TOPLEVEL_TYPEALIASES_ONLY
2020-04-15 13:28:37 +02:00