KT-6050 Support completion for super qualifier

#KT-6050 Fixed
This commit is contained in:
Valentin Kipyatkov
2015-08-25 16:27:11 +03:00
parent 7458000f14
commit 66719923c2
17 changed files with 625 additions and 377 deletions
@@ -2,7 +2,7 @@ package Test
import <caret>
// EXIST: java,
// EXIST: java
// EXIST_JAVA_ONLY: javax
// EXIST_JS_ONLY: jquery, html5
// ABSENT: Array, Integer
@@ -0,0 +1,15 @@
open class Base
open class A : Base
interface I
class B : A(), I {
fun foo() {
super<<caret>
}
}
// EXIST: A
// EXIST: I
// NOTHING_ELSE
@@ -0,0 +1,13 @@
open class A
interface I
class B : A(), I {
fun foo() {
super<<caret>>
}
}
// EXIST: A
// EXIST: I
// NOTHING_ELSE
@@ -0,0 +1,13 @@
open class AA
interface AI
class B : AA(), AI {
fun foo() {
super<A<caret>
}
}
// EXIST: AA
// EXIST: AI
// NOTHING_ELSE
@@ -0,0 +1,17 @@
package p
open class A
interface I {
interface Nested
}
class B : A(), I.Nested {
fun foo() {
super<<caret>
}
}
// EXIST: A
// EXIST: { lookupString: "Nested", allLookupStrings: "I, Nested", itemText: "I.Nested", tailText: " (p)" }
// NOTHING_ELSE
@@ -0,0 +1,16 @@
package p
open class A
interface I {
interface Nested
}
class B : A(), I.Nested {
fun foo() {
super<I<caret>
}
}
// EXIST: { lookupString: "Nested", allLookupStrings: "I, Nested", itemText: "I.Nested", tailText: " (p)" }
// NOTHING_ELSE
@@ -0,0 +1,17 @@
package p
open class A
interface I {
interface Nested1
interface Nested2
}
class B : A(), I.Nested1 {
fun foo() {
super<I.<caret>
}
}
// EXIST: Nested1
// NOTHING_ELSE
@@ -0,0 +1,11 @@
interface I
class B : I {
fun foo() {
super<<caret>
}
}
// EXIST: Any
// EXIST: I
// NOTHING_ELSE
@@ -0,0 +1,11 @@
interface X
interface I : X {
fun foo() {
super<<caret>
}
}
// EXIST: Any
// EXIST: X
// NOTHING_ELSE
@@ -0,0 +1,11 @@
open class A<T>
interface I
class B : A<String>(), I {
fun foo() {
super<<caret>
}
}
// EXIST: { itemText: "A", tailText: " (<root>)" }