MCPcopy
hub / github.com/webpack/webpack / callHooksForExpression

Method callHooksForExpression

lib/javascript/JavascriptParser.js:4410–4418  ·  view source on GitHub ↗

* Call hooks for expression. * @template T * @template R * @param {HookMap<SyncBailHook<T, R>>} hookMap hooks the should be called * @param {Expression | Super} expr expression * @param {AsArray<T>} args args for the hook * @returns {R | undefined} result of hook

(hookMap, expr, ...args)

Source from the content-addressed store, hash-verified

4408 * @returns {R | undefined} result of hook
4409 */
4410 callHooksForExpression(hookMap, expr, ...args) {
4411 return this.callHooksForExpressionWithFallback(
4412 hookMap,
4413 expr,
4414 undefined,
4415 undefined,
4416 ...args
4417 );
4418 }
4419
4420 /**
4421 * Call hooks for expression with fallback.

Callers 3

_initializeEvaluatingMethod · 0.95
walkUnaryExpressionMethod · 0.95
walkNewExpressionMethod · 0.95

Tested by

no test coverage detected