fix(ivy): export elementContainerStart/End instructions (#27053)

PR Close #27053
This commit is contained in:
JoostK 2018-11-12 00:46:02 +01:00 committed by Misko Hevery
parent b07bd30b70
commit 60800da6c1
4 changed files with 12 additions and 8 deletions

View File

@ -244,12 +244,12 @@ describe('compiler compliance', () => {
template: function MyComponent_Template(rf, ctx) {
if (rf & 1) {
i0.ɵEC(0);
i0.ɵelementContainerStart(0);
i0.ɵelementStart(1, "span");
i0.ɵtext(2, "in a ");
i0.ɵelementEnd();
i0.ɵtext(3, "container");
i0.ɵeC();
i0.ɵelementContainerEnd();
}
}
`;
@ -281,8 +281,8 @@ describe('compiler compliance', () => {
template: function MyComponent_Template(rf, ctx) {
if (rf & 1) {
i0.ɵEC(0);
i0.ɵeC();
i0.ɵelementContainerStart(0);
i0.ɵelementContainerEnd();
}
}
`;

View File

@ -35,9 +35,11 @@ export class Identifiers {
static elementClassProp: o.ExternalReference = {name: 'ɵelementClassProp', moduleName: CORE};
static elementContainerStart: o.ExternalReference = {name: 'ɵEC', moduleName: CORE};
static elementContainerStart:
o.ExternalReference = {name: 'ɵelementContainerStart', moduleName: CORE};
static elementContainerEnd: o.ExternalReference = {name: 'ɵeC', moduleName: CORE};
static elementContainerEnd:
o.ExternalReference = {name: 'ɵelementContainerEnd', moduleName: CORE};
static elementStyling: o.ExternalReference = {name: 'ɵelementStyling', moduleName: CORE};

View File

@ -89,6 +89,8 @@ export {
enableBindings as ɵenableBindings,
disableBindings as ɵdisableBindings,
elementAttribute as ɵelementAttribute,
elementContainerStart as ɵelementContainerStart,
elementContainerEnd as ɵelementContainerEnd,
elementStyling as ɵelementStyling,
elementStylingMap as ɵelementStylingMap,
elementStyleProp as ɵelementStyleProp,

View File

@ -49,8 +49,8 @@ export const angularCoreEnv: {[name: string]: Function} = {
'ɵelementStart': r3.elementStart,
'ɵelementEnd': r3.elementEnd,
'ɵelement': r3.element,
EC': r3.elementContainerStart,
'ɵeC': r3.elementContainerEnd,
elementContainerStart': r3.elementContainerStart,
'ɵelementContainerEnd': r3.elementContainerEnd,
'ɵpureFunction0': r3.pureFunction0,
'ɵpureFunction1': r3.pureFunction1,
'ɵpureFunction2': r3.pureFunction2,