( lView: LView, bindingRoot: number, slotOffset: number, pureFn: (v: any) => any, exp: any, thisArg?: any, )
| 337 | * @returns Updated or cached value |
| 338 | */ |
| 339 | export 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 |
no test coverage detected
searching dependent graphs…