Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tall style: Weird indentation and splitting when comment appears before cascade setter #1429

Open
munificent opened this issue Mar 20, 2024 · 0 comments
Labels
bad common easy safe tall Issues related to the new "tall" style (#1253)

Comments

@munificent
Copy link
Member

Given:

main() {
  target
    ..first()
    // comment
    ..setter = value
    ..another();
}

The new formatter outputs:

main() {
  target
    ..first()
    // comment
        ..setter =
        value
    ..another();
}

There's no reason to indent or split the setter. Curiously, it doesn't seem to have that problem for cascaded methods. This formatting is preserved:

main() {
  target
    ..first()
    // comment
    ..setter(value)
    ..another();
}
@munificent munificent added common easy safe bad tall Issues related to the new "tall" style (#1253) labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bad common easy safe tall Issues related to the new "tall" style (#1253)
Projects
None yet
Development

No branches or pull requests

1 participant