Skip to content

Commit

Permalink
fix(compiler): generate less code for advance instructions (#53845)
Browse files Browse the repository at this point in the history
We generate `advance` instructions before most update instructions and the majority of `advance` calls are advancing by one. We can save some bytes for the most common case by omitting the parameter for `advance(1)` altogether.

PR Close #53845
  • Loading branch information
crisbeto authored and atscott committed Jan 9, 2024
1 parent c4b266c commit 92fd6cc
Show file tree
Hide file tree
Showing 126 changed files with 302 additions and 323 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
}
if (rf & 2) {
$r3$.ɵɵproperty("dir", $r3$.ɵɵpureFunction0(2, $c0$));
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("dir", $r3$.ɵɵpureFunction1(4, $c2$, $r3$.ɵɵpureFunction0(3, $c1$)));
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ template: function Cmp_Template(rf, ctx) {
}
if (rf & 2) {
$r3$.ɵɵproperty("ngIf", ctx.visible);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("ngIf", ctx.visible);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ SimpleLayout.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
}
if (rf & 2) {
$r3$.ɵɵproperty("name", ctx.name1);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("name", ctx.name2);
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function MyComponent_div_0_span_3_Template(rf, ctx) {
if (rf & 2) {
const $item$ = $i0$.ɵɵnextContext().$implicit;
const $foo$ = $i0$.ɵɵreference(2);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$i0$.ɵɵtextInterpolate2(" ", $foo$, " - ", $item$, " ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ function MyComponent_div_0_span_3_Template(rf, ctx) {
if (rf & 2) {
const $item$ = $i0$.ɵɵnextContext().$implicit;
const $foo$ = $i0$.ɵɵreference(2);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$i0$.ɵɵtextInterpolate2(" ", $foo$, " - ", $item$, " ");
}
}

function MyComponent_div_0_Template(rf, ctx) {
if (rf & 1) {
$i0$.ɵɵelementStart(0, "div");
Expand All @@ -25,7 +25,7 @@ function MyComponent_div_0_span_3_Template(rf, ctx) {
$i0$.ɵɵproperty("ngIf", $app$.showing);
}
}

// ...
consts: [["foo", ""], [__AttributeMarker.Template__, "ngFor", "ngForOf"], [__AttributeMarker.Template__, "ngIf"]],
template:function MyComponent_Template(rf, ctx){
Expand All @@ -36,4 +36,3 @@ function MyComponent_div_0_span_3_Template(rf, ctx) {
$i0$.ɵɵproperty("ngForOf", ctx.items);
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function MyComponent_div_3_span_2_Template(rf, ctx) {
$r3$.ɵɵnextContext();
const $foo$ = $r3$.ɵɵreference(1);
const $baz$ = $r3$.ɵɵreference(5);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate3("", $foo$, "-", $bar$, "-", $baz$, "");
}
}
Expand All @@ -26,7 +26,7 @@ function MyComponent_div_3_span_2_Template(rf, ctx) {
const $bar$ = $r3$.ɵɵreference(4);
$r3$.ɵɵnextContext();
const $foo$ = $r3$.ɵɵreference(1);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate2(" ", $foo$, "-", $bar$, " ");
}
}
Expand All @@ -53,4 +53,3 @@ function MyComponent_div_3_span_2_Template(rf, ctx) {
dependencies:[IfDirective],
encapsulation: 2
});

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function MyComponent_div_3_span_2_Template(rf, ctx) {
$r3$.ɵɵnextContext();
const $foo$ = $r3$.ɵɵreference(1);
const $baz$ = $r3$.ɵɵreference(5);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate3("", $foo$, "-", $bar$, "-", $baz$, "");
}
}
Expand All @@ -26,7 +26,7 @@ function MyComponent_div_3_Template(rf, ctx) {
const $bar$ = $r3$.ɵɵreference(4);
$r3$.ɵɵnextContext();
const $foo$ = $r3$.ɵɵreference(1);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate2(" ", $foo$, "-", $bar$, " ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
}
if (rf & 2) {
$r3$.ɵɵproperty("dir", $r3$.ɵɵpureFunction0(2, $c0$));
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("dir", $r3$.ɵɵpureFunction1(4, $c2$, $r3$.ɵɵpureFunction0(3, $c1$)));
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ MyApp.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
}
if (rf & 2) {
$r3$.ɵɵproperty("dir", $r3$.ɵɵpureFunction0(2, $c0$));
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("dir", $r3$.ɵɵpureFunction1(3, $c1$, ctx.getFoo()));
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function MyComponent_li_1_Template(rf, ctx) {
}
if (rf & 2) {
const $item$ = ctx.$implicit;
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate($item$.name);
}
}
Expand All @@ -24,7 +24,7 @@ MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("forOf", ctx.items);
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function MyComponent_li_1_li_4_Template(rf, ctx) {
if (rf & 2) {
const $info$ = ctx.$implicit;
const $item$ = $r3$.ɵɵnextContext().$implicit;
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate2(" ", $item$.name, ": ", $info$.description, " ");
}
}
Expand Down Expand Up @@ -44,7 +44,7 @@ MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("forOf", ctx.items);
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ MyComponent.ɵcmp = /*@__PURE__*/ $r3$.ɵɵdefineComponent({
$r3$.ɵɵelementEnd();
}
if (rf & 2) {
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("forOf", ctx.items);
}
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
template: function MyApp_Template(rf, ctx) {
// ...
if (rf & 2) {
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate1("Total: $", 1000000 * ctx.multiplier, "");
$r3$.ɵɵadvance(2);
$r3$.ɵɵtextInterpolate1("Remaining: $", 123456.789 / 2, "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function MyComponent_li_2_Template(rf, ctx) {
if (rf & 2) {
const $myComp$ = $r3$.ɵɵnextContext();
const $foo$ = $r3$.ɵɵreference(1);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵtextInterpolate2("", $myComp$.salutation, " ", $foo$, "");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ template: function MyComponent_Template(rf, ctx) {
i0.ɵɵelementEnd();
}
if (rf & 2) {
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵproperty("ngIf", ctx.condition);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ template: function MyApp_Template(rf, ctx) {
if (rf & 2) {
let $tmp_0_0$;
let $tmp_1_0$;
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵtextInterpolate1("Hello, ", ($tmp_0_0$ = ctx.firstName) !== null && $tmp_0_0$ !== undefined ? $tmp_0_0$ : "Frodo", "!");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Your last name is ", ($tmp_1_0$ = ($tmp_1_0$ = ctx.lastName) !== null && $tmp_1_0$ !== undefined ? $tmp_1_0$ : ctx.lastNameFallback) !== null && $tmp_1_0$ !== undefined ? $tmp_1_0$ : "unknown", "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ template: function MyApp_Template(rf, ctx) {
let $tmp_0_0$;
let $tmp_1_0$;
i0.ɵɵproperty("title", "Hello, " + (($tmp_0_0$ = ctx.firstName) !== null && $tmp_0_0$ !== undefined ? $tmp_0_0$ : "Frodo") + "!");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵproperty("title", ($tmp_1_0$ = ($tmp_1_0$ = "Your last name is " + ctx.lastName) !== null && $tmp_1_0$ !== undefined ? $tmp_1_0$ : ctx.lastNameFallback) !== null && $tmp_1_0$ !== undefined ? $tmp_1_0$ : "unknown");
}
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
} if (rf & 2) {
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵtextInterpolate1("Safe Property: ", ctx.p == null ? null : ctx.p.a == null ? null : ctx.p.a.b == null ? null : ctx.p.a.b.c == null ? null : ctx.p.a.b.c.d, "");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Safe Keyed: ", ctx.p == null ? null : ctx.p["a"] == null ? null : ctx.p["a"]["b"] == null ? null : ctx.p["a"]["b"]["c"] == null ? null : ctx.p["a"]["b"]["c"]["d"], "");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Mixed Property: ", ctx.p == null ? null : ctx.p.a == null ? null : ctx.p.a.b.c.d == null ? null : ctx.p.a.b.c.d.e == null ? null : ctx.p.a.b.c.d.e.f == null ? null : ctx.p.a.b.c.d.e.f.g.h, "");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Mixed Property and Keyed: ", ctx.p.a["b"].c.d == null ? null : ctx.p.a["b"].c.d["e"] == null ? null : ctx.p.a["b"].c.d["e"]["f"] == null ? null : ctx.p.a["b"].c.d["e"]["f"].g["h"]["i"] == null ? null : ctx.p.a["b"].c.d["e"]["f"].g["h"]["i"].j.k, "");
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
} if (rf & 2) {
} if (rf & 2) {
let $tmp_0_0$;
let $tmp_0_1$;
let $tmp_0_2$;
Expand All @@ -14,12 +14,12 @@
let $tmp_3_1$;
let $tmp_3_2$;
let $tmp_3_3$;
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵtextInterpolate1("Safe Property with Calls: ", ($tmp_0_0$ = ctx.p()) == null ? null : ($tmp_0_1$ = $tmp_0_0$.a()) == null ? null : ($tmp_0_2$ = $tmp_0_1$.b()) == null ? null : ($tmp_0_3$ = $tmp_0_2$.c()) == null ? null : $tmp_0_3$.d(), "");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Safe and Unsafe Property with Calls: ", ctx.p == null ? null : ($tmp_1_0$ = ctx.p.a()) == null ? null : ($tmp_1_1$ = $tmp_1_0$.b().c().d()) == null ? null : ($tmp_1_2$ = $tmp_1_1$.e()) == null ? null : $tmp_1_2$.f == null ? null : $tmp_1_2$.f.g.h == null ? null : ($tmp_1_3$ = $tmp_1_2$.f.g.h.i()) == null ? null : ($tmp_1_4$ = $tmp_1_3$.j()) == null ? null : $tmp_1_4$.k().l, "");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Nested Safe with Calls: ", ($tmp_2_0$ = ctx.f1()) == null ? null : $tmp_2_0$[($tmp_2_1$ = ctx.f2()) == null ? null : $tmp_2_1$.a] == null ? null : $tmp_2_0$[($tmp_2_1$ = $tmp_2_1$) == null ? null : $tmp_2_1$.a].b, "");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Deep Nested Safe with Calls: ", ($tmp_3_0$ = ctx.f1()) == null ? null : $tmp_3_0$[($tmp_3_1$ = ctx.f2()) == null ? null : ($tmp_3_2$ = $tmp_3_1$.f3()) == null ? null : $tmp_3_2$[($tmp_3_3$ = ctx.f4()) == null ? null : $tmp_3_3$.f5()]] == null ? null : $tmp_3_0$[($tmp_3_1$ = $tmp_3_1$) == null ? null : ($tmp_3_2$ = $tmp_3_2$) == null ? null : $tmp_3_2$[($tmp_3_3$ = $tmp_3_3$) == null ? null : $tmp_3_3$.f5()]].f6(), "");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let $tmp_3_1$;
let $tmp_3_2$;
let $tmp_3_3$;
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵtextInterpolate1("Safe Property with Calls: ", ($tmp_0_0$ = ctx.p()) == null ? null : ($tmp_0_0$ = $tmp_0_0$.a()) == null ? null : ($tmp_0_0$ = $tmp_0_0$.b()) == null ? null : ($tmp_0_0$ = $tmp_0_0$.c()) == null ? null : $tmp_0_0$.d(), "");
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate1("Safe and Unsafe Property with Calls: ", ctx.p == null ? null : ($tmp_1_0$ = ctx.p.a()) == null ? null : ($tmp_1_0$ = $tmp_1_0$.b().c().d()) == null ? null : ($tmp_1_0$ = $tmp_1_0$.e()) == null ? null : $tmp_1_0$.f == null ? null : $tmp_1_0$.f.g.h == null ? null : ($tmp_1_0$ = $tmp_1_0$.f.g.h.i()) == null ? null : ($tmp_1_0$ = $tmp_1_0$.j()) == null ? null : $tmp_1_0$.k().l, "");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ template: function MyApp_Template(rf, $ctx$) {
let $tmp_1_2$;
let $tmp_1_3$;
$i0$.ɵɵproperty("title", "Your last name is " + (($tmp_0_0$ = $ctx$.person.getLastName == null ? null : $ctx$.person.getLastName()) !== null && $tmp_0_0$ !== undefined ? $tmp_0_0$ : "unknown"));
$i0$.ɵɵadvance(1);
$i0$.ɵɵadvance();
$i0$.ɵɵtextInterpolate2(" Hello, ", $ctx$.person.getName == null ? null : $ctx$.person.getName(), "! You are a Balrog: ", ($ctx$.person.getSpecies == null ? null : ($tmp_1_0$ = $ctx$.person.getSpecies()) == null ? null : ($tmp_1_1$ = $tmp_1_0$()) == null ? null : ($tmp_1_2$ = $tmp_1_1$()) == null ? null : ($tmp_1_3$ = $tmp_1_2$()) == null ? null : $tmp_1_3$()) || "unknown", " ");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ template: function MyApp_Template(rf, $ctx$) {
$i0$.ɵɵelementStart(0, "span", 0);
$i0$.ɵɵtext(1);
$i0$.ɵɵelementEnd();
}
}
if (rf & 2) {
let $tmp_4_0$;
let $tmp_5_0$;
$i0$.ɵɵproperty("title", "Your last name is " + (($tmp_4_0$ = $ctx$.person.getLastName == null ? null : $ctx$.person.getLastName()) !== null && $tmp_4_0$ !== undefined ? $tmp_4_0$ : "unknown"));
$i0$.ɵɵadvance(1);
$i0$.ɵɵadvance();
$i0$.ɵɵtextInterpolate2(" Hello, ", $ctx$.person.getName == null ? null : $ctx$.person.getName(), "! You are a Balrog: ", ($ctx$.person.getSpecies == null ? null : ($tmp_5_0$ = $ctx$.person.getSpecies()) == null ? null : ($tmp_5_0$ = $tmp_5_0$()) == null ? null : ($tmp_5_0$ = $tmp_5_0$()) == null ? null : ($tmp_5_0$ = $tmp_5_0$()) == null ? null : $tmp_5_0$()) || "unknown", " ");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ template: function MyApp_Template(rf, ctx) {
if (rf & 2) {
let $tmp_0_0$;
i0.ɵɵproperty("title", "Your last name is " + ((ctx.unknownNames == null ? null : ctx.unknownNames[0]) || "unknown"));
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵtextInterpolate4(" Hello, ", ctx.knownNames == null ? null : ctx.knownNames[0] == null ? null : ctx.knownNames[0][1], "! You are a Balrog: ", (ctx.species == null ? null : ctx.species[0] == null ? null : ctx.species[0][1] == null ? null : ctx.species[0][1][2] == null ? null : ctx.species[0][1][2][3] == null ? null : ctx.species[0][1][2][3][4] == null ? null : ctx.species[0][1][2][3][4][5]) || "unknown", " You are an Elf: ", ctx.speciesMap == null ? null : ctx.speciesMap[($tmp_0_0$ = ctx.keys == null ? null : ctx.keys[0]) !== null && $tmp_0_0$ !== undefined ? $tmp_0_0$ : "key"], " You are an Orc: ", ctx.speciesMap == null ? null : ctx.speciesMap["key"], " ");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ template: function MyApp_Template(rf, $ctx$) {
let $tmp_1_0$;
let $tmp_2_0$;
$i0$.ɵɵproperty("title", $ctx$.person == null ? null : $ctx$.person.getName(false));
$i0$.ɵɵadvance(1);
$i0$.ɵɵadvance();
$i0$.ɵɵproperty("title", ($ctx$.person == null ? null : $ctx$.person.getName(false)) || "");
$i0$.ɵɵadvance(1);
$i0$.ɵɵadvance();
$i0$.ɵɵproperty("title", $ctx$.person == null ? null : ($tmp_0_0$ = $ctx$.person.getName(false)) == null ? null : $tmp_0_0$.toLowerCase());
$i0$.ɵɵadvance(1);
$i0$.ɵɵadvance();
$i0$.ɵɵproperty("title", $ctx$.person == null ? null : $ctx$.person.getName(($tmp_1_0$ = $ctx$.config.get("title")) == null ? null : $tmp_1_0$.enabled));
$i0$.ɵɵadvance(1);
$i0$.ɵɵadvance();
$i0$.ɵɵproperty("title", $ctx$.person == null ? null : $ctx$.person.getName(($tmp_2_0$ = ($tmp_2_0$ = $ctx$.config.get("title")) == null ? null : $tmp_2_0$.enabled) !== null && $tmp_2_0$ !== undefined ? $tmp_2_0$ : true));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ template: function MyComponent_Template(rf, ctx) {
if (rf & 2) {
$r3$.ɵɵattribute("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵattribute("id", 1)("title", "hello")("some-attr", 1 + 2);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵattribute("some-attr", "one")("some-other-attr", 2);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ template: function MyComponent_Template(rf, ctx) {
if (rf & 2) {
$r3$.ɵɵattribute("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵattribute("id", 1)("title", "hello")("some-attr", 1 + 2);
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
consts: [["aria-label", "hello", "aria-label", "hi"], [2, "height", "0"], [1, "cls2"], [3, "tabindex"], [3, "click"]],
template: function MyComponent_Template(rf, ctx) {
template: function MyComponent_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelement(0, "div", 0);
i0.ɵɵelementStart(1, "div", 1);
Expand All @@ -11,11 +11,11 @@ template: function MyComponent_Template(rf, ctx) {
if (rf & 2) {
i0.ɵɵadvance(3);
i0.ɵɵattribute("aria-label", ctx.value1)("aria-label", ctx.value2);
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵproperty("tabindex", ctx.value1)("tabindex", ctx.value2);
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵclassMap(ctx.value2);
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵstyleMap(ctx.value2);
}
}
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
if (rf & 2) {
i0.ɵɵattributeInterpolateV("title", ["a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i", ctx.nine, "j"]);
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate8("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h", ctx.eight, "i");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate7("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g", ctx.seven, "h");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate6("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f", ctx.six, "g");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate5("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e", ctx.five, "f");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate4("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d", ctx.four, "e");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate3("title", "a", ctx.one, "b", ctx.two, "c", ctx.three, "d");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate2("title", "a", ctx.one, "b", ctx.two, "c");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattributeInterpolate1("title", "a", ctx.one, "b");
i0.ɵɵadvance(1);
i0.ɵɵadvance();
i0.ɵɵattribute("title", ctx.one);
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ template: function MyComponent_Template(rf, ctx) {
if (rf & 2) {
$r3$.ɵɵproperty("title", ctx.myTitle)("id", ctx.buttonId)("tabindex", 1);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("id", 1)("title", "hello")("someProp", 1 + 2);
$r3$.ɵɵadvance(1);
$r3$.ɵɵadvance();
$r3$.ɵɵproperty("prop", "one")("otherProp", 2);
}
}

0 comments on commit 92fd6cc

Please sign in to comment.