Completion for fqNames in KDoc links

Tests, also proved that KT-14432 are fixed
Added completion and tests for extension functions.
This commit is contained in:
Simon Ogorodnik
2016-11-10 17:52:42 +03:00
parent 62077dafc3
commit 1a211ee7b0
9 changed files with 196 additions and 15 deletions
+20
View File
@@ -0,0 +1,20 @@
package a
class B {
/**
* [a.B.<caret>]
*/
fun member() {
}
}
fun B.ext() {
}
val B.extVal: String
get() = ""
// EXIST: ext
// EXIST: extVal
@@ -0,0 +1,33 @@
package a
class C {
class B {
/**
* [a.C.B.<caret>]
*/
fun member() {
}
}
fun B.ext() {
}
val B.extVal: String
get() = ""
}
fun C.B.topExt() {
}
val C.B.topExtVal: String
get() = ""
// EXIST: ext
// EXIST: extVal
// EXIST: topExt
// EXIST: topExtVal
+19
View File
@@ -0,0 +1,19 @@
package z
/**
* [z.<caret>]
*/
fun f(xyzzy: String) {
}
fun bar() {
}
class Z
// EXIST: Z
// EXIST: f
// EXIST: bar
// ABSENT: z
+6
View File
@@ -1,3 +1,5 @@
package z
/**
* [<caret>]
*/
@@ -9,5 +11,9 @@ fun bar() {
}
class Z
// EXIST: z
// EXIST: Z
// EXIST: xyzzy
// EXIST: bar
@@ -0,0 +1,11 @@
package z
/**
* [z.X.Y.<caret>]
*/
class X {
enum class Y { First, Second }
}
// EXIST: First
// EXIST: Second
@@ -0,0 +1,9 @@
/**
* [Y.<caret>]
*/
class X {
enum class Y { First, Second }
}
// EXIST: First
// EXIST: Second