Skip to content

quick-fixes for rest statements in map patterns #51892

@pq

Description

@pq

With dart-lang/language#2861, empty maps and rests in maps will become disallowed, presenting some new quick-fix opportunities.

  • {...} => Map()
  • {'a': a, 'b': b, ...} => {'a': a, 'b': b}
  • {} => Map() or Map(isEmpty: true) (2 fixes)

/cc @stereotype441 @munificent @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions