MCPcopy Create free account
hub / github.com/ptmt/react-native-macos / _finalizeReadResult

Method _finalizeReadResult

packager/src/node-haste/Module.js:248–250  ·  view source on GitHub ↗

* To what we read from the cache or worker, we need to add id and source.

(source: string, result: TransformedCode)

Source from the content-addressed store, hash-verified

246 * To what we read from the cache or worker, we need to add id and source.
247 */
248 _finalizeReadResult(source: string, result: TransformedCode): ReadResult {
249 return {...result, id: this._getHasteName(), source};
250 }
251
252 _transformCodeForCallback(
253 cacheProps: ReadTransformProps,

Callers 2

readFreshMethod · 0.95

Calls 1

_getHasteNameMethod · 0.95

Tested by

no test coverage detected