Rewritten KDoc-link resolve and completion to work more reasonably

This commit is contained in:
Valentin Kipyatkov
2017-08-08 09:57:47 +03:00
parent 998814b1a1
commit e52c3b4c81
19 changed files with 333 additions and 143 deletions
+13
View File
@@ -0,0 +1,13 @@
class Foo
class Bar
fun Foo.foo(){}
fun foo(){}
/**
* [Bar.<caret>foo]
*/
fun test() {}
// REF_EMPTY
+10
View File
@@ -0,0 +1,10 @@
import kotlin.io.extension
import java.io.File
/**
* [File.<caret>extension]
*/
fun f() {
}
// REF: (for java.io.File in kotlin.io).extension
+14
View File
@@ -0,0 +1,14 @@
package a
class B {
/**
* [a.B.<caret>ext]
*/
fun member() {
}
}
fun B.ext() {
}
// REF: (for B in a).ext()
+10
View File
@@ -0,0 +1,10 @@
class Foo
fun Foo.foo(){}
/**
* [<caret>foo]
*/
fun test() {}
// REF: (for Foo in <root>).foo()
+14
View File
@@ -0,0 +1,14 @@
package a
class B {
/**
* [a.B.<caret>extVal]
*/
fun member() {
}
}
val B.extVal: String
get() = ""
// REF: (for B in a).extVal
+8
View File
@@ -0,0 +1,8 @@
class Foo
/**
* [Foo.<caret>test]
*/
fun test() {}
// REF_EMPTY