FIR IDE: add completion support to classes and to type aliases

This commit is contained in:
Ilya Kirillov
2021-04-19 20:15:21 +02:00
committed by TeamCityServer
parent a5c33c8d42
commit da6c5e13d5
30 changed files with 504 additions and 34 deletions
@@ -11,3 +11,4 @@ class A() : My<caret> {
}
// EXIST: MySecondClass, MyFirstClass
// FIR_COMPARISON
@@ -8,4 +8,5 @@ class ChromePageManager(): PageManager(object : Runnable {
}) {
}
// EXIST: Tab
// EXIST: Tab
// FIR_COMPARISON
@@ -11,4 +11,5 @@ public class Test : String<caret> {
// EXIST: StringMy
// EXIST: String
// ABSENT: StringMethod
// ABSENT: StringMethod
// FIR_COMPARISON
@@ -0,0 +1,7 @@
class X {
init {
val y = 1
<caret>
}
}
// EXIST: y
@@ -0,0 +1,9 @@
class X {
val x: Int = 10
init {
<caret>
}
}
// EXIST: x
// FIR_COMPARISON
@@ -0,0 +1,5 @@
open class Base
class A : <caret>
// EXIST: Base
// FIR_COMPARISON
@@ -0,0 +1,5 @@
open class Base
class A : B<caret>
// EXIST: Base
// FIR_COMPARISON
@@ -0,0 +1,5 @@
open class Base<T>
class A<U> : Base<<caret>>
// EXIST: U
// FIR_COMPARISON
@@ -0,0 +1,8 @@
class X {
typealias Y = <caret>
}
class Z
// EXIST: Z
// FIR_COMPARISON
@@ -0,0 +1,5 @@
typealias Y = <caret>
class Z
// EXIST: Z
// FIR_COMPARISON
@@ -0,0 +1,6 @@
val y = 10
class X(val x: Int = <caret>)
// EXIST: y
// FIR_COMPARISON
@@ -0,0 +1,4 @@
class X(val y: Int, val x: Int = <caret>)
// EXIST: y
// FIR_COMPARISON
@@ -0,0 +1,6 @@
class Y
class X(val x: <caret>)
// EXIST: Y
// FIR_COMPARISON