Fixed formatter to work correctly with comments inside declaration nodes

This commit is contained in:
Valentin Kipyatkov
2014-10-03 19:56:42 +04:00
parent d6dc2531b0
commit 84ba96900a
5 changed files with 46 additions and 1 deletions
@@ -0,0 +1,11 @@
/** Doc comment for A */
class A {
/** Doc comment for function */
fun foo() {
}
/**
* Doc comment for property
*/
val prop = 1
}
+6
View File
@@ -0,0 +1,6 @@
/** Doc comment for A */class A { /** Doc comment for function */
fun foo(){}
/**
* Doc comment for property
*/ val prop = 1
}