Fix completing members for receivers shadowed by DslMarker
#KT-20396 Fixed
This commit is contained in:
@@ -43,5 +43,5 @@ fun test() {
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: {"lookupString":"two", "attributes":""}
|
||||
// EXIST: {"lookupString":"one", "attributes":["grayed"]}
|
||||
// EXIST: two
|
||||
// ABSENT: one
|
||||
|
||||
@@ -37,5 +37,5 @@ fun test() {
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: {"lookupString":"container", "attributes":["grayed"]}
|
||||
// EXIST: {"lookupString":"child", "attributes":["grayed"]}
|
||||
// ABSENT: container
|
||||
// ABSENT: lookupString
|
||||
@@ -42,7 +42,9 @@ class DslOtherChild {
|
||||
|
||||
@SimpleOtherDsl @SimpleDsl
|
||||
class DslAnotherChild {
|
||||
fun foo () {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
fun dsl(body: DslRoot.() -> Unit) {
|
||||
@@ -66,6 +68,7 @@ fun test() {
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: {lookupString:"otherThing", attributes:["grayed"]}
|
||||
// EXIST: {lookupString:"child", attributes:["grayed"]}
|
||||
// EXIST: {lookupString:"otherChild", attributes:["grayed"]}
|
||||
// EXIST: foo
|
||||
// ABSENT: otherThing
|
||||
// ABSENT: child
|
||||
// ABSENT: otherChild
|
||||
|
||||
@@ -34,5 +34,5 @@ fun test() {
|
||||
}
|
||||
}
|
||||
|
||||
// EXIST: {"lookupString":"child", "attributes":["bold"]}
|
||||
// EXIST: {"lookupString":"container", "attributes":["grayed"]}
|
||||
// EXIST: child
|
||||
// ABSENT: container
|
||||
@@ -0,0 +1,6 @@
|
||||
package bar
|
||||
|
||||
import baz.*
|
||||
|
||||
fun B.booExtension() {}
|
||||
fun A.booExtensionToA() {}
|
||||
@@ -0,0 +1,35 @@
|
||||
// RUNTIME
|
||||
|
||||
package baz
|
||||
|
||||
@DslMarker
|
||||
annotation class Marker
|
||||
|
||||
@Marker
|
||||
class A {
|
||||
val booFromA = ""
|
||||
|
||||
fun booFromA2() {}
|
||||
|
||||
fun section(block: B.() -> Unit) {}
|
||||
}
|
||||
|
||||
@Marker
|
||||
class B {
|
||||
fun booFromB() {}
|
||||
}
|
||||
|
||||
fun x() {
|
||||
A().apply {
|
||||
section {
|
||||
boo<caret>
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fun booUnrelated() {
|
||||
|
||||
}
|
||||
|
||||
// ORDER: booFromB, booUnrelated, booleanArrayOf, booExtension
|
||||
Reference in New Issue
Block a user