MCPcopy
hub / github.com/angular/angular / ɵɵpureFunction5

Function ɵɵpureFunction5

packages/core/src/render3/pure_function.ts:167–182  ·  view source on GitHub ↗
(
  slotOffset: number,
  pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any) => any,
  exp1: any,
  exp2: any,
  exp3: any,
  exp4: any,
  exp5: any,
)

Source from the content-addressed store, hash-verified

165 * @codeGenApi
166 */
167export function ɵɵpureFunction5(
168 slotOffset: number,
169 pureFn: (v1: any, v2: any, v3: any, v4: any, v5: any) => any,
170 exp1: any,
171 exp2: any,
172 exp3: any,
173 exp4: any,
174 exp5: any,
175): any {
176 const bindingIndex = getBindingRoot() + slotOffset;
177 const lView = getLView();
178 const different = bindingUpdated4(lView, bindingIndex, exp1, exp2, exp3, exp4);
179 return bindingUpdated(lView, bindingIndex + 4, exp5) || different
180 ? updateBinding(lView, bindingIndex + 5, pureFn(exp1, exp2, exp3, exp4, exp5))
181 : getBinding(lView, bindingIndex + 5);
182}
183
184/**
185 * If the value of any provided exp has changed, calls the pure function to return

Callers

nothing calls this directly

Calls 6

getBindingRootFunction · 0.90
getLViewFunction · 0.90
bindingUpdated4Function · 0.90
bindingUpdatedFunction · 0.90
updateBindingFunction · 0.90
getBindingFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…