Commit Graph

4737 Commits

Author SHA1 Message Date
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
Valentin Kipyatkov db0028c11e AddToCollectionTransformation checks that the result collection type cannot be changed 2016-08-16 17:38:01 +03:00
Valentin Kipyatkov f51c5a19dd Basic support for "add" to collection used inside the loop 2016-08-16 17:38:01 +03:00
Valentin Kipyatkov d3721e9462 flatMapTo supported 2016-08-16 17:38:00 +03:00
Valentin Kipyatkov 22fb397662 Initial support for "+=", filterTo and mapTo for collections 2016-08-16 17:38:00 +03:00
Valentin Kipyatkov ac46684592 Supported initialization with assignment instead of declaration 2016-08-16 17:37:59 +03:00
Valentin Kipyatkov bd6b38962d Elvis operator supported for all cases of find 2016-08-16 17:37:59 +03:00
Valentin Kipyatkov 79800492a9 firstOrNull() ?: ... supported 2016-08-16 17:37:59 +03:00
Valentin Kipyatkov 14ef93a797 More relaxed checks for any() with return 2016-08-16 17:37:58 +03:00
Valentin Kipyatkov ff0bb4fbb8 Generating more simple construct instead of "let" in some cases 2016-08-16 17:37:58 +03:00
Valentin Kipyatkov a760ef3665 Generating "firstOrNull()?.let {...}" 2016-08-16 17:37:58 +03:00
Valentin Kipyatkov fba9b123dd More cases supported for "any" 2016-08-16 17:37:58 +03:00
Valentin Kipyatkov c0f3ab59ab Supported "lastOrNull" and "any" without break in the loop 2016-08-16 17:37:57 +03:00
Valentin Kipyatkov fcbf68617e Merging subsequent .filter()'s 2016-08-16 17:37:57 +03:00
Valentin Kipyatkov d7762778a2 Cannot transform to flatMap if old working variable used in the nested loop 2016-08-16 17:37:56 +03:00
Valentin Kipyatkov 863040700e Check for continue-statement of the inner loop! 2016-08-16 17:37:56 +03:00
Valentin Kipyatkov 8c498af3d8 Checking that smart casts will not be broken by conversion 2016-08-16 17:37:56 +03:00
Valentin Kipyatkov 12b1a99a6a Initial implementation of loop-to-call-chain intention 2016-08-16 17:37:55 +03:00
Pavel V. Talanov 10660f35d7 Add tests for script configuration machinery, namely ScriptTemplateProvider EP
Test highlighting and navigation depending on provided script definition
2016-08-16 16:45:59 +03:00
Kirill Rakhman e6d76a9b71 Allow suppressing warnings for secondary constructor (KT-12627)
(cherry picked from commit 41cf868)

 #KT-12627 Fixed
2016-08-16 13:04:42 +03:00
Nikolay Krasko 7a4d20b4cf Make quick evaluate work on receiver in qualified expressions (KT-13269)
(cherry picked from commit 970ac5a)

 #KT-13269 Fixed
2016-08-16 13:04:41 +03:00
Natalia Ukhorskaya f6bb70aad1 Debugger: allow to evaluate 'this' and fields in java files 2016-08-16 09:08:34 +03:00
Kirill Rakhman 926deebff5 Format spaces around !is and !in (KT-13314)
#KT-13314 Fixed
2016-08-15 16:21:01 +03:00
Mikhail Glukhikh b53cb91e88 Do not suggest "Replace infix with safe call" inside conditions or binary / unary expressions #KT-13328 Fixed 2016-08-15 15:42:27 +03:00
shiraji 42969271ab Fix problem with appending literal to variable omitting braces #KT-13336 Fixed 2016-08-15 15:13:40 +03:00
Kirill 223fd9fad0 Implement intentions to add/remove braces to/from when entries #KT-12043 Fixed 2016-08-15 14:13:13 +03:00
Kirill Rakhman d68a681db5 Highlight use of toString() inside string interpolation as redundant #KT-10731 Fixed 2016-08-15 13:28:47 +03:00
Mikhail Glukhikh 52dacd1d49 KT-13430 related: add non-null assertion works also for UNSAFE_INFIX_CALL 2016-08-12 17:43:31 +03:00
Mikhail Glukhikh cf2d575eec Add non-null assertion: correct handling of unary expression unsafe calls #KT-13430 Fixed 2016-08-12 17:43:26 +03:00
Mikhail Glukhikh 13975778c5 Unused symbol: handling of import as alias not only for objects / enums #KT-11933 Fixed 2016-08-12 17:42:33 +03:00
Mikhail Glukhikh e01e08402c Minor: convert to expression body is forbidden also for nested non-exhaustive whens 2016-08-12 17:41:33 +03:00
Mikhail Glukhikh 6a6c67dd5f Convert to expression body is forbidden for if without else #KT-12951 Fixed 2016-08-12 17:41:28 +03:00
shiraji 3e58283d7e Add quickfix for adding 'inline' to a function with reified generic #KT-6975 Fixed 2016-08-12 12:15:40 +03:00
Mikhail Glukhikh 6cf90cfc4e Fix for SOE in VarianceChecker #KT-13401 Fixed 2016-08-11 13:04:58 +03:00