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

Function isPrimPropertyWithTypeAnnotation

transforms/class.js:141–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

139 );
140
141 const isPrimPropertyWithTypeAnnotation = prop => (
142 prop.key &&
143 prop.key.type === 'Identifier' &&
144 prop.value &&
145 prop.value.type === 'TypeCastExpression' &&
146 isPrimExpression(prop.value.expression)
147 );
148
149 const hasSingleReturnStatement = value => (
150 (

Callers 3

canConvertToClassFunction · 0.85
createESClassFunction · 0.85

Calls 1

isPrimExpressionFunction · 0.85

Tested by

no test coverage detected