Skip to content

Ignore comment bug #61143

@FMorschel

Description

@FMorschel

I'm not sure if this is a bug on the quick-fix, analyzer or both (less likely).

Repro:

// ignore_for_file: unused_element_parameter, this is a comment on why

class _C { // unused_element
  _C({int? i});
}

The unused_element will have a quick-fix to ignore for the file. But it will append , unused_element after why. In that case, the quick-fix resolves nothing.

CC @bwilkerson

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2A bug or feature request we're likely to work onarea-devexpFor issues related to the analysis server, IDE support, linter, `dart fix`, and diagnostic messages.devexp-quick-fixIssues with analysis server (quick) fixes

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions