Commit Graph

43 Commits

Author SHA1 Message Date
Toshiaki Kameyama 1d39ac1d3e Move statement: do not move when function last parameter is on same line as right parenthesis
#KT-14757 Fixed
2020-05-15 15:02:58 +02:00
Toshiaki Kameyama 8a595ad165 Move statement: Add or remove empty lines correctly
#KT-14946 Fixed
2020-05-14 18:57:56 +02:00
Toshiaki Kameyama 3c1b41c020 Move statement: move into lambda correctly
#KT-17887 Fixed
2020-05-09 22:08:02 +02:00
Toshiaki Kameyama 19824201e2 Move statement: do not move into lambda beyond 'if/when/try/for/while'
#KT-9065 Fixed
2020-05-09 22:08:02 +02:00
Dmitry Gridin 36ebbc49f4 KotlinExpressionMover: trailing comma support
#KT-34744
2020-02-25 17:13:43 +07:00
Toshiaki Kameyama f7ff397a31 Move statement: enable single lambda expression function
#KT-10478 Fixed
2019-11-29 11:33:27 +03:00
Toshiaki Kameyama bfa6c7d399 Move statement: don't move declarations above package and import directives 2019-11-28 11:20:09 +03:00
Natalia Selezneva 064689b6b7 Merge pull request #2467 from t-kameyama/KT-14756
KT-14756 Move statement down breaks code in argument list
2019-09-30 13:19:07 +03:00
Nikolay Krasko fc4865a440 Don't extend to comments when a comment is being moved (KT-23461) 2019-09-16 16:57:48 +03:00
Toshiaki Kameyama ed28a06285 Move statement: move expression over comments (KT-23461)
#KT-23461 Fixed
2019-09-16 16:57:48 +03:00
Toshiaki Kameyama 7b8abc5457 Move statement: enable expression ended with semicolon (KT-8581)
#KT-8581 Fixed
2019-09-16 16:26:02 +03:00
Toshiaki Kameyama 399db0d3c7 Move statement: fix comma placement for argument/parameter
#KT-14756 Fixed
2019-07-18 18:44:40 +09:00
Toshiaki Kameyama 9d6b36c249 KT-20282 'Move statement up' works incorrectly for statement after 'finally' block if 'try' block contains closure 2018-03-20 20:39:17 +03:00
Toshiaki Kameyama 3f96e1dabc Move statement up/down fails for multiline declarations with lambdas (KT-21013)
#KT-21013 Fixed
2018-03-05 16:10:59 +03:00
Nikolay Krasko 8d226594ff Put comments and whitespaces under body in script files
It's more consistent to normal function body for IDE.
Doc comments in file beginning are now sticks to declarations
correctly.
Moving declarations at the end of scripts is fixed
2017-08-07 12:17:17 +03:00
Nikolay Krasko 6194bc10f8 Move statement out of top-level lambda in scripts (KT-19322)
#KT-19322 Fixed
2017-08-07 12:12:41 +03:00
Nikolay Krasko 3d0d82b862 Fix tests for move: check applicability from changed text
Presentation status has stopped working after https://github.com/JetBrains/intellij-community/commit/18ce2c6070667608d9bf5a18926778187564fd19
2016-09-20 15:26:36 +03:00
Valentin Kipyatkov 06db49bab7 Restored lost tests 2016-05-10 15:41:33 +03:00
Nikolay Krasko 85bc32a884 Adjust move code tests for KEEP_FIRST_COLUMN_COMMENT option
#KT-4175 In Progress
2016-03-16 12:38:21 +03:00
Mikhail Glukhikh adf43519d6 Code mover fix: correct commas / semicolons after enum entries, relevant test fixes, extra tests 2015-08-11 10:38:20 +03:00
Dmitry Jemerov f93eeeb563 fix tests by adding missing 'init' keywords to testdata 2015-04-29 14:07:05 +02:00
Alexey Sedunov 2dbfd1fc4c Move Statement: Fix comma placement for class parameter
#KT-6672 Fixed
2015-01-30 21:16:27 +03:00
Alexander Udalov 044f7b6156 Rename jet -> kotlin in idea: refactoring, codeInsight
org.jetbrains.jet.plugin.* -> org.jetbrains.kotlin.idea.*
2015-01-13 01:15:08 +03:00
Nikolay Krasko 45013ce8af Fix formatting for multiline binary expressions
#KT-4797 Fixed
2014-05-16 17:09:50 +04:00
Alexey Sedunov 0e9875aec3 Support moving into "else" branch of conditional expression
#KT-3877 Fixed
2014-01-29 15:58:53 +04:00
Alexey Sedunov 609154bab3 Generalize movable element constraint
#KT-4468 Fixed
 #KT-4376 Fixed
2014-01-29 15:58:51 +04:00
Alexey Sedunov e13abf2444 KT-4274 #Fixed 2013-12-17 01:41:19 +04:00
Alexey Sedunov 71a0d4cc45 KT-4018 When moving members move comments too 2013-10-15 18:44:00 +04:00
Alexey Sedunov d80512f68a Fix move when multi-line elements have shared lines 2013-09-06 19:41:17 +04:00
Alexey Sedunov b3b948ac39 Fix movement bug when expression is followed/preceded by comment at the functional literal block boundary 2013-09-06 19:41:15 +04:00
Alexey Sedunov f700870bea KT-3791 (Move statement moves lambda parameters out of lambda itself) Fixed 2013-09-06 19:41:14 +04:00
Alexey Sedunov 6e513f067f KT-3736 Fixed: "Move Statement Down doesn't work to improperly formatted code" 2013-07-10 18:46:09 +04:00
Alexey Sedunov 3a881672e8 KT-3732 "Move statement" should respect DSLs 2013-07-09 18:33:33 +04:00
Alexey Sedunov 4a19d4f77b Fix "Move statement" for the cases when nested closure is used (KT-3735) 2013-07-08 19:16:58 +04:00
Alexey Sedunov fa01d59ef8 Fixed moving of classes without body 2013-06-21 18:18:07 +04:00
Alexey Sedunov 62bdb37014 Do not move closing brace in function-like elements 2013-06-05 15:51:32 +04:00
Alexey Sedunov 7805ee01eb Fix moving of value parameters and arguments 2013-06-05 15:51:27 +04:00
Alexey Sedunov cda940f415 Add support of "braceless" blocks 2013-06-05 15:51:15 +04:00
Alexey Sedunov 30e333c670 Allow to move "when entry" at closing brace 2013-06-05 15:51:10 +04:00
Alexey Sedunov 5345d0a0d5 Fix moving of value/type parameters 2013-06-05 15:50:59 +04:00
Alexey Sedunov 57edbdfbc4 Allow moving out to arbitrary blocks and moving any declaration into class body 2013-06-05 15:50:53 +04:00
Alexey Sedunov b00ec82884 Implement "move expression up/down" action handler 2013-06-05 15:50:47 +04:00
Alexey Sedunov fe8891299b Implement "move class-level declaration up/down" action handler 2013-06-05 15:50:41 +04:00