MCPcopy Index your code
hub / github.com/reactjs/react-codemod / createArrowFunctionExpression

Function createArrowFunctionExpression

transforms/class.js:617–631  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

615 };
616
617 const createArrowFunctionExpression = fn => {
618 const arrowFunc = j.arrowFunctionExpression(
619 fn.params,
620 fn.body,
621 false
622 );
623
624 arrowFunc.returnType = fn.returnType;
625 arrowFunc.defaults = fn.defaults;
626 arrowFunc.rest = fn.rest;
627 arrowFunc.async = fn.async;
628 arrowFunc.generator = fn.generator;
629
630 return arrowFunc;
631 };
632
633 const createArrowProperty = prop =>
634 withComments(j.classProperty(

Callers 1

createArrowPropertyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected