Debian Codegraph @

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

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