Skip to content

Convert to cascade quick-fix bug with expressions containing whitespace #61160

@FMorschel

Description

@FMorschel

Repro:

void foo(int? one, int two) {
  var result = one ?? two;
  result.abs();
  var result2 = two + 1;
  result2.abs();
}

Either of the above (and probably many more cases) the quick-fix doesn't add parentheses around the expression.

I'll take a look at this.

FYI @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixestype-bugIncorrect behavior (everything from a crash to more subtle misbehavior)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions