-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix identifier role for top-level destructure declarations (#564)
Fixes #563 Fixes #473 The type-only export elision implemented in #433 had a false positive for destructure delcarations, since `getDeclarationInfo` only looks at top-level declarations and top-level expressions like `const {x} = ...` weren't being marked correctly. To fix, we can mark object shorthand declarations as top-level when applicable. I also refactored both relevant code paths to avoid the repeated assignment left-hand side.
- Loading branch information
1 parent
080fce6
commit 80f84a6
Showing
3 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters