MCPcopy
hub / github.com/webpack/webpack / getCachedKeys

Function getCachedKeys

lib/serialization/PlainObjectSerializer.js:60–71  ·  view source on GitHub ↗
(keys, cacheAssoc)

Source from the content-addressed store, hash-verified

58 * @returns {(keyof T)[]} keys
59 */
60const getCachedKeys = (keys, cacheAssoc) => {
61 let root = cache.get(cacheAssoc);
62 if (root === undefined) {
63 root = new ObjectStructure();
64 cache.set(cacheAssoc, root);
65 }
66 let current = root;
67 for (const key of keys) {
68 current = current.key(key);
69 }
70 return current.getKeys(keys);
71};
72
73class PlainObjectSerializer {
74 /**

Callers 1

serializeMethod · 0.85

Calls 4

keyMethod · 0.80
getKeysMethod · 0.80
getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected