New J2K: preserve declarations order & place init sections to the end
This commit is contained in:
+26
-22
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user