Completion: bold immediate members for extensions too
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
fun String.extFunForString(){}
|
||||
fun Any.extFunForAny(){}
|
||||
fun String?.extFunForStringNullable(){}
|
||||
|
||||
class C {
|
||||
fun Any.memberExtFunForAny(){}
|
||||
fun String?.memberExtFunForStringNullable(){}
|
||||
|
||||
fun foo() {
|
||||
"".<caret>
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "extFunForString", attributes: "bold" }
|
||||
// EXIST: { itemText: "extFunForAny", attributes: "" }
|
||||
// EXIST: { itemText: "extFunForStringNullable", attributes: "" }
|
||||
// EXIST: { itemText: "memberExtFunForAny", attributes: "" }
|
||||
// EXIST: { itemText: "memberExtFunForStringNullable", attributes: "" }
|
||||
@@ -0,0 +1,15 @@
|
||||
fun String.extFunForString(){}
|
||||
fun Any.extFunForAny(){}
|
||||
fun String?.extFunForStringNullable(){}
|
||||
|
||||
class C {
|
||||
fun foo(s: String?) {
|
||||
if (s != null) {
|
||||
s.<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: { itemText: "extFunForString", attributes: "bold" }
|
||||
// EXIST: { itemText: "extFunForAny", attributes: "" }
|
||||
// EXIST: { itemText: "extFunForStringNullable", attributes: "" }
|
||||
@@ -0,0 +1,17 @@
|
||||
fun C.extFunForC(){}
|
||||
fun D.extFunForD(){}
|
||||
fun Any.extFunForAny(){}
|
||||
|
||||
open class C {
|
||||
fun foo() {
|
||||
if (this is D) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class D : C
|
||||
|
||||
// EXIST: { itemText: "extFunForD", attributes: "bold" }
|
||||
// EXIST: { itemText: "extFunForC", attributes: "" }
|
||||
// EXIST: { itemText: "extFunForAny", attributes: "" }
|
||||
@@ -0,0 +1,17 @@
|
||||
fun C.extFunForC(){}
|
||||
fun T.extFunForT(){}
|
||||
fun Any.extFunForAny(){}
|
||||
|
||||
open class C {
|
||||
fun foo() {
|
||||
if (this is T) {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
trait T
|
||||
|
||||
// EXIST: { itemText: "extFunForT", attributes: "bold" }
|
||||
// EXIST: { itemText: "extFunForC", attributes: "bold" }
|
||||
// EXIST: { itemText: "extFunForAny", attributes: "" }
|
||||
Reference in New Issue
Block a user