@@ -43,16 +43,15 @@ import {NO_CHANGE} from './tokens';
4343 *
4444 * @param slotOffset the offset from binding root to the reserved slot
4545 * @param pureFn Function that returns a value
46- * @param thisArg Optional calling context of pureFn
4746 * @returns value
4847 *
4948 * @codeGenApi
5049 */
51- export function ɵɵpureFunction0 < T > ( slotOffset : number , pureFn : ( ) => T , thisArg ?: any ) : T {
50+ export function ɵɵpureFunction0 < T > ( slotOffset : number , pureFn : ( ) => T ) : T {
5251 const bindingIndex = getBindingRoot ( ) + slotOffset ;
5352 const lView = getLView ( ) ;
5453 return lView [ bindingIndex ] === NO_CHANGE
55- ? updateBinding ( lView , bindingIndex , thisArg ? pureFn . call ( thisArg ) : pureFn ( ) )
54+ ? updateBinding ( lView , bindingIndex , pureFn ( ) )
5655 : getBinding ( lView , bindingIndex ) ;
5756}
5857
@@ -63,18 +62,12 @@ export function ɵɵpureFunction0<T>(slotOffset: number, pureFn: () => T, thisAr
6362 * @param slotOffset the offset from binding root to the reserved slot
6463 * @param pureFn Function that returns an updated value
6564 * @param exp Updated expression value
66- * @param thisArg Optional calling context of pureFn
6765 * @returns Updated or cached value
6866 *
6967 * @codeGenApi
7068 */
71- export function ɵɵpureFunction1 (
72- slotOffset : number ,
73- pureFn : ( v : any ) => any ,
74- exp : any ,
75- thisArg ?: any ,
76- ) : any {
77- return pureFunction1Internal ( getLView ( ) , getBindingRoot ( ) , slotOffset , pureFn , exp , thisArg ) ;
69+ export function ɵɵpureFunction1 ( slotOffset : number , pureFn : ( v : any ) => any , exp : any ) : any {
70+ return pureFunction1Internal ( getLView ( ) , getBindingRoot ( ) , slotOffset , pureFn , exp ) ;
7871}
7972
8073/**
@@ -85,7 +78,6 @@ export function ɵɵpureFunction1(
8578 * @param pureFn
8679 * @param exp1
8780 * @param exp2
88- * @param thisArg Optional calling context of pureFn
8981 * @returns Updated or cached value
9082 *
9183 * @codeGenApi
@@ -95,17 +87,8 @@ export function ɵɵpureFunction2(
9587 pureFn : ( v1 : any , v2 : any ) => any ,
9688 exp1 : any ,
9789 exp2 : any ,
98- thisArg ?: any ,
9990) : any {
100- return pureFunction2Internal (
101- getLView ( ) ,
102- getBindingRoot ( ) ,
103- slotOffset ,
104- pureFn ,
105- exp1 ,
106- exp2 ,
107- thisArg ,
108- ) ;
91+ return pureFunction2Internal ( getLView ( ) , getBindingRoot ( ) , slotOffset , pureFn , exp1 , exp2 ) ;
10992}
11093
11194/**
@@ -117,7 +100,6 @@ export function ɵɵpureFunction2(
117100 * @param exp1
118101 * @param exp2
119102 * @param exp3
120- * @param thisArg Optional calling context of pureFn
121103 * @returns Updated or cached value
122104 *
123105 * @codeGenApi
@@ -128,18 +110,8 @@ export function ɵɵpureFunction3(
128110 exp1 : any ,
129111 exp2 : any ,
130112 exp3 : any ,
131- thisArg ?: any ,
132113) : any {
133- return pureFunction3Internal (
134- getLView ( ) ,
135- getBindingRoot ( ) ,
136- slotOffset ,
137- pureFn ,
138- exp1 ,
139- exp2 ,
140- exp3 ,
141- thisArg ,
142- ) ;
114+ return pureFunction3Internal ( getLView ( ) , getBindingRoot ( ) , slotOffset , pureFn , exp1 , exp2 , exp3 ) ;
143115}
144116
145117/**
@@ -152,7 +124,6 @@ export function ɵɵpureFunction3(
152124 * @param exp2
153125 * @param exp3
154126 * @param exp4
155- * @param thisArg Optional calling context of pureFn
156127 * @returns Updated or cached value
157128 *
158129 * @codeGenApi
@@ -175,7 +146,6 @@ export function ɵɵpureFunction4(
175146 exp2 ,
176147 exp3 ,
177148 exp4 ,
178- thisArg ,
179149 ) ;
180150}
181151
@@ -190,7 +160,6 @@ export function ɵɵpureFunction4(
190160 * @param exp3
191161 * @param exp4
192162 * @param exp5
193- * @param thisArg Optional calling context of pureFn
194163 * @returns Updated or cached value
195164 *
196165 * @codeGenApi
@@ -203,19 +172,12 @@ export function ɵɵpureFunction5(
203172 exp3 : any ,
204173 exp4 : any ,
205174 exp5 : any ,
206- thisArg ?: any ,
207175) : any {
208176 const bindingIndex = getBindingRoot ( ) + slotOffset ;
209177 const lView = getLView ( ) ;
210178 const different = bindingUpdated4 ( lView , bindingIndex , exp1 , exp2 , exp3 , exp4 ) ;
211179 return bindingUpdated ( lView , bindingIndex + 4 , exp5 ) || different
212- ? updateBinding (
213- lView ,
214- bindingIndex + 5 ,
215- thisArg
216- ? pureFn . call ( thisArg , exp1 , exp2 , exp3 , exp4 , exp5 )
217- : pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 ) ,
218- )
180+ ? updateBinding ( lView , bindingIndex + 5 , pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 ) )
219181 : getBinding ( lView , bindingIndex + 5 ) ;
220182}
221183
@@ -231,7 +193,6 @@ export function ɵɵpureFunction5(
231193 * @param exp4
232194 * @param exp5
233195 * @param exp6
234- * @param thisArg Optional calling context of pureFn
235196 * @returns Updated or cached value
236197 *
237198 * @codeGenApi
@@ -245,19 +206,12 @@ export function ɵɵpureFunction6(
245206 exp4 : any ,
246207 exp5 : any ,
247208 exp6 : any ,
248- thisArg ?: any ,
249209) : any {
250210 const bindingIndex = getBindingRoot ( ) + slotOffset ;
251211 const lView = getLView ( ) ;
252212 const different = bindingUpdated4 ( lView , bindingIndex , exp1 , exp2 , exp3 , exp4 ) ;
253213 return bindingUpdated2 ( lView , bindingIndex + 4 , exp5 , exp6 ) || different
254- ? updateBinding (
255- lView ,
256- bindingIndex + 6 ,
257- thisArg
258- ? pureFn . call ( thisArg , exp1 , exp2 , exp3 , exp4 , exp5 , exp6 )
259- : pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 , exp6 ) ,
260- )
214+ ? updateBinding ( lView , bindingIndex + 6 , pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 , exp6 ) )
261215 : getBinding ( lView , bindingIndex + 6 ) ;
262216}
263217
@@ -274,7 +228,6 @@ export function ɵɵpureFunction6(
274228 * @param exp5
275229 * @param exp6
276230 * @param exp7
277- * @param thisArg Optional calling context of pureFn
278231 * @returns Updated or cached value
279232 *
280233 * @codeGenApi
@@ -289,19 +242,12 @@ export function ɵɵpureFunction7(
289242 exp5 : any ,
290243 exp6 : any ,
291244 exp7 : any ,
292- thisArg ?: any ,
293245) : any {
294246 const bindingIndex = getBindingRoot ( ) + slotOffset ;
295247 const lView = getLView ( ) ;
296248 let different = bindingUpdated4 ( lView , bindingIndex , exp1 , exp2 , exp3 , exp4 ) ;
297249 return bindingUpdated3 ( lView , bindingIndex + 4 , exp5 , exp6 , exp7 ) || different
298- ? updateBinding (
299- lView ,
300- bindingIndex + 7 ,
301- thisArg
302- ? pureFn . call ( thisArg , exp1 , exp2 , exp3 , exp4 , exp5 , exp6 , exp7 )
303- : pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 , exp6 , exp7 ) ,
304- )
250+ ? updateBinding ( lView , bindingIndex + 7 , pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 , exp6 , exp7 ) )
305251 : getBinding ( lView , bindingIndex + 7 ) ;
306252}
307253
@@ -319,7 +265,6 @@ export function ɵɵpureFunction7(
319265 * @param exp6
320266 * @param exp7
321267 * @param exp8
322- * @param thisArg Optional calling context of pureFn
323268 * @returns Updated or cached value
324269 *
325270 * @codeGenApi
@@ -335,19 +280,12 @@ export function ɵɵpureFunction8(
335280 exp6 : any ,
336281 exp7 : any ,
337282 exp8 : any ,
338- thisArg ?: any ,
339283) : any {
340284 const bindingIndex = getBindingRoot ( ) + slotOffset ;
341285 const lView = getLView ( ) ;
342286 const different = bindingUpdated4 ( lView , bindingIndex , exp1 , exp2 , exp3 , exp4 ) ;
343287 return bindingUpdated4 ( lView , bindingIndex + 4 , exp5 , exp6 , exp7 , exp8 ) || different
344- ? updateBinding (
345- lView ,
346- bindingIndex + 8 ,
347- thisArg
348- ? pureFn . call ( thisArg , exp1 , exp2 , exp3 , exp4 , exp5 , exp6 , exp7 , exp8 )
349- : pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 , exp6 , exp7 , exp8 ) ,
350- )
288+ ? updateBinding ( lView , bindingIndex + 8 , pureFn ( exp1 , exp2 , exp3 , exp4 , exp5 , exp6 , exp7 , exp8 ) )
351289 : getBinding ( lView , bindingIndex + 8 ) ;
352290}
353291
@@ -361,7 +299,6 @@ export function ɵɵpureFunction8(
361299 * @param pureFn A pure function that takes binding values and builds an object or array
362300 * containing those values.
363301 * @param exps An array of binding values
364- * @param thisArg Optional calling context of pureFn
365302 * @returns Updated or cached value
366303 *
367304 * @codeGenApi
@@ -370,9 +307,8 @@ export function ɵɵpureFunctionV(
370307 slotOffset : number ,
371308 pureFn : ( ...v : any [ ] ) => any ,
372309 exps : any [ ] ,
373- thisArg ?: any ,
374310) : any {
375- return pureFunctionVInternal ( getLView ( ) , getBindingRoot ( ) , slotOffset , pureFn , exps , thisArg ) ;
311+ return pureFunctionVInternal ( getLView ( ) , getBindingRoot ( ) , slotOffset , pureFn , exps ) ;
376312}
377313
378314/**
0 commit comments