MCPcopy Index your code
hub / github.com/ptmt/react-native-macos / _transformCodeForCallback

Method _transformCodeForCallback

packager/src/node-haste/Module.js:252–263  ·  view source on GitHub ↗
(
    cacheProps: ReadTransformProps,
    callback: (error: ?Error, result: ?TransformedCode) => void,
  )

Source from the content-addressed store, hash-verified

250 }
251
252 _transformCodeForCallback(
253 cacheProps: ReadTransformProps,
254 callback: (error: ?Error, result: ?TransformedCode) => void,
255 ) {
256 const {_transformCode} = this;
257 invariant(_transformCode != null, 'missing code transform funtion');
258 const {sourceCode, transformOptions} = cacheProps;
259 return _transformCode(this, sourceCode, transformOptions).then(
260 freshResult => process.nextTick(callback, undefined, freshResult),
261 error => process.nextTick(callback, error),
262 );
263 }
264
265 _transformAndStoreCodeGlobally(
266 cacheProps: ReadTransformProps,

Callers 2

_getTransformedCodeMethod · 0.95

Calls 2

invariantFunction · 0.85
thenMethod · 0.45

Tested by

no test coverage detected