apptools-lab / AppWorks

🐻 基于 VS Code 插件的前端研发工具集,站点国内镜像:https://apptools.gitee.io
https://appworks.site/
MIT License
993 stars 180 forks source link

fix: remove referenced identifiers #949

Closed luhc228 closed 3 years ago

luhc228 commented 3 years ago

背景

对于以下两种情况,如果 b 没有被引用,会把整个语句删掉:

const [a, b] = [1, 2];
const {a, b} = obj;

期望是只把 b 删掉就行了