Debian Codegraph @

packages/babel-plugin-proposal-object-rest-spread/test/fixtures/assumption-pureGetters/rest-remove-unused-excluded-keys/input.js

raw symbols SCIP
1 // should not remove when destructuring into existing bindings
2 ({ a2, ...b2 } = c2);
3
4 function render() {
5 const {
6 excluded,
7 excluded2: excludedRenamed,
8 used,
9 used2: usedRenamed,
10 ...props
11 } = this.props;
12
13 console.log(used, usedRenamed);
14
15 return React.createElement("input", props);
16 }
17
18 function smth({ unused, ...rest }) {
19 call(rest);
20 }