Commit Graph

1184 Commits

Author SHA1 Message Date
Mikhail Glukhikh b41ef6a807 Do not report "unused symbol" on experimental annotations
#KT-25609 Fixed
2018-08-23 18:34:59 +03:00
Mikhail Glukhikh 4113a6fd6a Extend fixes of experimental errors to property & type alias
#KT-25525 Fixed
#KT-25526 Fixed
2018-08-23 18:34:57 +03:00
Mikhail Glukhikh ef094e78e3 Add when branches (minor): 'with import' -> 'with * import'
Change name of quick-fix to more descriptive one
2018-08-20 13:21:18 +03:00
Mikhail Glukhikh b031e34f8d Add when branches: include auto-import
Before this commit, enum / sealed class to add was not imported so
user had to import them himself. Now everything is auto-imported.
Separate "add with import" is kept but * import is now in mind there.
#KT-22330 Fixed
#KT-22354 Fixed
EA-108090 Fixed
2018-08-20 13:21:17 +03:00
Mikhail Glukhikh 9a9e703e80 Do not suggest "create abstract property" inside annotation 2018-08-17 18:16:07 +03:00
Mikhail Glukhikh 04675b4446 Do not suggest "create local variable" inside primary constructor
#KT-26158 Fixed
EA-99300 Fixed
2018-08-17 18:15:47 +03:00
Toshiaki Kameyama 1898df3fb7 Introduce "Convert property getter to initializer" intention
#KT-13854 Fixed
2018-08-14 15:32:20 +03:00
Toshiaki Kameyama 6fbf6b0a93 "Let type implement interface": don't suggest same type #KT-25928 Fixed 2018-08-14 15:32:17 +03:00
Denis Zharkov 9f3a902ff3 Take into account refined applicability of dsl-marker in IDE
After the previous change, when being applied to a function type
with receiver it's assumed to work just as it's applied to receiver type

Thus, it's necessary to fix relevant IDE features relied on DSL markers

 #KT-23255 Fixed
2018-08-14 15:58:18 +07:00
Mikhail Glukhikh f4d048334f Fix test for "Remove abstract function body"
Formatting rules (probably) was slightly changed in 182 branch,
so I have to introduce bunch file for 181/173/AS here
2018-08-09 13:00:34 +03:00
Mikhail Glukhikh 87b5fca094 Fix test for "Suppress unused if annotated"
Quick-fix test was changed in 182 branch,
so I have to introduce bunch files for 181/173/AS here
2018-08-09 13:00:00 +03:00
Mikhail Glukhikh a91442cd3b Enable "add () fix" for expect base class without constructors
Related to KT-24597
2018-08-09 12:59:55 +03:00
Mikhail Glukhikh 79abf90916 Introduce "add default constructor for expect class" fix
Related to KT-24597
2018-08-09 12:59:54 +03:00
Alexey Sedunov 1f59ff1bd4 Minor: Fix test data 2018-08-08 15:32:00 +03:00
Mikhail Glukhikh 28484f31e7 Fix "Remove @ from annotation argument" (make consistent PSI)
Three relevant quick-fix tests should be fixed after it
2018-08-07 11:30:31 +03:00
Mikhail Glukhikh d7317c58e9 Move "Add test library to classpath" to irrelevant action list
This prevents inconsistencies like "Add JUnit 5.0" / "Add JUnit 5.2"
Should fix one relevant test
2018-08-06 19:04:12 +03:00
Toshiaki Kameyama 1b1e503716 Add quick-fix for default parameter value removal #KT-25146 Fixed 2018-08-03 13:17:49 +03:00
Vyacheslav Gerasimov a2bf417d75 Remove 172 bunchset 2018-08-02 19:32:18 +03:00
Dmitry Petrov acf0bb349c Update testData for restricted expression annotations retention 2018-07-20 10:39:51 +03:00
Dmitry Savvinov 76c651421b Deprecate visibility of static members inherited from Java
Now they are not visible by short name through companion objects, just
like classifiers in KT-21515

^KT-25333 In progress
2018-07-19 13:32:38 +03:00
Mikhael Bogdanov 56c535d505 Fix test data 2018-07-19 10:52:13 +02:00
Nikolay Krasko f9de91016a Inspection for experimental coroutines imports migration (KT-25251)
#KT-25251 In Progress
2018-07-17 02:22:14 +03:00
Mikhail Zarechenskiy c032a02373 Prohibit assigning single elements into varargs in named form
#KT-20588 Fixed
 #KT-20589 Fixed
