Formatter: format between type reference and 'by' keyword (KT-32277)

#KT-32277 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-03 18:32:42 +09:00
committed by Nikolay Krasko
parent 0b8f35c04d
commit 44e9090931
3 changed files with 3 additions and 0 deletions
@@ -384,6 +384,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
around(BY_KEYWORD).spaces(1)
betweenInside(IDENTIFIER, PROPERTY_DELEGATE, PROPERTY).spaces(1)
betweenInside(TYPE_REFERENCE, PROPERTY_DELEGATE, PROPERTY).spaces(1)
before(INDICES).spaces(0)
before(WHERE_KEYWORD).spaces(1)
+1
View File
@@ -1,4 +1,5 @@
class Bar(val r: Runnable) : Runnable by r
class Foo {
val bar by lazy { "" }
val baz: String by lazy { "" }
}
+1
View File
@@ -1,4 +1,5 @@
class Bar(val r: Runnable) : Runnable by r
class Foo {
val bar by lazy { "" }
val baz: String by lazy { "" }
}