MCPcopy
hub / github.com/webpack/webpack / getInfo

Function getInfo

lib/util/cleverMerge.js:160–170  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

158 * @returns {Partial<ObjectParsedPropertyEntry<T>>} object parsed property entry
159 */
160 const getInfo = (p) => {
161 const entry = info.get(p);
162 if (entry !== undefined) return entry;
163 const newEntry = {
164 base: undefined,
165 byProperty: undefined,
166 byValues: undefined
167 };
168 info.set(p, newEntry);
169 return newEntry;
170 };
171 for (const key_ of Object.keys(obj)) {
172 const key = /** @type {keyof T} */ (key_);
173 if (typeof key === "string" && key.startsWith("by")) {

Callers 4

parseObjectFunction · 0.85
respondWithUrlModuleMethod · 0.85
applyMethod · 0.85

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected