Commit Graph

4770 Commits

Author SHA1 Message Date
Alexey Sedunov ad3ffdab18 Rename: Use RenameKotlinParameterProcessor for constructor/lambda parameters
#KT-13253 Fixed
2016-08-17 11:49:58 +03:00
Alexey Sedunov 2e887ebcef Rename: Do not report shadowing conflict if redeclaration is detected
#KT-13240 Fixed
2016-08-17 11:49:58 +03:00
Alexey Sedunov 8232c66617 Move: Warn about accessibility conflicts when moving entire file
#KT-13175 Fixed
2016-08-17 11:49:57 +03:00
Alexey Sedunov baa549e7c8 Move: Warn about accessibility conflicts due to moving to unrelated module
#KT-13174 Fixed
2016-08-17 11:49:56 +03:00
Alexey Sedunov 6a42802240 Rename: Warn about function name conflicts
#KT-13239 Fixed
2016-08-17 11:49:55 +03:00
Alexey Sedunov 385640c86f Rename: Fix name quoting for automatic renamers
#KT-13282 Fixed
 #KT-13283 Fixed
2016-08-17 11:49:54 +03:00
Alexey Sedunov a5da9e81a0 Rename: Conflict detection for type parameters
#KT-13254 Fixed
2016-08-17 11:49:53 +03:00
Alexey Sedunov 562488b348 Create from Usage: Disable "Create property" (non-abstract) in interfaces. Make "Create function" (non-abstract) generate function body in interfaces
#KT-13365 Fixed
2016-08-17 11:49:52 +03:00
Valentin Kipyatkov 8e6a01fe0a arrayListOf, mutableListOf, hashSetOf and mutableSetOf supported 2016-08-16 17:38:19 +03:00
Valentin Kipyatkov 054558ad95 More correct checking of smart cast preserving 2016-08-16 17:38:19 +03:00
Valentin Kipyatkov bfed954e85 Added tests 2016-08-16 17:38:19 +03:00
Valentin Kipyatkov e32724330f Moved shouldUseInputVariable from Transformation to TransformationMatcher and changed its semantics a bit 2016-08-16 17:38:18 +03:00
Valentin Kipyatkov bdd4363802 Option to use 'asSequence()' 2016-08-16 17:38:17 +03:00
Valentin Kipyatkov 128896fa43 Formatting of "?:" onto the next line 2016-08-16 17:38:15 +03:00
Valentin Kipyatkov 7c0f9a76a8 Added one more test 2016-08-16 17:38:14 +03:00
Valentin Kipyatkov e5903f90f2 Added test and asserts 2016-08-16 17:38:14 +03:00
Valentin Kipyatkov 8b4f8e8359 Corrected test data after rebase on master 2016-08-16 17:38:14 +03:00
Valentin Kipyatkov d658d3b9cf "Use withIndex()" intention&inspection 2016-08-16 17:38:13 +03:00
Valentin Kipyatkov ebdff775f3 Supported index++ pattern as non-last statement and even inside expressions 2016-08-16 17:38:13 +03:00
Valentin Kipyatkov 4094d77782 Supported forEachIndexed 2016-08-16 17:38:12 +03:00
Valentin Kipyatkov f28dca1fd5 Supported forEach 2016-08-16 17:38:12 +03:00
Valentin Kipyatkov 394cce8e10 Checking type of the collection being iterated 2016-08-16 17:38:11 +03:00
Valentin Kipyatkov c2103e2200 Supported indexOf/lastIndexOf 2016-08-16 17:38:11 +03:00
Valentin Kipyatkov 834fe9d535 Supported contains() 2016-08-16 17:38:10 +03:00
Valentin Kipyatkov 833f62e9b9 Fixed some cases when smart cast problems were not detected 2016-08-16 17:38:10 +03:00
Valentin Kipyatkov e8904d7727 Merging loop with initialization before in more cases + better formatting 2016-08-16 17:38:09 +03:00
Valentin Kipyatkov b65ecdd660 Supported indexOfFirst/indexOfLast 2016-08-16 17:38:09 +03:00
Valentin Kipyatkov 5ac2c48879 Merging subsequent filtering checks even when index variable is used 2016-08-16 17:38:09 +03:00
Valentin Kipyatkov aa6240a0c5 Do not generate redundant .toList() 2016-08-16 17:38:08 +03:00
Valentin Kipyatkov b6e05e058e Supported mapIndexedTo and mapIndexedNotNullTo 2016-08-16 17:38:07 +03:00
Valentin Kipyatkov 2652ea4233 Supported mapNotNullTo 2016-08-16 17:38:07 +03:00
Valentin Kipyatkov 8c7cdf1bf8 Supported other patterns for mapNotNull 2016-08-16 17:38:07 +03:00
Valentin Kipyatkov a6132c7db9 Prohibiting incorrect transformations of loops with expression-embedded break or continue + allowed "?: continue" pattern for mapNotNull 2016-08-16 17:38:07 +03:00
Valentin Kipyatkov cfc82c55c7 Checking that target collection is always the same 2016-08-16 17:38:06 +03:00
Valentin Kipyatkov 3f563f7058 takeWhile supported 2016-08-16 17:38:06 +03:00
Valentin Kipyatkov 9ff0f4d736 filterNotTo supported 2016-08-16 17:38:06 +03:00
Valentin Kipyatkov 0a61e5b0b2 filterIsInstanceTo NOT supported 2016-08-16 17:38:06 +03:00
Valentin Kipyatkov 395e61ca57 filterNotNullTo supported 2016-08-16 17:38:05 +03:00
Valentin Kipyatkov 318f3dfdd8 Supported filterIndexedTo 2016-08-16 17:38:05 +03:00
Valentin Kipyatkov 27063bcd9b Supported case when result variable initialization is not right before the loop 2016-08-16 17:38:04 +03:00
Valentin Kipyatkov d61daed461 Recognizing manually incremented index 2016-08-16 17:38:04 +03:00
Valentin Kipyatkov 14e87b1f2c Initial support for indexed transformations 2016-08-16 17:38:03 +03:00
Valentin Kipyatkov e0a7e1dbed Checking that input variable is really used 2016-08-16 17:38:03 +03:00
Valentin Kipyatkov 345f2b8a52 More usable caret position 2016-08-16 17:38:03 +03:00
Valentin Kipyatkov db53794663 Supported "count()" 2016-08-16 17:38:02 +03:00
Valentin Kipyatkov 53e3a67a7f Better formatting in some cases 2016-08-16 17:38:02 +03:00
Valentin Kipyatkov fe7ddbcc0d More informative intention action text 2016-08-16 17:38:02 +03:00
Valentin Kipyatkov bbb6ef4fbc Check that "break" and "continue" do not produce false errors when using analyzeInContext 2016-08-16 17:38:02 +03:00
Valentin Kipyatkov 49f2c5f657 Sometimes shorter code with filterTo, mapTo and flatMapTo 2016-08-16 17:38:01 +03:00
Valentin Kipyatkov 744186402d One more case when mapTo can be generated 2016-08-16 17:38:01 +03:00