New J2K: preserve declarations order & place init sections to the end

This commit is contained in:
Ilya Kirillov
2019-05-29 15:24:21 +03:00
parent ab26061b5e
commit 95a6f59c62
29 changed files with 124 additions and 163 deletions
+26 -22
View File
@@ -12,30 +12,11 @@ This is a block comment
internal class C {
// This is a class comment
/**
* This is a field doc comment.
*/
private val i: Int = 0
//simple one line comment for field
var j: Int = 0
//double c style
//comment before field
var k: Int = 0
//combination
/** of
*/
//
/**
* different
*/
//comments
var l: Int = 0
/*two*/ /*comments*//*line*/
var z: Int = 0
private val i = 0
/**
* This is a function doc comment.
@@ -47,17 +28,40 @@ internal class C {
//simple one line comment for function
fun f1() {}
//simple one line comment for field
var j = 0
//double c style
//comment before function
fun f2() {}
//double c style
//comment before field
var k = 0
//combination
/** of
*/
//
/**
* different
*/
//comments
fun f3() {}
}
//combination
/** of
*/
//
/**
* different
*/
//comments
var l = 0
/*two*/ /*comments*//*line*/
var z = 0
}