mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 15:15:45 +07:00
Format spaces around by keyword (#1016)
GitOrigin-RevId: 5f2b33848d60ab4dddb8c68a99512f22c2558818
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2e5ac5d2b3
commit
96f6c50dcb
@@ -251,6 +251,9 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
|
||||
betweenInside(TYPE_ARGUMENT_LIST, LAMBDA_ARGUMENT, CALL_EXPRESSION).spaces(1)
|
||||
|
||||
between(WHEN_ENTRY, WHEN_ENTRY).lineBreakInCode()
|
||||
|
||||
around(BY_KEYWORD).spaces(1)
|
||||
betweenInside(IDENTIFIER, PROPERTY_DELEGATE, PROPERTY).spaces(1)
|
||||
}
|
||||
custom {
|
||||
|
||||
|
||||
+6
@@ -98,6 +98,12 @@ public class FormatterTestGenerated extends AbstractFormatterTest {
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("By.after.kt")
|
||||
public void testBy() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/formatter/By.after.kt");
|
||||
doTest(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("Cast.after.kt")
|
||||
public void testCast() throws Exception {
|
||||
String fileName = KotlinTestUtils.navigationMetadata("idea/testData/formatter/Cast.after.kt");
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
class Bar(val r: Runnable) : Runnable by r
|
||||
class Foo {
|
||||
val bar by lazy { "" }
|
||||
}
|
||||
@@ -0,0 +1,4 @@
|
||||
class Bar(val r: Runnable) : Runnable by r
|
||||
class Foo {
|
||||
val bar by lazy { "" }
|
||||
}
|
||||
Reference in New Issue
Block a user