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

Function pureFunction3Internal

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

Source from the content-addressed store, hash-verified

397 * @returns Updated or cached value
398 */
399export function pureFunction3Internal(
400 lView: LView,
401 bindingRoot: number,
402 slotOffset: number,
403 pureFn: (v1: any, v2: any, v3: any) => any,
404 exp1: any,
405 exp2: any,
406 exp3: any,
407 thisArg?: any,
408): any {
409 const bindingIndex = bindingRoot + slotOffset;
410 return bindingUpdated3(lView, bindingIndex, exp1, exp2, exp3)
411 ? updateBinding(
412 lView,
413 bindingIndex + 3,
414 thisArg ? pureFn.call(thisArg, exp1, exp2, exp3) : pureFn(exp1, exp2, exp3),
415 )
416 : getPureFunctionReturnValue(lView, bindingIndex + 3);
417}
418
419/**
420 * If the value of any provided exp has changed, calls the pure function to return

Callers 2

ɵɵpipeBind3Function · 0.90
ɵɵpureFunction3Function · 0.85

Calls 3

bindingUpdated3Function · 0.90
updateBindingFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…