Skip to content

Commit a2f8f55

Browse files
benleshmhevery
authored andcommitted
refactor(ivy): rename flushHooksUpTo to select (angular#29527)
PR Close angular#29527
1 parent a28b3e3 commit a2f8f55

File tree

14 files changed

+128
-128
lines changed

14 files changed

+128
-128
lines changed

packages/compiler-cli/test/compliance/r3_compiler_compliance_spec.ts

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ describe('compiler compliance', () => {
798798
if (rf & 2) {
799799
const $myComp$ = $r3$.ɵnextContext();
800800
const $foo$ = $r3$.ɵreference(1);
801-
$r3$.ɵflushHooksUpTo(1);
801+
$r3$.ɵselect(1);
802802
$r3$.ɵtextBinding(1, $r3$.ɵinterpolation2("", $myComp$.salutation, " ", $foo$, ""));
803803
}
804804
}
@@ -1257,7 +1257,7 @@ describe('compiler compliance', () => {
12571257
}
12581258
if (rf & 2) {
12591259
$r3$.ɵelementProperty(0, "ngIf", $r3$.ɵbind(ctx.visible));
1260-
$r3$.ɵflushHooksUpTo(1);
1260+
$r3$.ɵselect(1);
12611261
$r3$.ɵelementProperty(1, "ngIf", $r3$.ɵbind(ctx.visible));
12621262
}
12631263
}
@@ -1950,7 +1950,7 @@ describe('compiler compliance', () => {
19501950
}
19511951
if (rf & 2) {
19521952
$r3$.ɵtextBinding(0, $r3$.ɵinterpolation1("", $r3$.ɵpipeBind2(1, 3, $r3$.ɵpipeBind2(2, 6, ctx.name, ctx.size), ctx.size), ""));
1953-
$r3$.ɵflushHooksUpTo(4);
1953+
$r3$.ɵselect(4);
19541954
$r3$.ɵtextBinding(4, $r3$.ɵinterpolation2("", $r3$.ɵpipeBindV(5, 9, $r3$.ɵpureFunction1(18, $c0$, ctx.name)), " ", (ctx.name ? 1 : $r3$.ɵpipeBind1(6, 16, 2)), ""));
19551955
}
19561956
},
@@ -2065,7 +2065,7 @@ describe('compiler compliance', () => {
20652065
}
20662066
if (rf & 2) {
20672067
const $user$ = $r3$.ɵreference(1);
2068-
$r3$.ɵflushHooksUpTo(2);
2068+
$r3$.ɵselect(2);
20692069
$r3$.ɵtextBinding(2, $r3$.ɵinterpolation1("Hello ", $user$.value, "!"));
20702070
}
20712071
},
@@ -2128,7 +2128,7 @@ describe('compiler compliance', () => {
21282128
$r3$.ɵnextContext();
21292129
const $foo$ = $r3$.ɵreference(1);
21302130
const $baz$ = $r3$.ɵreference(5);
2131-
$r3$.ɵflushHooksUpTo(1);
2131+
$r3$.ɵselect(1);
21322132
$r3$.ɵtextBinding(1, $r3$.ɵinterpolation3("", $foo$, "-", $bar$, "-", $baz$, ""));
21332133
}
21342134
}
@@ -2144,7 +2144,7 @@ describe('compiler compliance', () => {
21442144
const $bar$ = $r3$.ɵreference(4);
21452145
$r3$.ɵnextContext();
21462146
const $foo$ = $r3$.ɵreference(1);
2147-
$r3$.ɵflushHooksUpTo(1);
2147+
$r3$.ɵselect(1);
21482148
$r3$.ɵtextBinding(1, $r3$.ɵinterpolation2(" ", $foo$, "-", $bar$, " "));
21492149
}
21502150
}
@@ -2164,7 +2164,7 @@ describe('compiler compliance', () => {
21642164
}
21652165
if (rf & 2) {
21662166
const $foo$ = $r3$.ɵreference(1);
2167-
$r3$.ɵflushHooksUpTo(2);
2167+
$r3$.ɵselect(2);
21682168
$r3$.ɵtextBinding(2, $r3$.ɵinterpolation1(" ", $foo$, " "));
21692169
}
21702170
},
@@ -2217,7 +2217,7 @@ describe('compiler compliance', () => {
22172217
if (rf & 2) {
22182218
const $item$ = $i0$.ɵnextContext().$implicit;
22192219
const $foo$ = $i0$.ɵreference(2);
2220-
$r3$.ɵflushHooksUpTo(1);
2220+
$r3$.ɵselect(1);
22212221
$i0$.ɵtextBinding(1, $i0$.ɵinterpolation2(" ", $foo$, " - ", $item$, " "));
22222222
}
22232223
}
@@ -2231,7 +2231,7 @@ describe('compiler compliance', () => {
22312231
}
22322232
if (rf & 2) {
22332233
const $app$ = $i0$.ɵnextContext();
2234-
$r3$.ɵflushHooksUpTo(3);
2234+
$r3$.ɵselect(3);
22352235
$i0$.ɵelementProperty(3, "ngIf", $i0$.ɵbind($app$.showing));
22362236
}
22372237
}
@@ -2323,7 +2323,7 @@ describe('compiler compliance', () => {
23232323
}
23242324
if (rf & 2) {
23252325
$r3$.ɵelementProperty(0, "name", $r3$.ɵbind(ctx.name1));
2326-
$r3$.ɵflushHooksUpTo(1);
2326+
$r3$.ɵselect(1);
23272327
$r3$.ɵelementProperty(1, "name", $r3$.ɵbind(ctx.name2));
23282328
}
23292329
},
@@ -2455,7 +2455,7 @@ describe('compiler compliance', () => {
24552455
$r3$.ɵelementEnd();
24562456
}
24572457
if (rf & 2) {
2458-
$r3$.ɵflushHooksUpTo(1);
2458+
$r3$.ɵselect(1);
24592459
$r3$.ɵelementProperty(1,"forOf",$r3$.ɵbind(ctx.items));
24602460
}
24612461
},
@@ -2519,7 +2519,7 @@ describe('compiler compliance', () => {
25192519
}
25202520
if (rf & 2) {
25212521
const $item$ = ctx.$implicit;
2522-
$r3$.ɵflushHooksUpTo(1);
2522+
$r3$.ɵselect(1);
25232523
$r3$.ɵtextBinding(1, $r3$.ɵinterpolation1("", $item$.name, ""));
25242524
}
25252525
}
@@ -2537,7 +2537,7 @@ describe('compiler compliance', () => {
25372537
$r3$.ɵelementEnd();
25382538
}
25392539
if (rf & 2) {
2540-
$r3$.ɵflushHooksUpTo(1);
2540+
$r3$.ɵselect(1);
25412541
$r3$.ɵelementProperty(1, "forOf", $r3$.ɵbind(ctx.items));
25422542
}
25432543
},
@@ -2602,7 +2602,7 @@ describe('compiler compliance', () => {
26022602
if (rf & 2) {
26032603
const $info$ = ctx.$implicit;
26042604
const $item$ = $r3$.ɵnextContext().$implicit;
2605-
$r3$.ɵflushHooksUpTo(1);
2605+
$r3$.ɵselect(1);
26062606
$r3$.ɵtextBinding(1, $r3$.ɵinterpolation2(" ", $item$.name, ": ", $info$.description, " "));
26072607
}
26082608
}
@@ -2620,9 +2620,9 @@ describe('compiler compliance', () => {
26202620
}
26212621
if (rf & 2) {
26222622
const $item$ = ctx.$implicit;
2623-
$r3$.ɵflushHooksUpTo(2);
2623+
$r3$.ɵselect(2);
26242624
$r3$.ɵtextBinding(2, $r3$.ɵinterpolation1("", IDENT.name, ""));
2625-
$r3$.ɵflushHooksUpTo(4);
2625+
$r3$.ɵselect(4);
26262626
$r3$.ɵelementProperty(4, "forOf", $r3$.ɵbind(IDENT.infos));
26272627
}
26282628
}
@@ -2641,7 +2641,7 @@ describe('compiler compliance', () => {
26412641
$r3$.ɵelementEnd();
26422642
}
26432643
if (rf & 2) {
2644-
$r3$.ɵflushHooksUpTo(1);
2644+
$r3$.ɵselect(1);
26452645
$r3$.ɵelementProperty(1, "forOf", $r3$.ɵbind(ctx.items));
26462646
}
26472647
},

packages/compiler-cli/test/compliance/r3_view_compiler_binding_spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ describe('compiler compliance: bindings', () => {
4444
$i0$.ɵelementEnd();
4545
}
4646
if (rf & 2) {
47-
$r3$.ɵflushHooksUpTo(1);
47+
$r3$.ɵselect(1);
4848
$i0$.ɵtextBinding(1, $i0$.ɵinterpolation1("Hello ", $ctx$.name, ""));
4949
}
5050
}`;
@@ -474,7 +474,7 @@ describe('compiler compliance: bindings', () => {
474474
}
475475
if (rf & 2) {
476476
const $_r0$ = $i0$.ɵreference(1);
477-
$r3$.ɵflushHooksUpTo(4);
477+
$r3$.ɵselect(4);
478478
$i0$.ɵtextBinding(4, $i0$.ɵinterpolation1(" ", $_r0$.id, " "));
479479
}
480480
}

0 commit comments

Comments
 (0)