From 372ab94571e1ad5885982ea83d4b55286f1d6c23 Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Sat, 12 Jul 2014 16:05:59 +0400 Subject: Implement KotlinSignatureGenerator to render nodes back into text in Kotlin syntax. --- test/playground.kt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'test/playground.kt') 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 { - 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, + >() { } } -- cgit