More correct named arguments completion

This commit is contained in:
Valentin Kipyatkov
2015-09-02 17:37:46 +03:00
parent 7cf4d265bb
commit db4c163539
9 changed files with 112 additions and 84 deletions
@@ -10,11 +10,9 @@ fun other() {
foo(n<caret>)
}
// EXIST: { lookupString:"nFirst", itemText:"nFirst =" }
// EXIST: nLocal
// todo - should exist
// ABSENT: nClassParam
// ABSENT: nSecond
// ABSENT: nThird
// ABSENT: nClassField
// EXIST: { lookupString:"nFirst", itemText:"nFirst =", tailText: " String" }
// EXIST: { itemText: "nClassParam =", tailText: " String" }
// EXIST: { itemText: "nClassField =", tailText: " String" }
// EXIST: { itemText: "nSecond =", tailText: " String?" }
// EXIST: { itemText: "nThird =", tailText: " Int" }
@@ -0,0 +1,13 @@
fun foo(p: Int, xxP1: String, xxP2: Int){}
fun foo(p: Int, xxP1: String, xxP2: Char){}
fun foo(p: Int, xxx: Any?){}
fun foo(p: String, xxy: String){}
fun f() {
foo(1, xx<caret>)
}
// EXIST: { itemText:"xxP1 =", tailText: " String" }
// EXIST: { itemText:"xxP2 =", tailText: " ..." }
// EXIST: { itemText:"xxx =", tailText: " Any?" }
// NOTHING_ELSE