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

Function areMixinsConvertible

transforms/class.js:353–361  ·  view source on GitHub ↗
(mixinIdentifierNames, classPath)

Source from the content-addressed store, hash-verified

351 };
352
353 const areMixinsConvertible = (mixinIdentifierNames, classPath) => {
354 if (
355 ReactUtils.directlyHasMixinsField(classPath) &&
356 !ReactUtils.directlyHasSpecificMixins(classPath, mixinIdentifierNames)
357 ) {
358 return false;
359 }
360 return true;
361 };
362
363 // ---------------------------------------------------------------------------
364 // Collectors

Callers 1

mixinsFilterFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected