Skip to content

Refactor rename doesnt handle renaming static shadowed elements #60321

@FMorschel

Description

@FMorschel

After #59954 I realized we should do a similar processing for static members:

class ClassName {
  static final _a = 1;

  void foo(int a) {
    print(_a);
  }
}

When refactoring _a to a, it should add ClassName.:

class ClassName {
  static final a = 1;

  void foo(int a) {
    print(a);
  }
}

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-refactoringIssues with analysis server refactoringstype-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