Skip to content

Unneeded split on method call after split record literal #1213

@munificent

Description

@munificent

When a record literal that is a target of a member splits, it forces the member to split too. This leads to some weird output:

main() {
  final a = (
    element,
    element,
  )
      .getter; // <- Bad.

  final b = [
    element,
    element,
  ].getter;
}

Note how the list literal keeps .getter on the same line.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions