Skip to content

New assist - inline if with outer else #56924

@FMorschel

Description

@FMorschel

Could we add the option to join inner if with else:

if (a) {
} else {
  if (b) {
  } else if (c) {
  }
}

Could become:

if (a) {
} else if (b) {
} else if (c) {
}

Originally posted by @FMorschel in #56715 (comment)

I made a CL https://dart-review.googlesource.com/c/sdk/+/391021

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3A lower priority bug or feature requestdevexp-assistIssues with analysis server assistslegacy-area-analyzerUse area-devexp instead.type-enhancementA request for a change that isn't a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions