KT-8560 Smart completion for lambda value and more in smart completion

#KT-8560 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-07-21 00:09:48 +03:00
parent f551d64ea2
commit 7b0b2d38c5
15 changed files with 154 additions and 27 deletions
+7
View File
@@ -0,0 +1,7 @@
fun foo(list: List<String>) {
list.filter { it.<caret> }
}
// EXIST: isEmpty
// EXIST: isBlank
// ABSENT: substring
+6
View File
@@ -0,0 +1,6 @@
fun foo(list: List<String>): Collection<Int> {
return list.map { it.<caret> }
}
// EXIST: length
// ABSENT: isEmpty
+13
View File
@@ -0,0 +1,13 @@
fun foo(list: List<String>): Collection<Int> {
bar(list.map { it.<caret> })
}
fun bar(p: Collection<Int>) {
}
fun bar(p: Collection<String>, b: Boolean) {
}
// EXIST: length
// EXIST: substring
// ABSENT: isEmpty
+7
View File
@@ -0,0 +1,7 @@
fun foo(list: List<String>, intList: MutableList<Int>, stringList: MutableList<String>): Collection<Int> {
return list.mapTo(<caret>)
}
// EXIST: intList
// EXIST: arrayListOf
// ABSENT: stringList