Commit Graph

20 Commits

Author SHA1 Message Date
shiraji 06dad5f45b Surround with try/catch should generate more Kotlin-style code (KT-5435)
#KT-5435 Fixed
2018-12-13 12:36:02 +03:00
Nikolay Krasko 866129984e Expression can be parenthesized on replace with if (KT-22874, EA-91186)
#KT-22874 Fixed
2018-02-16 13:29:53 +03:00
Kirill Rakhman 08103d1cb4 Implement "Surround with try/catch(/finally)" and "Surround with if/else" for expressions
Fixes #KT-14175
Fixes #KT-19782
2017-09-12 18:27:47 +03:00
Dmitry Jemerov b1f84676d1 Update tests according to new formatter behavior 2017-06-14 11:40:41 +02:00
Denis Zharkov 09266b222b Implement 'Surround expression with if' surrounder
#KT-3363 Fixed
2016-09-20 15:26:41 +03:00
Natalia Ukhorskaya 34205c3ff0 NPE in Surround with Action on empty line 2015-04-14 10:41:40 +03:00
Alexey Sedunov 8a0808b133 Create From Usage: Do not generate type for local variables, but add dummy initializer instead
#KT-6705 Fixed
2015-03-11 23:33:52 +03:00
Nikolay Krasko b06b3ab4c4 Insert empty lines after functions and properties (KT-4002)
#KT-4002 Fixed
2014-10-14 00:39:23 +04:00
Nikolay Krasko 3d588acd2d Add space between 'when' and '(' 2014-05-16 17:10:02 +04:00
Natalia Ukhorskaya a71e062504 Insert proper default value when overriding property of type float, double, char 2014-01-28 18:21:37 +04:00
Natalia.Ukhorskaya 3d4a5256e6 Surround with: move declaration out from block 2013-02-21 15:30:26 +04:00
Natalia.Ukhorskaya c11be77aa1 Do not apply ExpressionSurrounders for expressions with Unit type and for call expressions inside qualified expression 2013-02-18 17:30:52 +04:00
Natalia.Ukhorskaya 7c360a0ede Add surround with function literal 2013-02-18 17:21:16 +04:00
Natalia.Ukhorskaya 7789062c7c Add try-catch, try-finally, try-catch-finally surrounders 2013-02-18 17:12:47 +04:00
Natalia.Ukhorskaya 654fa09fff Add when surrounder 2013-02-18 17:00:39 +04:00
Natalia.Ukhorskaya 814ca0385a Add string template surrounder 2013-02-18 17:00:34 +04:00
Natalia.Ukhorskaya 856bffb324 Add parentheses surrounder 2013-02-18 17:00:03 +04:00
Natalia.Ukhorskaya 09ca020780 Add surround with not 2013-02-13 17:21:05 +04:00
Natalia.Ukhorskaya 2499bb79ca Add surround with if /else 2013-02-13 17:21:04 +04:00
Natalia.Ukhorskaya 1786c2c256 Add surround with if 2013-02-13 17:21:03 +04:00