diff options
author | Ilya Ryzhenkov <orangy@jetbrains.com> | 2014-12-22 20:01:01 +0300 |
---|---|---|
committer | Ilya Ryzhenkov <orangy@jetbrains.com> | 2015-01-13 18:05:10 +0300 |
commit | 1b5f12b79d441bd2c2044e3b04925c4fab6f814b (patch) | |
tree | 97c0ef5aa82b9d6d94b1d502975a83f808584a35 /test/data | |
parent | 75e1f85d92d1a0485983103dd61c46447068c20f (diff) | |
download | dokka-1b5f12b79d441bd2c2044e3b04925c4fab6f814b.tar.gz dokka-1b5f12b79d441bd2c2044e3b04925c4fab6f814b.tar.bz2 dokka-1b5f12b79d441bd2c2044e3b04925c4fab6f814b.zip |
Process directives, implement "code" directive.
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/comments/directive.kt | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/test/data/comments/directive.kt b/test/data/comments/directive.kt new file mode 100644 index 00000000..9883b7bd --- /dev/null +++ b/test/data/comments/directive.kt @@ -0,0 +1,35 @@ +/** + * Summary + * + * ${code example1} + * ${code example2} + * ${code X.example3} + * ${code X.Y.example4} + */ +val property = "test" + +fun example1(node: String) = if (true) { + println(property) +} + +fun example2(node: String) { + if (true) { + println(property) + } +} + +class X { + fun example3(node: String) { + if (true) { + println(property) + } + } + + class Y { + fun example4(node: String) { + if (true) { + println(property) + } + } + } +} |