KT-14386 Smart completion: add "<parameter name> = true/false" choices

#KT-14386 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-10-18 18:23:52 +03:00
parent 54f28cab45
commit a2ebf07a93
14 changed files with 134 additions and 1 deletions
@@ -0,0 +1,8 @@
fun foo(p: Int, flag: Boolean){}
fun bar() {
foo(1, <caret>)
}
// EXIST: { lookupString: "flag = true", itemText: "flag = true", attributes: "" }
// EXIST: { lookupString: "flag = false", itemText: "flag = false", attributes: "" }
@@ -10,4 +10,5 @@ fun f() {
// EXIST: { itemText:"xxP1 =", tailText: " String" }
// EXIST: { itemText:"xxP2 =", tailText: " ..." }
// EXIST: { itemText:"xxx =", tailText: " Any?" }
// EXIST: { itemText:"xxx = null", tailText: null }
// NOTHING_ELSE