aboutsummaryrefslogtreecommitdiff
path: root/core/testdata/format
diff options
context:
space:
mode:
authorSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-01-18 16:48:03 +0300
committerSimon Ogorodnik <Simon.Ogorodnik@jetbrains.com>2017-01-18 16:48:03 +0300
commit372e9c796cc77aaff788df56a13deeef64b6edd7 (patch)
treed43ce5275c5852f88ff8b466d34533504a50487a /core/testdata/format
parentf4f7642c90fef06f04cadc57835ed431ace69802 (diff)
downloaddokka-372e9c796cc77aaff788df56a13deeef64b6edd7.tar.gz
dokka-372e9c796cc77aaff788df56a13deeef64b6edd7.tar.bz2
dokka-372e9c796cc77aaff788df56a13deeef64b6edd7.zip
KT-15497 Dokka: Using of not-FQ name in @sample should be allowed
Diffstat (limited to 'core/testdata/format')
-rw-r--r--core/testdata/format/sampleByFQName.kt12
-rw-r--r--core/testdata/format/sampleByFQName.md14
-rw-r--r--core/testdata/format/sampleByShortName.kt12
-rw-r--r--core/testdata/format/sampleByShortName.md14
4 files changed, 52 insertions, 0 deletions
diff --git a/core/testdata/format/sampleByFQName.kt b/core/testdata/format/sampleByFQName.kt
new file mode 100644
index 00000000..2c0af092
--- /dev/null
+++ b/core/testdata/format/sampleByFQName.kt
@@ -0,0 +1,12 @@
+package test
+
+fun sample() {
+ println("sample")
+}
+
+/**
+ * @sample test.sample
+ */
+fun use() {
+
+} \ No newline at end of file
diff --git a/core/testdata/format/sampleByFQName.md b/core/testdata/format/sampleByFQName.md
new file mode 100644
index 00000000..06333e13
--- /dev/null
+++ b/core/testdata/format/sampleByFQName.md
@@ -0,0 +1,14 @@
+[test](test/index) / [test](test/test/index) / [sample](test/test/sample)
+
+# sample
+
+`fun sample(): Unit`[test](test/index) / [test](test/test/index) / [use](test/test/use)
+
+# use
+
+`fun use(): Unit`
+
+``` kotlin
+println("sample")
+```
+
diff --git a/core/testdata/format/sampleByShortName.kt b/core/testdata/format/sampleByShortName.kt
new file mode 100644
index 00000000..2e03310f
--- /dev/null
+++ b/core/testdata/format/sampleByShortName.kt
@@ -0,0 +1,12 @@
+package test
+
+fun sample() {
+ println("sample")
+}
+
+/**
+ * @sample sample
+ */
+fun use() {
+
+} \ No newline at end of file
diff --git a/core/testdata/format/sampleByShortName.md b/core/testdata/format/sampleByShortName.md
new file mode 100644
index 00000000..06333e13
--- /dev/null
+++ b/core/testdata/format/sampleByShortName.md
@@ -0,0 +1,14 @@
+[test](test/index) / [test](test/test/index) / [sample](test/test/sample)
+
+# sample
+
+`fun sample(): Unit`[test](test/index) / [test](test/test/index) / [use](test/test/use)
+
+# use
+
+`fun use(): Unit`
+
+``` kotlin
+println("sample")
+```
+