Debian Codegraph @

packages/babel-plugin-proposal-object-rest-spread/test/fixtures/object-rest/remove-unused-excluded-keys-loose/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.objectWithoutPropertiesLoose(_c, ["a2"]);
9 _c;
10 class Comp extends React.Component {
11 render() {
12 const _this$props = this.props,
13 {
14 used,
15 used2: usedRenamed
16 } = _this$props,
17 props = babelHelpers.objectWithoutPropertiesLoose(_this$props, _excluded);
18 console.log(used, usedRenamed);
19 return React.createElement("input", props);
20 }
21 }
22 function smth(_ref) {
23 let rest = babelHelpers.objectWithoutPropertiesLoose(_ref, _excluded2);
24 call(rest);
25 }