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

Function collectNonStaticProperties

transforms/class.js:410–419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408 };
409
410 const collectNonStaticProperties = specPath => specPath.properties
411 .filter(prop =>
412 !(filterDefaultPropsField(prop) || filterGetInitialStateField(prop))
413 )
414 .filter(prop => (!STATIC_KEYS.hasOwnProperty(prop.key.name)) && prop.key.name !== STATIC_KEY)
415 .filter(prop =>
416 isFunctionExpression(prop) ||
417 isPrimPropertyWithTypeAnnotation(prop) ||
418 isPrimProperty(prop)
419 );
420
421 const findRequirePathAndBinding = (moduleName) => {
422 let result = null;

Callers 1

updateToClassFunction · 0.85

Calls 5

filterDefaultPropsFieldFunction · 0.85
isFunctionExpressionFunction · 0.85
isPrimPropertyFunction · 0.85

Tested by

no test coverage detected