MCPcopy
hub / github.com/webpack/webpack / cachedParseObject

Function cachedParseObject

lib/util/cleverMerge.js:134–140  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

132 * @returns {ParsedObject<T>} parsed object
133 */
134const cachedParseObject = (obj) => {
135 const entry = parseCache.get(obj);
136 if (entry !== undefined) return entry;
137 const result = parseObject(obj);
138 parseCache.set(obj, result);
139 return result;
140};
141
142/** @typedef {{ [p: string]: { [p: string]: EXPECTED_ANY } } | DynamicFunction} ByObject */
143

Callers 1

_cleverMergeFunction · 0.85

Calls 3

parseObjectFunction · 0.85
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected