MCPcopy Index your code
hub / github.com/angular/angular / ɵɵarrowFunction

Function ɵɵarrowFunction

packages/core/src/render3/instructions/arrow_function.ts:23–33  ·  view source on GitHub ↗
(
  slotOffset: number,
  factory: (context: T, view: LView) => (...args: unknown[]) => unknown,
  context: T,
)

Source from the content-addressed store, hash-verified

21 * @codeGenApi
22 */
23export function ɵɵarrowFunction<T>(
24 slotOffset: number,
25 factory: (context: T, view: LView) => (...args: unknown[]) => unknown,
26 context: T,
27) {
28 const bindingIndex = getBindingRoot() + slotOffset;
29 const lView = getLView();
30 return lView[bindingIndex] === NO_CHANGE
31 ? updateBinding(lView, bindingIndex, factory(context, lView))
32 : getBinding(lView, bindingIndex);
33}

Callers

nothing calls this directly

Calls 5

getBindingRootFunction · 0.90
getLViewFunction · 0.90
updateBindingFunction · 0.90
getBindingFunction · 0.90
factoryFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…