MCPcopy Index your code
hub / github.com/angular/angular / pureFunction4Internal

Function pureFunction4Internal

packages/core/src/render3/pure_function.ts:435–454  ·  view source on GitHub ↗
(
  lView: LView,
  bindingRoot: number,
  slotOffset: number,
  pureFn: (v1: any, v2: any, v3: any, v4: any) => any,
  exp1: any,
  exp2: any,
  exp3: any,
  exp4: any,
  thisArg?: any,
)

Source from the content-addressed store, hash-verified

433 *
434 */
435export function pureFunction4Internal(
436 lView: LView,
437 bindingRoot: number,
438 slotOffset: number,
439 pureFn: (v1: any, v2: any, v3: any, v4: any) => any,
440 exp1: any,
441 exp2: any,
442 exp3: any,
443 exp4: any,
444 thisArg?: any,
445): any {
446 const bindingIndex = bindingRoot + slotOffset;
447 return bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4)
448 ? updateBinding(
449 lView,
450 bindingIndex + 4,
451 thisArg ? pureFn.call(thisArg, exp1, exp2, exp3, exp4) : pureFn(exp1, exp2, exp3, exp4),
452 )
453 : getPureFunctionReturnValue(lView, bindingIndex + 4);
454}
455
456/**
457 * pureFunction instruction that can support any number of bindings.

Callers 2

ɵɵpipeBind4Function · 0.90
ɵɵpureFunction4Function · 0.85

Calls 3

bindingUpdated4Function · 0.90
updateBindingFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…