Commit Graph

3444 Commits

Author SHA1 Message Date
Nikolay Krasko 935c5ec16d Add folding doc and multiline comments 2013-06-18 17:46:02 +04:00
Nikolay Krasko 9c604267f8 Extract setting configurator to utility class 2013-06-18 17:46:01 +04:00
Alexey Sedunov 6f942a21de Move intention-related classes and tests to "intentions" directory 2013-06-13 20:19:38 +04:00
Alexey Sedunov 57252ea491 Add missing tests 2013-06-13 20:19:36 +04:00
Alexey Sedunov 12ea273ac0 Simplify unfolding of properties, fix caret position 2013-06-13 20:19:35 +04:00
Alexey Sedunov 3ab393e460 Implement split/join property declaration 2013-06-13 20:19:34 +04:00
Alexey Sedunov da2055862e Move common code transformation classes 2013-06-13 20:19:32 +04:00
Alexey Sedunov f9c4606128 Introduce 'when' subject: consider equality right-hand side as subject candidate 2013-06-13 20:19:32 +04:00
Alexey Sedunov e13508c22b Add support of backticks in JetPsiMatcher 2013-06-13 20:19:31 +04:00
Zalim Bashorov 1e0f926d39 Fixed the expected test result for OverrideImplementTest#testFunctionWithTypeParameters. 2013-06-11 15:50:16 +04:00
Zalim Bashorov 9e4f01319b Swapped some CodeStyle options because must first be "... before ..." then "... after..." 2013-06-11 13:59:23 +04:00
Zalim Bashorov 03b039b302 Fixed the default Kotlin CodeStyle.
By default add space before colon when it placed between types (inheritance, type constraint, type parameter).
Added example of inheritance to the Sample.
2013-06-11 13:49:09 +04:00
Evgeny Gerashchenko 9b19685ec1 Merge branch master into pr/269 2013-06-10 17:40:37 +04:00
Jack Zhou 8f24d1e18b Create from usage: Removed a redundant check. 2013-06-08 18:48:41 -07:00
Nikolay Krasko d50300dedc Navigate to super for objects 2013-06-07 17:24:19 +04:00
Nikolay Krasko 994107ee0a Mix class object scope to member resolution scope in lazy resolve 2013-06-07 17:24:17 +04:00
Alexey Sedunov 3f2ff3eb24 Add code transformations for if/when in local property initializers 2013-06-07 17:05:05 +04:00
Alexey Sedunov 70b4fb48bc Add file parameter to Transformer 2013-06-07 17:04:19 +04:00
Natalia.Ukhorskaya afa3ead160 Add kotlin annotations for android SDK 2013-06-07 11:05:57 +04:00
Alexey Sedunov ef2af3a4e8 Fix brace node extraction from class initializer 2013-06-05 16:03:51 +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 a78822ddba Unify getSourceRange() for declaration and expression movers 2013-06-05 15:51:21 +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 2cc163cd90 Replace triple booleans with enums 2013-06-05 15:51:04 +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
Alexey Sedunov a2ee65e64c Add type tests for JetPsiMatcher 2013-06-05 15:03:19 +04:00
Alexey Sedunov 3a2be3be01 Fix functional type matching 2013-06-05 15:03:18 +04:00
Alexey Sedunov 3a635c537e Move JetPsiMatcher with tests to plugin module 2013-06-05 15:03:17 +04:00
Nikolay Krasko 555e182d6d Fix returned indices from TextBlockTransferableData
Thanks to Alexander (https://github.com/Alefas) for idea

 #KT-3662 Fixed
2013-05-31 20:55:35 +04:00
Wojciech Lopata 4bf7151e47 Make "type mismatch" quickfixes not available in case of error types 2013-05-29 14:58:34 +02:00
Wojciech Lopata 2a97617880 QuickFix: change type of constructor parameter to match value argument in invocation 2013-05-29 13:53:07 +02:00
Wojciech Lopata c6a378f4fb Rename directory with tests 2013-05-29 13:53:06 +02:00
Wojciech Lopata 0a541373a5 QuickFix: change property type to match expression returned by getter 2013-05-29 13:53:06 +02:00
Wojciech Lopata 16d9abf546 QuickFix: change type of overridden function to type of overridding function 2013-05-29 13:53:05 +02:00
Wojciech Lopata e08d9ee8da Fix quickFix for PROPERTY_TYPE_MISMATCH_ON_OVERRIDE 2013-05-29 13:53:04 +02:00
Wojciech Lopata 9fdbd01660 QuickFix: change type of overridden property to type of overridding property 2013-05-29 13:53:03 +02:00
Wojciech Lopata 0d65a1b789 Better text for ChangeVariableTypeFix 2013-05-29 13:53:02 +02:00
Wojciech Lopata 1a5d515972 QuickFix: change function return type to match expexted type of call 2013-05-29 13:53:01 +02:00
Wojciech Lopata 76e648ded3 QuickFix: change overloaded operator parameter type or return type 2013-05-29 13:53:00 +02:00
Wojciech Lopata d3492d8e6f QuickFix: change property type to match it's initializer type 2013-05-29 13:53:00 +02:00
Wojciech Lopata ed6e734c14 Single factory for TYPE_MISMATCH error 2013-05-29 13:52:59 +02:00
Wojciech Lopata 6c8096138a Make ChangeFunctionReturnTypeFix handle function literals 2013-05-29 13:52:59 +02:00
Wojciech Lopata 0144ad0670 Enable intention actions factories to return multiple quickfixes 2013-05-29 13:52:58 +02:00
Wojciech Lopata 9b90ee2e80 ChangeFunctionLiteralReturnTypeFix for EXPECTED/ASSIGNMENT_TYPE_MISMATCH errors 2013-05-29 13:52:52 +02:00
Wojciech Lopata 44fa32c617 ChangeFunctionParameterTypeFix for TYPE_MISMATCH error 2013-05-29 12:22:41 +02:00