MCPcopy
hub / github.com/webpack/webpack / callHooksForInfo

Method callHooksForInfo

lib/javascript/JavascriptParser.js:4483–4485  ·  view source on GitHub ↗

* Call hooks for info. * @template T * @template R * @param {HookMap<SyncBailHook<T, R>>} hookMap hooks that should be called * @param {ExportedVariableInfo} info variable info * @param {AsArray<T>} args args for the hook * @returns {R | undefined} result of hook

(hookMap, info, ...args)

Source from the content-addressed store, hash-verified

4481 * @returns {R | undefined} result of hook
4482 */
4483 callHooksForInfo(hookMap, info, ...args) {
4484 return this._callHooksForInfo(hookMap, info, undefined, undefined, args);
4485 }
4486
4487 /**
4488 * Call hooks for info with fallback.

Callers 5

getVarInfoMethod · 0.95
walkCallExpressionMethod · 0.95
walkMemberExpressionMethod · 0.95

Calls 1

_callHooksForInfoMethod · 0.95

Tested by

no test coverage detected