Formatter: no spaces after 'constructor' inside primary ctor
This commit is contained in:
@@ -155,6 +155,8 @@ fun createSpacingBuilder(settings: CodeStyleSettings): KotlinSpacingBuilder {
|
||||
}
|
||||
}
|
||||
|
||||
afterInside(CONSTRUCTOR_KEYWORD, PRIMARY_CONSTRUCTOR).spaces(0)
|
||||
|
||||
aroundInside(DOT, DOT_QUALIFIED_EXPRESSION).spaces(0)
|
||||
aroundInside(SAFE_ACCESS, SAFE_ACCESS_EXPRESSION).spaces(0)
|
||||
|
||||
|
||||
@@ -26,3 +26,12 @@ class A9 // eol comment
|
||||
private // eol comment
|
||||
[ann] // eol comment
|
||||
()
|
||||
|
||||
class A10
|
||||
protected @ann constructor()
|
||||
|
||||
class A11
|
||||
protected
|
||||
@ann
|
||||
constructor
|
||||
()
|
||||
|
||||
@@ -25,3 +25,12 @@ class A9 // eol comment
|
||||
private // eol comment
|
||||
[ann] // eol comment
|
||||
()
|
||||
|
||||
class A10
|
||||
protected @ann constructor ()
|
||||
|
||||
class A11
|
||||
protected
|
||||
@ann
|
||||
constructor
|
||||
()
|
||||
|
||||
Reference in New Issue
Block a user