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

Function withComments

transforms/class.js:116–119  ·  view source on GitHub ↗
(to, from)

Source from the content-addressed store, hash-verified

114 specPath.properties.find(createFindPropFn(GET_INITIAL_STATE_FIELD));
115
116 const withComments = (to, from) => {
117 to.comments = from.comments;
118 return to;
119 };
120
121 const isPrimExpression = node => (
122 node.type === 'Literal' || ( // NOTE this might change in babylon v6

Callers 9

createDefaultPropsFunction · 0.70
createMethodDefinitionFunction · 0.70
createArrowPropertyFunction · 0.70
createClassPropertyFunction · 0.70
createESClassFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected