2 Commits
Author SHA1 Message Date
Vladimir Dolzhenko 1734a04d83 [kotlin] Add after-warnings for intention test data
GitOrigin-RevId: 6124edbaebaf204f9e40b0f510ffc03209a46f6c
2021-09-22 16:12:45 +00:00
Tuomas Tynkkynen ef3cf07d5a Add intention for converting an implicit 'it' parameter to an explicitly named parameter
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. Add an intention action for
converting an implicit 'it' parameter to an explicitly named one.

For example, 'array(1, 2, 3).filter { it % 2 == 0 }'
          -> 'array(1, 2, 3).filter { x -> x % 2 == 0 }'

GitOrigin-RevId: ff19000af79514c7813f0c4207c2f3bf2d8e9dea
2014-03-05 16:31:25 +03:00