KT-12080 Move parameter names higher up in code completion

#KT-12080 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-04-29 21:37:55 +03:00
parent 15dcd3d9f9
commit dd16eb14e5
8 changed files with 50 additions and 3 deletions
@@ -1,6 +1,6 @@
package temp.test
class Options(val listNew: Boolean, val listMatch: Boolean) {
class Options(val listNew: Int, val listMatch: Boolean) {
}
fun listImportedFun() = 12
@@ -5,6 +5,8 @@ import temp.test.*
val listThisFileVal = 12
fun listThisFileFun() = 1
fun listFunNotMatchingType() = ""
class ListThisFileClass {}
fun test(listParam: Int) {
@@ -20,3 +22,4 @@ fun test(listParam: Int) {
// ORDER: listImportedFun
// ORDER: listMatch
// ORDER: listNew
// ORDER: listFunNotMatchingType
@@ -0,0 +1,11 @@
fun f(b: Boolean, tra: Int){}
fun test(tri: Boolean, trb: Int) {
f(tr<caret>)
}
// ORDER: true
// ORDER: tri
// ORDER: tra
// ORDER: trb
// ORDER: try
@@ -0,0 +1,15 @@
class X {
companion object {
fun instance(): X = X()
}
}
fun f(insp: X){}
fun test(insa: Any) {
f(ins<caret>)
}
// ORDER: instance
// ORDER: insp
// ORDER: insa