aboutsummaryrefslogtreecommitdiff
path: root/test/playground.kt
diff options
context:
space:
mode:
authorIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 16:05:59 +0400
committerIlya Ryzhenkov <orangy@jetbrains.com>2014-07-12 16:05:59 +0400
commit372ab94571e1ad5885982ea83d4b55286f1d6c23 (patch)
treeff8b4d3d1261da88515f528bc3a7aa083f7dbfb4 /test/playground.kt
parent52deaf7d9b31a4cc5ed36a280e07fdfeff975362 (diff)
downloaddokka-372ab94571e1ad5885982ea83d4b55286f1d6c23.tar.gz
dokka-372ab94571e1ad5885982ea83d4b55286f1d6c23.tar.bz2
dokka-372ab94571e1ad5885982ea83d4b55286f1d6c23.zip
Implement KotlinSignatureGenerator to render nodes back into text in Kotlin syntax.
Diffstat (limited to 'test/playground.kt')
-rw-r--r--test/playground.kt18
1 files changed, 12 insertions, 6 deletions
diff --git a/test/playground.kt b/test/playground.kt
index dc2713c7..ca503791 100644
--- a/test/playground.kt
+++ b/test/playground.kt
@@ -29,10 +29,11 @@ class Class {
* This is a class with constructor and space after doc
*/
-class ClassWithConstructor(/** Doc at parameter */ val name: Class)
+class ClassWithConstructor(
+ /** Doc at parameter */ val name: Class)
/**
- * This is data class $Person with constructor and two properties
+ * This is data class with constructor and two properties
*
* $name Person's name
* $age Person's age
@@ -46,7 +47,7 @@ object Object {
}
val objectValue: String
- /** one line getter doc */
+ /** one line getter doc */
get() = "Member"
}
@@ -54,15 +55,20 @@ object Object {
class OuterClass {
/**
- * $T: type of the item
+ * $T type of the item
*/
class NestedClass<T> {
- fun nestedClassFunction() {
+ fun nestedClassFunction(item: T) {
}
}
inner class InnerClass {
- fun innerClassFunction() {
+ fun innerClassFunction<
+ /** doc for R1 type param */
+ R1,
+ /** doc for R2 type param */
+ R2,
+ >() {
}
}