New J2K: use mutable lists for storing comments

This commit is contained in:
Ilya Kirillov
2019-09-05 21:12:04 +03:00
parent 5d99419e9c
commit fd85c2bb43
14 changed files with 38 additions and 147 deletions
+3 -2
View File
@@ -5,10 +5,11 @@ internal class A // end of primary constructor body
// this is a secondary constructor 2
constructor(s: String) : this(s.length) {} // end of secondary constructor 2 body
// this is a secondary constructor 1
// this is a primary constructor
// this is a primary constructor
// this is a secondary constructor 1
// end of secondary constructor 1 body
+1 -1
View File
@@ -3,7 +3,7 @@ import java.util.stream.Collectors
internal class Test {
fun main(lst: List<Int>) {
val newLst = /*before list*/lst/*after list*/.stream/*before stream*/()/* after stream*/
val newLst = /*before list*/ lst/*after list*/.stream/*before stream*/()/* after stream*/
.filter { x: Int -> x > 10 }
.map { x: Int -> x + 2 }/*some comment*/.distinct/*another comment*/()/* one more comment */.sorted()/*another one comment*/
.sorted(Comparator.naturalOrder())