You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove non-working constraint between metadata and parameters. (#1159)
I believe the *intent* of these constraints is that if a parameter list
splits then the metadata before each parameters split too. With these,
instead of:
function(
@anno param,
@anno param,
@anno param) {
Where the parameters can split while leaving the annotations alone, the
annotations are forced to split too:
function(
@anno
param,
@anno
param,
@anno param) {
But...
1. These constraints don't appear to do that.
2. There are no tests that they would do that. In fact, all the tests
pass with these lines removed.
3. And when I format a large corpus with these lines removed, there are
no differences versus when them included. They don't appear to do
anything.
4. Most importantly, it seems that the current style is to allow a
parameter list to split while keeping annotations. So even if I were
to fix this code so that it does what (I think) it was supposed to,
it's probably not what people want.
So just removing it.
0 commit comments