-
Notifications
You must be signed in to change notification settings - Fork 148
Open
Labels
Description
From @daniel-trinh on March 2, 2014 19:48
Annotations for expressions in blocks and parameter clauses currently are placed on the same line:
def asdf(
@annotation one: Int,
@a @b(c) two: String
)
class A extends B {
@SomeImportantAnnotation(param = true) override val param: Int = 1
@NotSoImportantAnnotation(param = false) val description: String = "Not so important"
}Instead, it should be formatted as..
def asdf(
@annotation
one: Int,
@a
@b(c)
two: String
)
class A extends B {
@SomeImportantAnnotation(param = true)
override val param: Int = 1
@NotSoImportantAnnotation(param = false)
val description: String = "Not so important"
}
This would most likely only affect parameters that are already placed on their own line, so
something like this wouldn't be affected:
def asdf(@annotation one: Int, @a @b(c) two: String)stays as..
def asdf(@annotation one: Int, @a @b(c) two: String)Implementation details note: this needs to be implemented without breaking the AlignParameters feature
See here for similar issue on original branch: #91
Copied from original issue: daniel-trinh#12
joprice and tkobayashi0111