Handle spaces around dot in type references and before type argument list

This commit is contained in:
Ilya Zorin
2017-05-31 20:06:53 +03:00
committed by Dmitry Jemerov
parent 4acb95acb5
commit 862631b2ec
6 changed files with 30 additions and 0 deletions
@@ -170,6 +170,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
betweenInside(TYPE_REFERENCE, DOT, FUN).spacing(0, 0, 0, false, 0)
betweenInside(DOT, IDENTIFIER, FUN).spacing(0, 0, 0, false, 0)
afterInside(IDENTIFIER, FUN).spacing(0, 0, 0, false, 0)
aroundInside(DOT, USER_TYPE).spaces(0)
around(AS_KEYWORD).spaces(1)
around(IS_KEYWORD).spaces(1)
@@ -211,6 +212,7 @@ fun createSpacingBuilder(settings: CodeStyleSettings, builderUtil: KotlinSpacing
beforeInside(RPAR, VALUE_ARGUMENT_LIST).spaces(0)
afterInside(LT, TYPE_ARGUMENT_LIST).spaces(0)
beforeInside(GT, TYPE_ARGUMENT_LIST).spaces(0)
before(TYPE_ARGUMENT_LIST).spaces(0)
betweenInside(FOR_KEYWORD, LPAR, FOR).spacing(1, 1, 0, false, 0)
betweenInside(IF_KEYWORD, LPAR, IF).spacing(1, 1, 0, false, 0)