Formatter: format between type reference and 'by' keyword (KT-32277)
#KT-32277 Fixed
This commit is contained in:
committed by
Nikolay Krasko
parent
0b8f35c04d
commit
44e9090931
@@ -384,6 +384,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
|
|||||||
|
|
||||||
around(BY_KEYWORD).spaces(1)
|
around(BY_KEYWORD).spaces(1)
|
||||||
betweenInside(IDENTIFIER, PROPERTY_DELEGATE, PROPERTY).spaces(1)
|
betweenInside(IDENTIFIER, PROPERTY_DELEGATE, PROPERTY).spaces(1)
|
||||||
|
betweenInside(TYPE_REFERENCE, PROPERTY_DELEGATE, PROPERTY).spaces(1)
|
||||||
|
|
||||||
before(INDICES).spaces(0)
|
before(INDICES).spaces(0)
|
||||||
before(WHERE_KEYWORD).spaces(1)
|
before(WHERE_KEYWORD).spaces(1)
|
||||||
|
|||||||
Vendored
+1
@@ -1,4 +1,5 @@
|
|||||||
class Bar(val r: Runnable) : Runnable by r
|
class Bar(val r: Runnable) : Runnable by r
|
||||||
class Foo {
|
class Foo {
|
||||||
val bar by lazy { "" }
|
val bar by lazy { "" }
|
||||||
|
val baz: String by lazy { "" }
|
||||||
}
|
}
|
||||||
|
|||||||
Vendored
+1
@@ -1,4 +1,5 @@
|
|||||||
class Bar(val r: Runnable) : Runnable by r
|
class Bar(val r: Runnable) : Runnable by r
|
||||||
class Foo {
|
class Foo {
|
||||||
val bar by lazy { "" }
|
val bar by lazy { "" }
|
||||||
|
val baz: String by lazy { "" }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user