packages/babel-plugin-proposal-object-rest-spread/test/fixtures/object-rest/remove-unused-excluded-keys-loose/input.js
raw symbols SCIP| 1 | // should not remove when destructuring into existing bindings |
| 2 | ({ a2, ...b2 } = c2); |
| 3 | |
| 4 | class Comp extends React.Component { |
| 5 | render() { |
| 6 | const { |
| 7 | excluded, |
| 8 | excluded2: excludedRenamed, |
| 9 | used, |
| 10 | used2: usedRenamed, |
| 11 | ...props |
| 12 | } = this.props; |
| 13 | |
| 14 | console.log(used, usedRenamed); |
| 15 | |
| 16 | return React.createElement("input", props); |
| 17 | } |
| 18 | } |
| 19 | |
| 20 | function smth({ unused, ...rest }) { |
| 21 | call(rest); |
| 22 | } |