Pavel Kirpichenkov
fda8d7de8b
[IDEA-TESTS] Specify language version in feature-dependent tests
...
Some quickfixes are relying on diagnostics, that won't be reported
with new language features enabled.
`MixedNamedArgumentsInTheirOwnPosition`
`AllowBreakAndContinueInsideWhen`
2020-02-17 10:56:46 +03:00
Toshiaki Kameyama
cbdc79fcda
Add when branches: remove unnecessary blank line
...
#KT-30426 Fixed
2019-03-21 10:58:11 +03:00
Toshiaki Kameyama
57ae60e9dc
"Add else branch" on when quickfix: don't add braces #KT-5088 Fixed
2018-10-09 12:28:08 +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
Toshiaki Kameyama
fe0f44da94
Added "Add remaining branches with import" quick fix #KT-16033 Fixed
2017-09-07 16:24:35 +03:00
Toshiaki Kameyama
0a9e0ddba9
Use back-ticks correctly in "Add remaining branches" action
...
So #KT-13985 Fixed
2017-08-04 20:58:46 +03:00
fitermay
e30b9758f4
Introduce action to add missing when branches on sealed class
...
Made via diagnostics NON_EXHAUSTIVE_WHEN_FOR_SEALED_CLASS
with INFO severity and quick-fix
So #KT-17580 Fixed
2017-05-16 16:43:27 +03:00
Mikhail Glukhikh
35754a98e7
KT-17497 related: introduce fix for REDUNDANT_ELSE_IN_WHEN
2017-05-04 14:17:42 +03:00
mglukhikh
6277476573
Do not add a new label to labeled loop
...
Relevant situation: break / continue in when #KT-16128 Fixed
2017-04-05 15:40:08 +03:00
Valentin Kipyatkov
7625672914
Better test data
2016-09-23 10:07:15 +03:00
Mikhail Glukhikh
c26d7e0eba
Attach "add remaining branches" and "add else branch" fixes to NON_EXHAUSTIVE_WHEN warning #KT-12503 Fixed
2016-05-27 18:08:20 +03:00
Mikhail Glukhikh
c3cce53aa2
Quick fix "add when remaining branches" refactoring + enum / sealed generated name w/o package name
2016-01-13 12:32:14 +03:00
Mikhail Glukhikh
8b6156abd6
Quick fix "Add remaining when branches" with some tests
2016-01-12 14:33:20 +03:00
Dmitry Petrov
f0e467e474
Rewrite mixed multiple- and single-condition 'when' properly.
...
#KT-10229 Fixed
2015-11-30 14:43:03 +03:00
Dmitry Petrov
da90c21284
Warn about comma-separated conditions in when without argument.
...
See KT-5143.
2015-11-25 15:39:23 +03:00
Dmitry Jemerov
6f4cae03fe
Quickfix to add a loop label when 'break' or 'continue' is used in a loop inside 'when'
...
#KT-7202 Fixed
2015-05-13 17:26:18 +02:00
Valentin Kipyatkov
837e46a9b8
Big change in quickfix tests: no stupid test data format with "before" and "after" file prefixes
2015-05-08 22:29:42 +03:00
Alexander Udalov
0b64f028b6
Rename jet -> kotlin in idea: quickfixes
...
org.jetbrains.jet.plugin.quickfix -> org.jetbrains.kotlin.idea.quickfix
2015-01-13 01:14:36 +03:00
Valentin Kipyatkov
d01ff28212
Quickfix and intention tests refactoring: refer to intention action by class when checking that it's not available (instead of listing all available actions)
2014-01-23 18:46:27 +04:00
svtk
8defeef050
made UNREACHABLE_CODE a warning instead of error
2013-11-22 18:57:59 +04:00
Alexey Sedunov
eff62bfd83
KT-4008 'Replace if with when' is available but does not work
2013-10-11 17:24:07 +04:00
Andrey Breslav
69cc11d035
Existing tests updated according to "'Else' is not required in 'when' if Unit is expected"
2013-09-13 22:05:37 +02:00
Alexey Sedunov
d5739bbe7f
Fix negative quickfix tests which use when
2013-05-16 16:31:43 +04:00
Michał Sapalski
e9613b95ac
QuickFix for ELSE_MISPLACED_IN_WHEN.
2013-01-21 22:03:58 +04:00
Nikolay Krasko
b62fe5f5fb
Move caret into generated else branch
2012-10-25 18:55:53 +04:00
Nikolay Krasko
33240f167d
Add else entry for when quick fix
2012-10-25 18:55:52 +04:00