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

Function pureFunctionVInternal

packages/core/src/render3/pure_function.ts:471–487  ·  view source on GitHub ↗
(
  lView: LView,
  bindingRoot: number,
  slotOffset: number,
  pureFn: (...v: any[]) => any,
  exps: any[],
  thisArg?: any,
)

Source from the content-addressed store, hash-verified

469 * @returns Updated or cached value
470 */
471export function pureFunctionVInternal(
472 lView: LView,
473 bindingRoot: number,
474 slotOffset: number,
475 pureFn: (...v: any[]) => any,
476 exps: any[],
477 thisArg?: any,
478): any {
479 let bindingIndex = bindingRoot + slotOffset;
480 let different = false;
481 for (let i = 0; i < exps.length; i++) {
482 bindingUpdated(lView, bindingIndex++, exps[i]) && (different = true);
483 }
484 return different
485 ? updateBinding(lView, bindingIndex, pureFn.apply(thisArg, exps))
486 : getPureFunctionReturnValue(lView, bindingIndex);
487}

Callers 2

ɵɵpipeBindVFunction · 0.90
ɵɵpureFunctionVFunction · 0.85

Calls 4

bindingUpdatedFunction · 0.90
updateBindingFunction · 0.90
applyMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…