diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 19:48:44 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-01-09 19:48:44 +0100 |
commit | 4b0dcee83efbdb77ae5e389ee04c309c52446153 (patch) | |
tree | ed2251d21b2b79985ce958a30e4c238e90f606f9 /test/data/format | |
parent | c1a1cf14edfcf3b1b0cd166d60cee30e109ffe1a (diff) | |
download | dokka-4b0dcee83efbdb77ae5e389ee04c309c52446153.tar.gz dokka-4b0dcee83efbdb77ae5e389ee04c309c52446153.tar.bz2 dokka-4b0dcee83efbdb77ae5e389ee04c309c52446153.zip |
generate ExternalClass nodes to hold extension functions and properties for classes from other packages
Diffstat (limited to 'test/data/format')
-rw-r--r-- | test/data/format/extensions.class.md | 16 | ||||
-rw-r--r-- | test/data/format/extensions.kt | 19 | ||||
-rw-r--r-- | test/data/format/extensions.package.md | 18 |
3 files changed, 53 insertions, 0 deletions
diff --git a/test/data/format/extensions.class.md b/test/data/format/extensions.class.md new file mode 100644 index 00000000..a9747756 --- /dev/null +++ b/test/data/format/extensions.class.md @@ -0,0 +1,16 @@ +[test](out.md) / [foo](out.md) / [String](out.md) + + +### Extensions for String + + +| [fn](out.md) | `fun String.fn(): Unit` +`fun String.fn(x: Int): Unit` +Function with receiver + + | +| [foobar](out.md) | `val String.foobar: Int` +Property with receiver. + + | + diff --git a/test/data/format/extensions.kt b/test/data/format/extensions.kt new file mode 100644 index 00000000..6f2eff9d --- /dev/null +++ b/test/data/format/extensions.kt @@ -0,0 +1,19 @@ +package foo + +/** + * Function with receiver + */ +fun String.fn() { +} + +/** + * Function with receiver + */ +fun String.fn(x: Int) { +} + +/** + * Property with receiver. + */ +val String.foobar: Int + get() = size() * 2 diff --git a/test/data/format/extensions.package.md b/test/data/format/extensions.package.md new file mode 100644 index 00000000..13f40457 --- /dev/null +++ b/test/data/format/extensions.package.md @@ -0,0 +1,18 @@ +[test](out.md) / [foo](out.md) + + +# foo + + +``` +package foo +``` + + + + +### Extensions for External Classes + + +| [String](out.md) | `` | + |