Toshiaki Kameyama
5b927d798c
Replace explicit parameter with it: don't suggest if overload resolution ambiguity error occurs
...
#KT-20795 Fixed
2020-06-01 21:42:03 +09:00
Toshiaki Kameyama
c149e956cc
Replace explicit parameter isn't shown on destructuring declaration
...
So #KT-17026 Fixed
2017-06-08 16:32:54 +03:00
Mikhail Glukhikh
bd8c7577e1
Replace explicit parameter with it : correct handling of it from outer lambda #KT-12437 Fixed
...
(cherry picked from commit cb8fe96)
2016-06-21 22:24:54 +03:00
Mikhail Glukhikh
3f266647f0
Does not replace explicit lambda parameter with 'it' if conflicting nested literal available #KT-11849 Fixed
2016-04-18 15:26:42 +03:00
Yan Zhulanow
a3ff3ffc45
Fix tests: "Placing function type parameters after the function name" error
2015-11-27 15:51:11 +03:00
Dmitry Petrov
7e51fb8521
Check for exposed local classes (or objects) in type signatures
2015-10-12 15:24:54 +03:00
Valentin Kipyatkov
c7937f181b
Refactored ReplaceExplicitFunctionLiteralParamWithItIntention
2015-05-02 14:03:24 +03:00
Stanislav Erokhin
3de0dff575
Migrate testdata to new lambda syntax
2015-04-07 13:08:53 +03:00
Alexander Udalov
fe544eaf71
Rename jet -> kotlin in idea: intentions
...
org.jetbrains.jet.plugin.intentions -> org.jetbrains.kotlin.idea.intentions
2015-01-13 01:14:37 +03:00
Evgeny Gerashchenko
fda7aeecfb
Simplified CodeTransformationTest. Only one doTest method remains, intention class is moved to test data. Merged other intention tests (SpecifyTypeExplicitlyTest, ConvertToBlock/ExpressionBodyTest) into this one.
2014-07-10 15:05:17 +04:00
Zalim Bashorov
b43958f4b3
Fixed tests after adding error checking for intention tests.
2014-04-01 20:49:24 +04:00
Tuomas Tynkkynen
c6d6a32314
Add intention for replacing explicit function literal parameter with 'it'
...
Kotlin's function literals have a shortcut for one-argument literals:
the single argument doesn't need to be explicitly named, but can be
referred via the 'it' contextual keyword.
For example, 'array(1, 2, 3).filter { x -> x % 2 == 0 }'
-> 'array(1, 2, 3).filter { it % 2 == 0 }'
Add an intention action for this transformation.
2014-03-05 17:31:21 +04:00