diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-23 16:35:45 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2017-02-23 16:35:45 +0100 |
commit | 99689adee954582da57268ff0375fdec52193a01 (patch) | |
tree | 82b41b04e568a564ba91473e1dcaba25b611a2b6 /core/testdata/format | |
parent | a39c7a161282d132d08bcf89eed0213374a574e9 (diff) | |
download | dokka-99689adee954582da57268ff0375fdec52193a01.tar.gz dokka-99689adee954582da57268ff0375fdec52193a01.tar.bz2 dokka-99689adee954582da57268ff0375fdec52193a01.zip |
Merge declarations with the same signature defined for multiple platforms
Diffstat (limited to 'core/testdata/format')
-rw-r--r-- | core/testdata/format/multiplatform/js.kt (renamed from core/testdata/format/multiplatform/bar.kt) | 0 | ||||
-rw-r--r-- | core/testdata/format/multiplatform/jvm.kt (renamed from core/testdata/format/multiplatform/foo.kt) | 0 | ||||
-rw-r--r-- | core/testdata/format/multiplatform/multiplatform.package.md (renamed from core/testdata/format/multiplatform/foo.package.md) | 0 | ||||
-rw-r--r-- | core/testdata/format/multiplatformMerge/js.kt | 7 | ||||
-rw-r--r-- | core/testdata/format/multiplatformMerge/jvm.kt | 8 | ||||
-rw-r--r-- | core/testdata/format/multiplatformMerge/multiplatform.package.md | 8 | ||||
-rw-r--r-- | core/testdata/format/multiplatformMergeMembers/foo.md | 26 | ||||
-rw-r--r-- | core/testdata/format/multiplatformMergeMembers/js.kt | 16 | ||||
-rw-r--r-- | core/testdata/format/multiplatformMergeMembers/jvm.kt | 16 |
9 files changed, 81 insertions, 0 deletions
diff --git a/core/testdata/format/multiplatform/bar.kt b/core/testdata/format/multiplatform/js.kt index e6d66ffd..e6d66ffd 100644 --- a/core/testdata/format/multiplatform/bar.kt +++ b/core/testdata/format/multiplatform/js.kt diff --git a/core/testdata/format/multiplatform/foo.kt b/core/testdata/format/multiplatform/jvm.kt index cb77273f..cb77273f 100644 --- a/core/testdata/format/multiplatform/foo.kt +++ b/core/testdata/format/multiplatform/jvm.kt diff --git a/core/testdata/format/multiplatform/foo.package.md b/core/testdata/format/multiplatform/multiplatform.package.md index 3574942c..3574942c 100644 --- a/core/testdata/format/multiplatform/foo.package.md +++ b/core/testdata/format/multiplatform/multiplatform.package.md diff --git a/core/testdata/format/multiplatformMerge/js.kt b/core/testdata/format/multiplatformMerge/js.kt new file mode 100644 index 00000000..bbf1dd7c --- /dev/null +++ b/core/testdata/format/multiplatformMerge/js.kt @@ -0,0 +1,7 @@ +package foo + +/** + * This is a foo. + */ +class Foo { +} diff --git a/core/testdata/format/multiplatformMerge/jvm.kt b/core/testdata/format/multiplatformMerge/jvm.kt new file mode 100644 index 00000000..cb77273f --- /dev/null +++ b/core/testdata/format/multiplatformMerge/jvm.kt @@ -0,0 +1,8 @@ +package foo + +/** + * This is a foo. + */ +class Foo { + +} diff --git a/core/testdata/format/multiplatformMerge/multiplatform.package.md b/core/testdata/format/multiplatformMerge/multiplatform.package.md new file mode 100644 index 00000000..a423f603 --- /dev/null +++ b/core/testdata/format/multiplatformMerge/multiplatform.package.md @@ -0,0 +1,8 @@ +[test](test/index) / [foo](test/foo/index) + +## Package foo + +### Types + +| [Foo](test/foo/-foo/index)<br>(JVM, JS) | `class Foo`<br>This is a foo. | + diff --git a/core/testdata/format/multiplatformMergeMembers/foo.md b/core/testdata/format/multiplatformMergeMembers/foo.md new file mode 100644 index 00000000..3bf19fe1 --- /dev/null +++ b/core/testdata/format/multiplatformMergeMembers/foo.md @@ -0,0 +1,26 @@ +[test](test/index) / [foo](test/foo/index) / [Foo](test/foo/-foo/index) + +# Foo + +`class Foo` + +**Platform and version requirements:** JVM, JS + +This is a foo. + +### Constructors + +| [<init>](test/foo/-foo/-init-)<br>(JVM, JS) | `Foo()`<br>This is a foo. | + +### Properties + +| [propJs](test/foo/-foo/prop-js)<br>(JS) | `val propJs: String` | +| [propJvm](test/foo/-foo/prop-jvm)<br>(JVM) | `val propJvm: String` | +| [propJvmAndJs](test/foo/-foo/prop-jvm-and-js)<br>(JVM, JS) | `val propJvmAndJs: Int` | + +### Functions + +| [bothJvmAndJs](test/foo/-foo/both-jvm-and-js)<br>(JVM, JS) | `fun bothJvmAndJs(): Unit` | +| [js](test/foo/-foo/js)<br>(JS) | `fun js(): Unit` | +| [jvm](test/foo/-foo/jvm)<br>(JVM) | `fun jvm(): Unit` | + diff --git a/core/testdata/format/multiplatformMergeMembers/js.kt b/core/testdata/format/multiplatformMergeMembers/js.kt new file mode 100644 index 00000000..dd2de5bc --- /dev/null +++ b/core/testdata/format/multiplatformMergeMembers/js.kt @@ -0,0 +1,16 @@ +package foo + +/** + * This is a foo. + */ +class Foo { + fun bothJvmAndJs() { + } + + fun js() { + } + + val propJvmAndJs = 0 + + val propJs = "abc" +} diff --git a/core/testdata/format/multiplatformMergeMembers/jvm.kt b/core/testdata/format/multiplatformMergeMembers/jvm.kt new file mode 100644 index 00000000..8d73ce25 --- /dev/null +++ b/core/testdata/format/multiplatformMergeMembers/jvm.kt @@ -0,0 +1,16 @@ +package foo + +/** + * This is a foo. + */ +class Foo { + fun bothJvmAndJs() { + } + + fun jvm() { + } + + val propJvmAndJs = 0 + + val propJvm = "abc" +} |