Commit Graph

3344 Commits

Author SHA1 Message Date
Alexey Sedunov b2b7bce99a Relax transformation assertions 2013-05-15 18:51:14 +04:00
Alexey Sedunov ee9b96e943 Fix caret positioning in unfolded assignments 2013-05-15 18:51:08 +04:00
Alexey Sedunov 82bd796bc0 Add editor reference to transform() method 2013-05-15 18:51:02 +04:00
Alexey Sedunov 5dc08a5d25 Add tests with multiple conditions types in 'when' 2013-05-15 18:50:39 +04:00
Alexey Sedunov d2f3dd1629 JetPsiMatcher: reimplement using visitor, add structural type matching 2013-05-15 18:29:14 +04:00
Alexey Sedunov 4ee59e351b Move "else" extractor to JetWhenExpression 2013-05-15 12:58:01 +04:00
Alexey Sedunov d30e8d88fb Get rid of excessive replaces 2013-05-15 12:57:59 +04:00
Alexey Sedunov 3383679928 Extract 'assertNotNull' method 2013-05-15 12:57:58 +04:00
Alexey Sedunov 7dd5a2cfa4 Add tests for 'if-when' and 'when' transformations 2013-05-15 12:57:57 +04:00
Alexey Sedunov 06d43a8ab3 Register intentions in plugin.xml 2013-05-15 12:57:56 +04:00
Alexey Sedunov 5a185ee495 Add intentions names to bundle 2013-05-15 12:57:55 +04:00
Alexey Sedunov a1613d8b81 Implement 'when' transformations (flatten, introduce subject, eliminate subject) 2013-05-15 12:57:54 +04:00
Alexey Sedunov 3c691062ad Implement if-to-when and when-to-if transformations 2013-05-15 12:57:53 +04:00
Alexey Sedunov 36b68786b0 Add new-line flags to 'if' factory method 2013-05-15 12:57:51 +04:00
Alexey Sedunov f5b1706b30 Extract 'assertNotNull' method 2013-05-15 12:57:48 +04:00
Alexey Sedunov f4c220e735 Rename intention predicate 2013-05-15 12:57:48 +04:00
Alexey Sedunov 9ae17cfe85 Make intentions inner classes 2013-05-15 12:57:47 +04:00
Alexey Sedunov fe3d749257 Minimize update operations on active PSI and move them to the last phase 2013-05-15 12:57:45 +04:00
Alexey Sedunov 2ba806bee8 Fix bug in assignment-to-when unfolding 2013-05-15 12:57:43 +04:00
Alexey Sedunov 09b4a5afa3 Add tests for unfolding to 'when' 2013-05-15 12:57:42 +04:00
Alexey Sedunov 64e578297c Replace fold/unfold intentions with a set of specialized ones 2013-05-15 12:57:41 +04:00
Alexey Sedunov 9e441b0525 Fix intention descriptions and templates 2013-05-15 12:57:40 +04:00
Alexey Sedunov 2f00097b2a Add assertion messages 2013-05-15 12:57:39 +04:00
Alexey Sedunov d5e78c3bd5 Add support of comments in asymmetric returns 2013-05-15 12:57:38 +04:00
Alexey Sedunov 8757e3763b Remove redundant tests 2013-05-15 12:57:37 +04:00
Alexey Sedunov 89030d1ced Make predicate non-nullable 2013-05-15 12:57:35 +04:00
Alexey Sedunov a778ce24e7 Rename method 2013-05-15 12:57:33 +04:00
Alexey Sedunov 033e82666d Extract method for else branch check in when expression 2013-05-15 12:57:32 +04:00
Alexey Sedunov edea00f53e Extract method for assignment matching 2013-05-15 12:57:31 +04:00
Alexey Sedunov f473224e84 Add tests for folding/unfolding operations 2013-05-15 12:57:30 +04:00
Alexey Sedunov 02e9f174f0 Replace intentions for folding/unfolding operations 2013-05-15 12:57:29 +04:00
Alexey Sedunov 51658c65de Add folding/unfolding operations for branched control structures 2013-05-15 12:57:28 +04:00
Alexey Sedunov ed0bd5a908 Simplify "is assignment" check and move it to JetPsiUtil 2013-05-15 12:57:26 +04:00
Michał Sapalski 68cd832831 Search in all superclasses in quickfix for NOTHING_TO_OVERRIDE. 2013-05-15 10:33:19 +04:00
Natalia.Ukhorskaya 32c5f5f59d EA-46019 - assert: PropertyCodegen.generatePropertyDelegateAccess: delegate type can be null when delegate expression is unresolved and back-end called from light class generation 2013-05-14 15:38:49 +04:00
Alexander Kirillin 3ae1dcb263 returned mistakenly deleted bundle messages 2013-05-07 21:15:27 +04:00
Alexander Kirillin 41045d2a1e new quick fixes: add parameter, remove parameter, change function literal signature 2013-05-07 21:15:27 +04:00
Alexander Kirillin 41ec5724df new directive for disabling of error checks in quick fix tests 2013-05-07 21:15:26 +04:00
Alexander Kirillin 1783f8df3a new "collecting" name validator 2013-05-07 21:15:26 +04:00
Alexander Kirillin 5499bea181 fix for change signature when the order of named arguments is non-trivial 2013-05-07 21:15:26 +04:00
Evgeny Gerashchenko cb2f24b1cc Not loading SAM constructors for FunctionN classes. 2013-05-07 18:50:44 +04:00
Mohammad Shamsi 4b656d8c8d KT-3257 Bad diagnostics when trying to instantiate a private class
#KT-3257 Fixed
2013-05-07 13:14:43 +04:00
Evgeny Gerashchenko d645fcaaa7 Reverted import optimization in generated files. 2013-05-06 18:50:03 +04:00
Nikolay Krasko dd7c2cf78c Fix kotlin logo icon path 2013-05-02 01:42:03 +04:00
Nikolay Krasko 7d703779ae Don't share project descriptor for JetGotoSymbolTest
Some order of test execution makes this test fall because of uninitialized Jet elements presenters
2013-05-01 16:53:34 +04:00
Nikolay Krasko 0c749005e1 KT-3498 Show overrided/implemented line marker
#KT-3498 Fixed
2013-05-01 16:53:32 +04:00
Nikolay Krasko fe124a9828 Refactoring: move tooltip provider and navigator from MarkerType 2013-05-01 16:53:31 +04:00
Nikolay Krasko 0e95581bca Test not only line marker number but also their position 2013-05-01 16:53:31 +04:00
Nikolay Krasko c240f7cddc Refactoring: Use gutter icons constants 2013-05-01 16:53:30 +04:00
Nikolay Krasko 82cac8ed26 KT-3503 Can't navigate to implementation of kotlin functions
#KT-3503 Fixed
2013-05-01 16:53:29 +04:00