Assign trailing and preceding whitespaces to lambda block until the last comment in parser

This commit is contained in:
Nikolay Krasko
2016-10-25 18:04:18 +03:00
parent 0261385681
commit 08d628537c
16 changed files with 523 additions and 66 deletions
@@ -4,7 +4,8 @@
fun foo(list: List<String>) {
// string should be non-empty
// save it into result
val result: String? = list.firstOrNull { // search for first non-empty string in the list
val result: String? = list.firstOrNull {
// search for first non-empty string in the list
it.length > 0
}
}