Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Rename parameters declared in constructor inside constructor body if used in the body #39

@dariajung

Description

@dariajung

Example illustrating this example:

class Foo {
  constructor(public bar: string) { // bar is correctly renamed
    this.bar = bar; // bar is correctly renamed
    console.log(bar); // bar will not be renamed, we would have to rename bar here as well
  }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions