From 4641470dbedfe987ce3755bf93431ef3a7990b89 Mon Sep 17 00:00:00 2001 From: Simon Ogorodnik Date: Thu, 1 Feb 2018 19:02:33 +0300 Subject: Implement inbound links in java layout html --- .../inboundLinksInKotlinMode.Dep.kt | 23 +++++++ .../java-layout-html/inboundLinksInKotlinMode.html | 80 ++++++++++++++++++++++ .../java-layout-html/inboundLinksInKotlinMode.kt | 16 +++++ .../java-layout-html/inboundLinksTestPackageList | 3 + 4 files changed, 122 insertions(+) create mode 100644 core/testdata/format/java-layout-html/inboundLinksInKotlinMode.Dep.kt create mode 100644 core/testdata/format/java-layout-html/inboundLinksInKotlinMode.html create mode 100644 core/testdata/format/java-layout-html/inboundLinksInKotlinMode.kt create mode 100644 core/testdata/format/java-layout-html/inboundLinksTestPackageList (limited to 'core/testdata') diff --git a/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.Dep.kt b/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.Dep.kt new file mode 100644 index 000000000..610ebb221 --- /dev/null +++ b/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.Dep.kt @@ -0,0 +1,23 @@ +package foo + + +fun foobar() { + +} + + +val v = 22 + +class G { + + fun oo() = "" + + val og = 11 + + companion object { + + fun dg() = "22" + + val dv = 12 + } +} \ No newline at end of file diff --git a/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.html b/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.html new file mode 100644 index 000000000..7025fc771 --- /dev/null +++ b/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.html @@ -0,0 +1,80 @@ + + + + + + +

X

+
class X
+ + + + +
bar.X
+

See foo.foobar +See foo.v +See foo.G +See foo.G.oo +See foo.G.og +See foo.G.Companion.dg +See foo.G.Companion.dv

+

Summary

+ + + + + + + + + + + +
+

Constructors

+
+ +

See foo.foobar +See foo.v +See foo.G +See foo.G.oo +See foo.G.og +See foo.G.Companion.dg +See foo.G.Companion.dv

+
+ + + + + + + + + + + + +
+

Functions

+
String +
G.ext()
+
+

Constructors

+
+

<init>

+
X()
+

See foo.foobar +See foo.v +See foo.G +See foo.G.oo +See foo.G.og +See foo.G.Companion.dg +See foo.G.Companion.dv

+
+

Functions

+
+

ext

+
fun G.ext(): String
+
+ + diff --git a/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.kt b/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.kt new file mode 100644 index 000000000..6420d7876 --- /dev/null +++ b/core/testdata/format/java-layout-html/inboundLinksInKotlinMode.kt @@ -0,0 +1,16 @@ +package bar + +/** + * See [foo.foobar] + * See [foo.v] + * See [foo.G] + * See [foo.G.oo] + * See [foo.G.og] + * See [foo.G.Companion.dg] + * See [foo.G.Companion.dv] + */ +class X { + + fun (foo.G).ext() = this.oo() +} + diff --git a/core/testdata/format/java-layout-html/inboundLinksTestPackageList b/core/testdata/format/java-layout-html/inboundLinksTestPackageList new file mode 100644 index 000000000..64d25c312 --- /dev/null +++ b/core/testdata/format/java-layout-html/inboundLinksTestPackageList @@ -0,0 +1,3 @@ +$dokka.format:java-layout-html +$dokka.mode:kotlin +foo -- cgit v1.2.3