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

Function hasNoCallsToDeprecatedAPIs

transforms/class.js:203–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

201 ) > 0;
202
203 const hasNoCallsToDeprecatedAPIs = classPath => {
204 if (checkDeprecatedAPICalls(classPath)) {
205 console.warn(
206 file.path + ': `' + ReactUtils.directlyGetComponentName(classPath) + '` ' +
207 'was skipped because of deprecated API calls. Remove calls to ' +
208 DEPRECATED_APIS.join(', ') + ' in your React component and re-run ' +
209 'this script.'
210 );
211 return false;
212 }
213 return true;
214 };
215
216 const hasNoRefsToAPIsThatWillBeRemoved = classPath => {
217 const hasInvalidCalls = (

Callers 1

class.jsFile · 0.85

Calls 1

checkDeprecatedAPICallsFunction · 0.85

Tested by

no test coverage detected