Formatter: no spaces after 'constructor' inside primary ctor

This commit is contained in:
Denis Zharkov
2015-05-12 17:23:00 +03:00
parent 09cae59f0a
commit 46a6cab671
3 changed files with 20 additions and 0 deletions
@@ -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
()