Experimental feature to show properties in completion after prefix with "get" or "set"

This commit is contained in:
Valentin Kipyatkov
2015-07-28 18:22:24 +03:00
parent 23dca520d5
commit a4c9aa43a5
8 changed files with 93 additions and 27 deletions
@@ -0,0 +1,18 @@
class C : Thread() {
val property1: Int = 0
var property2: Int = 0
var xxx: Int = 0
fun getPPP() = 1
}
fun foo(c: C) {
c.getP<caret>
}
// EXIST: property1
// EXIST: property2
// EXIST: getPPP
// EXIST_JAVA_ONLY: priority
// ABSENT: getPriority
// ABSENT: xxx
@@ -0,0 +1,16 @@
class C {
val property1: Int = 0
var property2: Int = 0
var xxx: Int = 0
fun setPPP(){}
}
fun foo(c: C) {
c.setP<caret>
}
// ABSENT: property1
// EXIST: property2
// EXIST: setPPP
// ABSENT: xxx
@@ -1,5 +0,0 @@
fun foo(thread: Thread) {
thread.get<caret>
}
// EXIST_JAVA_ONLY: getPriority