2018-07-06 15:23:31 +03:00
Denis Zharkov 6f4aa2296d Implement quickfix wrapping elements in collection literal calls
#KT-25238 Fixed
2018-07-06 10:06:56 +03:00
Mikhail Zarechenskiy 5869274ff1 Disable errors in mod/rem tests that depend on language feature
Otherwise these tests will fail with LV=1.3
2018-07-05 12:59:43 +03:00
Alexander Podkhalyuzin 7ee055fccc Merge pull request #1745 from JetBrains/rr/suppressor
Introduce KotlinInspectionSuppressor
2018-07-03 14:37:39 +03:00
Mikhail Zarechenskiy 2e88f5c47d Prohibit operator mod as declaration and calls that resolved via it
#KT-24197 Fixed
2018-07-02 16:12:36 +03:00
Mikhail Glukhikh 537655a4c2 KotlinInspectionSuppressor: introduce more precise quick-fix names
Related to KT-11154, KT-25169
2018-06-29 11:58:28 +03:00
Mikhail Glukhikh a51bda64dc Add a pair of tests for KT-11154 2018-06-29 11:44:48 +03:00
Mikhail Zarechenskiy dc7678a700 Use smartcast info that related to call in change signature quick fix
There is an inconsistency on how we record smartcasts in old and new
 inference, but we definitely should use all possible information about
 smartcasts in quick-fixes

 #KT-25144 Fixed
2018-06-28 13:14:18 +03:00
Mikhail Glukhikh 152327d69d Fix erroneous full resolve cache filling
Before this commit, we could store partial resolve results in full
resolve cache (for some declarations, e.g. primary constructors).
This may be done iff current partial resolve mode provides all results
from full resolve mode (CFA results & diagnostics).
Otherwise we should not do it.

This fixes four quick-fix tests on CreateTypeParameter
So #KT-23860 Fixed
So #KT-22758 Fixed
2018-06-20 17:18:18 +03:00
Toshiaki Kameyama 1e31d24e9b Add "Remove 'const'" quickfix for TYPE_CANT_BE_USED_FOR_CONST_VAL
So #KT-24815 Fixed
2018-06-19 12:48:13 +03:00
Toshiaki Kameyama c344354395 Add quick-fix for 'is' absence in when #KT-18810 Fixed 2018-06-19 12:48:13 +03:00
Toshiaki Kameyama 2427406a8f Add 'Change to val' quickfix for delegates without setValue
So #KT-13688 Fixed
2018-06-19 12:48:13 +03:00
Toshiaki Kameyama 2669193755 Use "Move to companion" quick fix for CONST_VAL_NOT_TOP_LEVEL_OR_OBJECT
So #KT-22871 Fixed
2018-06-19 12:48:12 +03:00
Toshiaki Kameyama 6b37e40f99 Add quick-fix for type variance conflict #KT-23082 Fixed 2018-06-05 15:45:53 +03:00
Toshiaki Kameyama ddf647ae96 Remove redundant receiver in "Change function signature" quick fix
So #KT-12298 Fixed
2018-06-05 15:20:18 +03:00
Toshiaki Kameyama e770aed084 Don't suggest "Remove variable" for property with function initializer
So #KT-23752 Fixed
2018-06-05 15:17:14 +03:00
Mikhael Bogdanov 0a26f527f2 Minor. Fix test data 2018-05-29 11:26:36 +02:00
Alexey Sedunov 610cc3867b Create Class from Usage: Filter out usages in super type entry list
#KT-22918 Fixed
2018-05-25 23:03:26 +03:00
Alexey Sedunov 35517a8253 Quick Fixes: Fix adding parameter to Java constructor
#KT-24574 In Progress
2018-05-25 23:03:26 +03:00
Toshiaki Kameyama 0100dfb2fd Add "Remove 'lateinit'" quickfix for INAPPLICABLE_LATEINIT_MODIFIER
So #KT-24295 Fixed
2018-05-24 17:26:54 +03:00
Mikhail Glukhikh 4ed4754d80 Additional tests for KT-21131 2018-05-24 15:15:23 +03:00
Mikhail Glukhikh f3c2dd0526 Code inliner: keep main property if it can have side effects
So #KT-24165 Fixed
2018-05-24 15:15:22 +03:00
Mikhail Glukhikh 93a510c05b Code inliner: move lambda outside parentheses always when possible
So #KT-24215 Fixed
2018-05-24 15:15:21 +03:00
Mikhail Glukhikh 2d7e274860 Fix importing scope order in ReplaceWithAnnotationAnalyzer
So #KT-22615 Fixed
2018-05-24 15:15:13 +03:00
Mikhail Glukhikh d7bb8a7a21 Do not suggest -Xuse...=kotlin.Experimental in experimental world 2018-05-24 10:50:28 +03:00
Mikhail Glukhikh f2989ee3a6 Experimental fixes: introduce experimental enabling #KT-24243 Fixed 2018-05-24 10:50:28 +03:00
Mikhail Glukhikh c77c8d872c Experimental fixes: introduce "add -Xuse-experimental" (KT-22760) 2018-05-24 10:50:27 +03:00
Mikhail Glukhikh a76bb80e4d Experimental fixes: additional tests, handle local declarations 2018-05-23 19:06:55 +03:00