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

Function pureFunction1Internal

packages/core/src/render3/pure_function.ts:339–351  ·  view source on GitHub ↗
(
  lView: LView,
  bindingRoot: number,
  slotOffset: number,
  pureFn: (v: any) => any,
  exp: any,
  thisArg?: any,
)

Source from the content-addressed store, hash-verified

337 * @returns Updated or cached value
338 */
339export function pureFunction1Internal(
340 lView: LView,
341 bindingRoot: number,
342 slotOffset: number,
343 pureFn: (v: any) => any,
344 exp: any,
345 thisArg?: any,
346): any {
347 const bindingIndex = bindingRoot + slotOffset;
348 return bindingUpdated(lView, bindingIndex, exp)
349 ? updateBinding(lView, bindingIndex + 1, thisArg ? pureFn.call(thisArg, exp) : pureFn(exp))
350 : getPureFunctionReturnValue(lView, bindingIndex + 1);
351}
352
353/**
354 * If the value of any provided exp has changed, calls the pure function to return

Callers 2

ɵɵpipeBind1Function · 0.90
ɵɵpureFunction1Function · 0.85

Calls 3

bindingUpdatedFunction · 0.90
updateBindingFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…