Skip to content

Conversation

kdy1
Copy link
Member

@kdy1 kdy1 commented Jan 21, 2020

Kind indicates the type of identifier. Note that as we don't care about emitting a clean code, the renamed output may not match it of bind-bind conflict or bind-use conflict.

Closes #598

@kdy1 kdy1 added this to the v1.1.14 milestone Jan 21, 2020
@kdy1 kdy1 self-assigned this Jan 21, 2020
@kdy1
Copy link
Member Author

kdy1 commented Jan 21, 2020

bors r+

bors bot pushed a commit that referenced this pull request Jan 21, 2020
Kind indicates type of identifier. hygiene pass tracks it to preserve ident renaming rule.

It means,
```js
export function foo() {
    console.log(i18n(_templateObject()));
    console.log(i18n(_templateObject()));
    console.log(i18n(_templateObject()));
}
```
should be
```js
export function foo() {
    console.log(i18n(_templateObject()));
    console.log(i18n(_templateObject1()));
    console.log(i18n(_templateObject2()));
}
```

Closes #598
@bors
Copy link
Contributor

bors bot commented Jan 21, 2020

Build failed

  • continuous-integration/travis-ci/push

@kdy1 kdy1 merged commit 8ecbe14 into swc-project:master Jan 22, 2020
@kdy1 kdy1 deleted the issue-598 branch January 22, 2020 01:44
@swc-project swc-project locked as resolved and limited conversation to collaborators Nov 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Mixup in tagged template literals in exported function
1 participant