add references to kdoc; support resolve and rename

This commit is contained in:
Dmitry Jemerov
2015-02-03 17:24:45 +01:00
parent 40f459306a
commit c0e7d1faf2
27 changed files with 575 additions and 70 deletions
@@ -0,0 +1,8 @@
/**
* This is the same as [<caret>bar]
*/
fun foo() {}
fun bar() {}
// REF: (in <root>).bar()
@@ -0,0 +1,10 @@
import java.util.Properties
/**
* This is almost like [Propert<caret>ies]
*/
class C {
}
// REF: (java.util).Properties
@@ -0,0 +1,6 @@
/**
* @param <caret>s this is a string
*/
fun f(s: String) { }
// REF: s
@@ -0,0 +1,6 @@
/**
* The type [<caret>T] is the type on which the foo property is defined.
*/
val <T> T.foo: Int get() = 0
// REF: T
@@ -0,0 +1,10 @@
/**
* This is the same as [C.<caret>bar]
*/
fun foo() {}
class C {
fun bar() {}
}
// REF: (in C).bar()
@@ -0,0 +1,6 @@
/**
* @param <caret>T this is the type
*/
class Foo<T> {}
// REF: T