Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix renameTo not taking property shorthands into account #211

Merged
merged 4 commits into from Mar 7, 2018

Commits on Jul 17, 2017

  1. Fix renameTo not taking property shorthands into account

    This fixes the `renameTo` helper method not properly renaming
    object properties that are shorthands.
    
    The previous version of the code would rename the property's
    `value` correctly, but since `shorthand` was still set as `true`,
    the output result would still be the old variable as a shorthand
    property.
    
    Now, if an identifier to be renamed is of type `Property` and
    is a shorthand (but not a method), we flip the `shorthand` value
    to be `false`.
    vitorbal committed Jul 17, 2017
    Copy the full SHA
    1bced40 View commit details
    Browse the repository at this point in the history

Commits on Mar 7, 2018

  1. Copy the full SHA
    72fdabd View commit details
    Browse the repository at this point in the history
  2. babel -> getParser()

    fkling committed Mar 7, 2018
    Copy the full SHA
    dbf9c4a View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    4ecf24f View commit details
    Browse the repository at this point in the history