MCPcopy Create free account
hub / github.com/angular/angular / ɵɵpipeBindV

Function ɵɵpipeBindV

packages/core/src/render3/pipe.ts:302–316  ·  view source on GitHub ↗
(index: number, slotOffset: number, values: [any, ...any[]])

Source from the content-addressed store, hash-verified

300 * @codeGenApi
301 */
302export function ɵɵpipeBindV(index: number, slotOffset: number, values: [any, ...any[]]): any {
303 const adjustedIndex = index + HEADER_OFFSET;
304 const lView = getLView();
305 const pipeInstance = load<PipeTransform>(lView, adjustedIndex);
306 return isPure(lView, adjustedIndex)
307 ? pureFunctionVInternal(
308 lView,
309 getBindingRoot(),
310 slotOffset,
311 pipeInstance.transform,
312 values,
313 pipeInstance,
314 )
315 : pipeInstance.transform.apply(pipeInstance, values);
316}
317
318function isPure(lView: LView, index: number): boolean {
319 return (<PipeDef<any>>lView[TVIEW].data[index]).pure;

Callers

nothing calls this directly

Calls 6

getLViewFunction · 0.90
loadFunction · 0.90
pureFunctionVInternalFunction · 0.90
getBindingRootFunction · 0.90
isPureFunction · 0.85
applyMethod · 0.65

Tested by

no test coverage detected