Skip to content

smart-rename pass not renames property inside MemberExpression #135

@avrnex

Description

@avrnex

Describe the bug

smart-rename pass not renames property inside MemberExpression

Input code

function test({foo: f, bar: b}) {
  console.log(f, b, f[b]);
}

Steps to reproduce

Run wakaru with input code and smart-rename pass is switched to on.

Expected behavior

in f[b] f is renamed to foo and b is renamed to bar.

function test({foo, bar}) {
  console.log(foo, bar, foo[bar]);
}

Actual behavior

in f[b] f is renamed to foo, but b is NOT renamed to bar.

function test({foo, bar}) {
  console.log(foo, bar, foo[b]);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions