refactor(ivy): Move instructions back to ɵɵ (#30546)

There is an encoding issue with using delta `Δ`, where the browser will attempt to detect the file encoding if the character set is not explicitly declared on a `<script/>` tag, and Chrome will find the `Δ` character and decide it is window-1252 encoding, which misinterprets the `Δ` character to be some other character that is not a valid JS identifier character

So back to the frog eyes we go.

```
    __
   /ɵɵ\
  ( -- ) - I am ineffable. I am forever.
 _/    \_
/  \  /  \
==  ==  ==
```

PR Close #30546
This commit is contained in:
Ben Lesh
2019-05-17 18:49:21 -07:00
committed by Jason Aden
parent 1c3ee41902
commit d7eaae6f22
141 changed files with 5361 additions and 5344 deletions

View File

@ -81,18 +81,18 @@ In `ngtsc` this is instead emitted as,
```js
const i0 = require("@angular/core");
class GreetComponent {}
GreetComponent.ngComponentDef = i0.ΔdefineComponent({
GreetComponent.ngComponentDef = i0.ɵɵdefineComponent({
type: GreetComponent,
tag: 'greet',
factory: () => new GreetComponent(),
template: function (rf, ctx) {
if (rf & RenderFlags.Create) {
i0.ΔelementStart(0, 'div');
i0.Δtext(1);
i0.ΔelementEnd();
i0.ɵɵelementStart(0, 'div');
i0.ɵɵtext(1);
i0.ɵɵelementEnd();
}
if (rf & RenderFlags.Update) {
i0.ΔtextBinding(1, i0.Δinterpolation1('Hello ', ctx.name, '!'));
i0.ɵɵtextBinding(1, i0.ɵɵinterpolation1('Hello ', ctx.name, '!'));
}
}
});

View File

@ -161,7 +161,7 @@ export class MyComponent {
```js
export class MyComponent {
name: string;
static ngComponentDef = ΔdefineComponent({...});
static ngComponentDef = ɵɵdefineComponent({...});
}
```
@ -213,7 +213,7 @@ export class MyDirective {
constructor() {
this.dirId = 'some id';
}
static ngDirectiveDef = ΔdefineDirective({...});
static ngDirectiveDef = ɵɵdefineDirective({...});
}
```
@ -256,7 +256,7 @@ export class MyPipe implements PipeTransform {
```js
export class MyPipe {
transform(...) ...
static ngPipeDef = ΔdefinePipe({...});
static ngPipeDef = ɵɵdefinePipe({...});
}
```
@ -329,7 +329,7 @@ export class MyModule {}
*my.module.js*
```js
export class MyModule {
static ngInjectorDef = ΔdefineInjector(...);
static ngInjectorDef = ɵɵdefineInjector(...);
}
```
@ -389,7 +389,7 @@ manually written as:
```ts
export class MyModule {
static ngInjectorDef = ΔdefineInjector({
static ngInjectorDef = ɵɵdefineInjector({
providers: [{
provide: Service, useClass: ServiceImpl
}],
@ -411,7 +411,7 @@ export class MyModule {
}
```
except for the call to `ΔdefineInjector` would generate a `{ __symbolic: 'error' }`
except for the call to `ɵɵdefineInjector` would generate a `{ __symbolic: 'error' }`
value which is ignored by the ivy compiler. This allows the system to ignore
the difference between manually and mechanically created module definitions.
@ -440,7 +440,7 @@ properties by including a `// @__BUILD_OPTIMIZER_REMOVE_` comment:
```ts
export class MyModule {
static ngInjectorDef = ΔdefineInjector({
static ngInjectorDef = ɵɵdefineInjector({
providers: [{
provide: Service, useClass: ServiceImpl
}],

View File

@ -62,11 +62,11 @@ export class Identifiers {
moduleName: CORE,
};
static inject: o.ExternalReference = {name: 'Δinject', moduleName: CORE};
static inject: o.ExternalReference = {name: 'ɵɵinject', moduleName: CORE};
static INJECTOR: o.ExternalReference = {name: 'INJECTOR', moduleName: CORE};
static Injector: o.ExternalReference = {name: 'Injector', moduleName: CORE};
static ΔdefineInjectable: o.ExternalReference = {name: 'ΔdefineInjectable', moduleName: CORE};
static InjectableDef: o.ExternalReference = {name: 'ΔInjectableDef', moduleName: CORE};
static ɵɵdefineInjectable: o.ExternalReference = {name: 'ɵɵdefineInjectable', moduleName: CORE};
static InjectableDef: o.ExternalReference = {name: 'ɵɵInjectableDef', moduleName: CORE};
static ViewEncapsulation: o.ExternalReference = {
name: 'ViewEncapsulation',
moduleName: CORE,

View File

@ -116,7 +116,7 @@ export class InjectableCompiler {
mapEntry('token', ctx.importExpr(injectable.type.reference)),
mapEntry('providedIn', providedIn),
];
return o.importExpr(Identifiers.ΔdefineInjectable).callFn([o.literalMap(def)]);
return o.importExpr(Identifiers.ɵɵdefineInjectable).callFn([o.literalMap(def)]);
}
compile(injectable: CompileInjectableMetadata, ctx: OutputContext): void {

View File

@ -100,7 +100,7 @@ export function compileInjectable(meta: R3InjectableMetadata): InjectableDef {
const token = meta.type;
const providedIn = meta.providedIn;
const expression = o.importExpr(Identifiers.ΔdefineInjectable).callFn([mapToMapExpression(
const expression = o.importExpr(Identifiers.ɵɵdefineInjectable).callFn([mapToMapExpression(
{token, factory: result.factory, providedIn})]);
const type = new o.ExpressionType(o.importExpr(
Identifiers.InjectableDef, [typeWithParameters(meta.type, meta.typeArgumentCount)]));

View File

@ -17,237 +17,237 @@ export class Identifiers {
static PATCH_DEPS = 'patchedDeps';
/* Instructions */
static namespaceHTML: o.ExternalReference = {name: 'ΔnamespaceHTML', moduleName: CORE};
static namespaceHTML: o.ExternalReference = {name: 'ɵɵnamespaceHTML', moduleName: CORE};
static namespaceMathML: o.ExternalReference = {name: 'ΔnamespaceMathML', moduleName: CORE};
static namespaceMathML: o.ExternalReference = {name: 'ɵɵnamespaceMathML', moduleName: CORE};
static namespaceSVG: o.ExternalReference = {name: 'ΔnamespaceSVG', moduleName: CORE};
static namespaceSVG: o.ExternalReference = {name: 'ɵɵnamespaceSVG', moduleName: CORE};
static element: o.ExternalReference = {name: 'Δelement', moduleName: CORE};
static element: o.ExternalReference = {name: 'ɵɵelement', moduleName: CORE};
static elementStart: o.ExternalReference = {name: 'ΔelementStart', moduleName: CORE};
static elementStart: o.ExternalReference = {name: 'ɵɵelementStart', moduleName: CORE};
static elementEnd: o.ExternalReference = {name: 'ΔelementEnd', moduleName: CORE};
static elementEnd: o.ExternalReference = {name: 'ɵɵelementEnd', moduleName: CORE};
static elementProperty: o.ExternalReference = {name: 'ΔelementProperty', moduleName: CORE};
static elementProperty: o.ExternalReference = {name: 'ɵɵelementProperty', moduleName: CORE};
static select: o.ExternalReference = {name: 'Δselect', moduleName: CORE};
static select: o.ExternalReference = {name: 'ɵɵselect', moduleName: CORE};
static componentHostSyntheticProperty:
o.ExternalReference = {name: 'ΔcomponentHostSyntheticProperty', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵcomponentHostSyntheticProperty', moduleName: CORE};
static componentHostSyntheticListener:
o.ExternalReference = {name: 'ΔcomponentHostSyntheticListener', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵcomponentHostSyntheticListener', moduleName: CORE};
static elementAttribute: o.ExternalReference = {name: 'ΔelementAttribute', moduleName: CORE};
static elementAttribute: o.ExternalReference = {name: 'ɵɵelementAttribute', moduleName: CORE};
static classProp: o.ExternalReference = {name: 'ΔclassProp', moduleName: CORE};
static classProp: o.ExternalReference = {name: 'ɵɵclassProp', moduleName: CORE};
static elementContainerStart:
o.ExternalReference = {name: 'ΔelementContainerStart', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵelementContainerStart', moduleName: CORE};
static elementContainerEnd:
o.ExternalReference = {name: 'ΔelementContainerEnd', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵelementContainerEnd', moduleName: CORE};
static styling: o.ExternalReference = {name: 'Δstyling', moduleName: CORE};
static styling: o.ExternalReference = {name: 'ɵɵstyling', moduleName: CORE};
static styleMap: o.ExternalReference = {name: 'ΔstyleMap', moduleName: CORE};
static styleMap: o.ExternalReference = {name: 'ɵɵstyleMap', moduleName: CORE};
static classMap: o.ExternalReference = {name: 'ΔclassMap', moduleName: CORE};
static classMap: o.ExternalReference = {name: 'ɵɵclassMap', moduleName: CORE};
static styleProp: o.ExternalReference = {name: 'ΔstyleProp', moduleName: CORE};
static styleProp: o.ExternalReference = {name: 'ɵɵstyleProp', moduleName: CORE};
static stylingApply: o.ExternalReference = {name: 'ΔstylingApply', moduleName: CORE};
static stylingApply: o.ExternalReference = {name: 'ɵɵstylingApply', moduleName: CORE};
static elementHostAttrs: o.ExternalReference = {name: 'ΔelementHostAttrs', moduleName: CORE};
static elementHostAttrs: o.ExternalReference = {name: 'ɵɵelementHostAttrs', moduleName: CORE};
static containerCreate: o.ExternalReference = {name: 'Δcontainer', moduleName: CORE};
static containerCreate: o.ExternalReference = {name: 'ɵɵcontainer', moduleName: CORE};
static nextContext: o.ExternalReference = {name: 'ΔnextContext', moduleName: CORE};
static nextContext: o.ExternalReference = {name: 'ɵɵnextContext', moduleName: CORE};
static templateCreate: o.ExternalReference = {name: 'Δtemplate', moduleName: CORE};
static templateCreate: o.ExternalReference = {name: 'ɵɵtemplate', moduleName: CORE};
static text: o.ExternalReference = {name: 'Δtext', moduleName: CORE};
static text: o.ExternalReference = {name: 'ɵɵtext', moduleName: CORE};
static textBinding: o.ExternalReference = {name: 'ΔtextBinding', moduleName: CORE};
static textBinding: o.ExternalReference = {name: 'ɵɵtextBinding', moduleName: CORE};
static bind: o.ExternalReference = {name: 'Δbind', moduleName: CORE};
static bind: o.ExternalReference = {name: 'ɵɵbind', moduleName: CORE};
static enableBindings: o.ExternalReference = {name: 'ΔenableBindings', moduleName: CORE};
static enableBindings: o.ExternalReference = {name: 'ɵɵenableBindings', moduleName: CORE};
static disableBindings: o.ExternalReference = {name: 'ΔdisableBindings', moduleName: CORE};
static disableBindings: o.ExternalReference = {name: 'ɵɵdisableBindings', moduleName: CORE};
static allocHostVars: o.ExternalReference = {name: 'ΔallocHostVars', moduleName: CORE};
static allocHostVars: o.ExternalReference = {name: 'ɵɵallocHostVars', moduleName: CORE};
static getCurrentView: o.ExternalReference = {name: 'ΔgetCurrentView', moduleName: CORE};
static getCurrentView: o.ExternalReference = {name: 'ɵɵgetCurrentView', moduleName: CORE};
static restoreView: o.ExternalReference = {name: 'ΔrestoreView', moduleName: CORE};
static restoreView: o.ExternalReference = {name: 'ɵɵrestoreView', moduleName: CORE};
static interpolation1: o.ExternalReference = {name: 'Δinterpolation1', moduleName: CORE};
static interpolation2: o.ExternalReference = {name: 'Δinterpolation2', moduleName: CORE};
static interpolation3: o.ExternalReference = {name: 'Δinterpolation3', moduleName: CORE};
static interpolation4: o.ExternalReference = {name: 'Δinterpolation4', moduleName: CORE};
static interpolation5: o.ExternalReference = {name: 'Δinterpolation5', moduleName: CORE};
static interpolation6: o.ExternalReference = {name: 'Δinterpolation6', moduleName: CORE};
static interpolation7: o.ExternalReference = {name: 'Δinterpolation7', moduleName: CORE};
static interpolation8: o.ExternalReference = {name: 'Δinterpolation8', moduleName: CORE};
static interpolationV: o.ExternalReference = {name: 'ΔinterpolationV', moduleName: CORE};
static interpolation1: o.ExternalReference = {name: 'ɵɵinterpolation1', moduleName: CORE};
static interpolation2: o.ExternalReference = {name: 'ɵɵinterpolation2', moduleName: CORE};
static interpolation3: o.ExternalReference = {name: 'ɵɵinterpolation3', moduleName: CORE};
static interpolation4: o.ExternalReference = {name: 'ɵɵinterpolation4', moduleName: CORE};
static interpolation5: o.ExternalReference = {name: 'ɵɵinterpolation5', moduleName: CORE};
static interpolation6: o.ExternalReference = {name: 'ɵɵinterpolation6', moduleName: CORE};
static interpolation7: o.ExternalReference = {name: 'ɵɵinterpolation7', moduleName: CORE};
static interpolation8: o.ExternalReference = {name: 'ɵɵinterpolation8', moduleName: CORE};
static interpolationV: o.ExternalReference = {name: 'ɵɵinterpolationV', moduleName: CORE};
static pureFunction0: o.ExternalReference = {name: 'ΔpureFunction0', moduleName: CORE};
static pureFunction1: o.ExternalReference = {name: 'ΔpureFunction1', moduleName: CORE};
static pureFunction2: o.ExternalReference = {name: 'ΔpureFunction2', moduleName: CORE};
static pureFunction3: o.ExternalReference = {name: 'ΔpureFunction3', moduleName: CORE};
static pureFunction4: o.ExternalReference = {name: 'ΔpureFunction4', moduleName: CORE};
static pureFunction5: o.ExternalReference = {name: 'ΔpureFunction5', moduleName: CORE};
static pureFunction6: o.ExternalReference = {name: 'ΔpureFunction6', moduleName: CORE};
static pureFunction7: o.ExternalReference = {name: 'ΔpureFunction7', moduleName: CORE};
static pureFunction8: o.ExternalReference = {name: 'ΔpureFunction8', moduleName: CORE};
static pureFunctionV: o.ExternalReference = {name: 'ΔpureFunctionV', moduleName: CORE};
static pureFunction0: o.ExternalReference = {name: 'ɵɵpureFunction0', moduleName: CORE};
static pureFunction1: o.ExternalReference = {name: 'ɵɵpureFunction1', moduleName: CORE};
static pureFunction2: o.ExternalReference = {name: 'ɵɵpureFunction2', moduleName: CORE};
static pureFunction3: o.ExternalReference = {name: 'ɵɵpureFunction3', moduleName: CORE};
static pureFunction4: o.ExternalReference = {name: 'ɵɵpureFunction4', moduleName: CORE};
static pureFunction5: o.ExternalReference = {name: 'ɵɵpureFunction5', moduleName: CORE};
static pureFunction6: o.ExternalReference = {name: 'ɵɵpureFunction6', moduleName: CORE};
static pureFunction7: o.ExternalReference = {name: 'ɵɵpureFunction7', moduleName: CORE};
static pureFunction8: o.ExternalReference = {name: 'ɵɵpureFunction8', moduleName: CORE};
static pureFunctionV: o.ExternalReference = {name: 'ɵɵpureFunctionV', moduleName: CORE};
static pipeBind1: o.ExternalReference = {name: 'ΔpipeBind1', moduleName: CORE};
static pipeBind2: o.ExternalReference = {name: 'ΔpipeBind2', moduleName: CORE};
static pipeBind3: o.ExternalReference = {name: 'ΔpipeBind3', moduleName: CORE};
static pipeBind4: o.ExternalReference = {name: 'ΔpipeBind4', moduleName: CORE};
static pipeBindV: o.ExternalReference = {name: 'ΔpipeBindV', moduleName: CORE};
static pipeBind1: o.ExternalReference = {name: 'ɵɵpipeBind1', moduleName: CORE};
static pipeBind2: o.ExternalReference = {name: 'ɵɵpipeBind2', moduleName: CORE};
static pipeBind3: o.ExternalReference = {name: 'ɵɵpipeBind3', moduleName: CORE};
static pipeBind4: o.ExternalReference = {name: 'ɵɵpipeBind4', moduleName: CORE};
static pipeBindV: o.ExternalReference = {name: 'ɵɵpipeBindV', moduleName: CORE};
static property: o.ExternalReference = {name: 'Δproperty', moduleName: CORE};
static property: o.ExternalReference = {name: 'ɵɵproperty', moduleName: CORE};
static propertyInterpolate:
o.ExternalReference = {name: 'ΔpropertyInterpolate', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate', moduleName: CORE};
static propertyInterpolate1:
o.ExternalReference = {name: 'ΔpropertyInterpolate1', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate1', moduleName: CORE};
static propertyInterpolate2:
o.ExternalReference = {name: 'ΔpropertyInterpolate2', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate2', moduleName: CORE};
static propertyInterpolate3:
o.ExternalReference = {name: 'ΔpropertyInterpolate3', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate3', moduleName: CORE};
static propertyInterpolate4:
o.ExternalReference = {name: 'ΔpropertyInterpolate4', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate4', moduleName: CORE};
static propertyInterpolate5:
o.ExternalReference = {name: 'ΔpropertyInterpolate5', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate5', moduleName: CORE};
static propertyInterpolate6:
o.ExternalReference = {name: 'ΔpropertyInterpolate6', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate6', moduleName: CORE};
static propertyInterpolate7:
o.ExternalReference = {name: 'ΔpropertyInterpolate7', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate7', moduleName: CORE};
static propertyInterpolate8:
o.ExternalReference = {name: 'ΔpropertyInterpolate8', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolate8', moduleName: CORE};
static propertyInterpolateV:
o.ExternalReference = {name: 'ΔpropertyInterpolateV', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵpropertyInterpolateV', moduleName: CORE};
static i18n: o.ExternalReference = {name: 'Δi18n', moduleName: CORE};
static i18nAttributes: o.ExternalReference = {name: 'Δi18nAttributes', moduleName: CORE};
static i18nExp: o.ExternalReference = {name: 'Δi18nExp', moduleName: CORE};
static i18nStart: o.ExternalReference = {name: 'Δi18nStart', moduleName: CORE};
static i18nEnd: o.ExternalReference = {name: 'Δi18nEnd', moduleName: CORE};
static i18nApply: o.ExternalReference = {name: 'Δi18nApply', moduleName: CORE};
static i18nPostprocess: o.ExternalReference = {name: 'Δi18nPostprocess', moduleName: CORE};
static i18nLocalize: o.ExternalReference = {name: 'Δi18nLocalize', moduleName: CORE};
static i18n: o.ExternalReference = {name: 'ɵɵi18n', moduleName: CORE};
static i18nAttributes: o.ExternalReference = {name: 'ɵɵi18nAttributes', moduleName: CORE};
static i18nExp: o.ExternalReference = {name: 'ɵɵi18nExp', moduleName: CORE};
static i18nStart: o.ExternalReference = {name: 'ɵɵi18nStart', moduleName: CORE};
static i18nEnd: o.ExternalReference = {name: 'ɵɵi18nEnd', moduleName: CORE};
static i18nApply: o.ExternalReference = {name: 'ɵɵi18nApply', moduleName: CORE};
static i18nPostprocess: o.ExternalReference = {name: 'ɵɵi18nPostprocess', moduleName: CORE};
static i18nLocalize: o.ExternalReference = {name: 'ɵɵi18nLocalize', moduleName: CORE};
static load: o.ExternalReference = {name: 'Δload', moduleName: CORE};
static load: o.ExternalReference = {name: 'ɵɵload', moduleName: CORE};
static pipe: o.ExternalReference = {name: 'Δpipe', moduleName: CORE};
static pipe: o.ExternalReference = {name: 'ɵɵpipe', moduleName: CORE};
static projection: o.ExternalReference = {name: 'Δprojection', moduleName: CORE};
static projectionDef: o.ExternalReference = {name: 'ΔprojectionDef', moduleName: CORE};
static projection: o.ExternalReference = {name: 'ɵɵprojection', moduleName: CORE};
static projectionDef: o.ExternalReference = {name: 'ɵɵprojectionDef', moduleName: CORE};
static reference: o.ExternalReference = {name: 'Δreference', moduleName: CORE};
static reference: o.ExternalReference = {name: 'ɵɵreference', moduleName: CORE};
static inject: o.ExternalReference = {name: 'Δinject', moduleName: CORE};
static inject: o.ExternalReference = {name: 'ɵɵinject', moduleName: CORE};
static injectAttribute: o.ExternalReference = {name: 'ΔinjectAttribute', moduleName: CORE};
static injectAttribute: o.ExternalReference = {name: 'ɵɵinjectAttribute', moduleName: CORE};
static directiveInject: o.ExternalReference = {name: 'ΔdirectiveInject', moduleName: CORE};
static directiveInject: o.ExternalReference = {name: 'ɵɵdirectiveInject', moduleName: CORE};
static templateRefExtractor:
o.ExternalReference = {name: 'ΔtemplateRefExtractor', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵtemplateRefExtractor', moduleName: CORE};
static resolveWindow: o.ExternalReference = {name: 'ΔresolveWindow', moduleName: CORE};
static resolveDocument: o.ExternalReference = {name: 'ΔresolveDocument', moduleName: CORE};
static resolveBody: o.ExternalReference = {name: 'ΔresolveBody', moduleName: CORE};
static resolveWindow: o.ExternalReference = {name: 'ɵɵresolveWindow', moduleName: CORE};
static resolveDocument: o.ExternalReference = {name: 'ɵɵresolveDocument', moduleName: CORE};
static resolveBody: o.ExternalReference = {name: 'ɵɵresolveBody', moduleName: CORE};
static defineBase: o.ExternalReference = {name: 'ΔdefineBase', moduleName: CORE};
static defineBase: o.ExternalReference = {name: 'ɵɵdefineBase', moduleName: CORE};
static BaseDef: o.ExternalReference = {
name: 'ΔBaseDef',
name: 'ɵɵBaseDef',
moduleName: CORE,
};
static defineComponent: o.ExternalReference = {name: 'ΔdefineComponent', moduleName: CORE};
static defineComponent: o.ExternalReference = {name: 'ɵɵdefineComponent', moduleName: CORE};
static setComponentScope: o.ExternalReference = {name: 'ΔsetComponentScope', moduleName: CORE};
static setComponentScope: o.ExternalReference = {name: 'ɵɵsetComponentScope', moduleName: CORE};
static ComponentDefWithMeta: o.ExternalReference = {
name: 'ΔComponentDefWithMeta',
name: 'ɵɵComponentDefWithMeta',
moduleName: CORE,
};
static defineDirective: o.ExternalReference = {
name: 'ΔdefineDirective',
name: 'ɵɵdefineDirective',
moduleName: CORE,
};
static DirectiveDefWithMeta: o.ExternalReference = {
name: 'ΔDirectiveDefWithMeta',
name: 'ɵɵDirectiveDefWithMeta',
moduleName: CORE,
};
static InjectorDef: o.ExternalReference = {
name: 'ΔInjectorDef',
name: 'ɵɵInjectorDef',
moduleName: CORE,
};
static defineInjector: o.ExternalReference = {
name: 'ΔdefineInjector',
name: 'ɵɵdefineInjector',
moduleName: CORE,
};
static NgModuleDefWithMeta: o.ExternalReference = {
name: 'ΔNgModuleDefWithMeta',
name: 'ɵɵNgModuleDefWithMeta',
moduleName: CORE,
};
static defineNgModule: o.ExternalReference = {name: 'ΔdefineNgModule', moduleName: CORE};
static setNgModuleScope: o.ExternalReference = {name: 'ΔsetNgModuleScope', moduleName: CORE};
static defineNgModule: o.ExternalReference = {name: 'ɵɵdefineNgModule', moduleName: CORE};
static setNgModuleScope: o.ExternalReference = {name: 'ɵɵsetNgModuleScope', moduleName: CORE};
static PipeDefWithMeta: o.ExternalReference = {name: 'ΔPipeDefWithMeta', moduleName: CORE};
static PipeDefWithMeta: o.ExternalReference = {name: 'ɵɵPipeDefWithMeta', moduleName: CORE};
static definePipe: o.ExternalReference = {name: 'ΔdefinePipe', moduleName: CORE};
static definePipe: o.ExternalReference = {name: 'ɵɵdefinePipe', moduleName: CORE};
static queryRefresh: o.ExternalReference = {name: 'ΔqueryRefresh', moduleName: CORE};
static viewQuery: o.ExternalReference = {name: 'ΔviewQuery', moduleName: CORE};
static staticViewQuery: o.ExternalReference = {name: 'ΔstaticViewQuery', moduleName: CORE};
static staticContentQuery: o.ExternalReference = {name: 'ΔstaticContentQuery', moduleName: CORE};
static loadViewQuery: o.ExternalReference = {name: 'ΔloadViewQuery', moduleName: CORE};
static contentQuery: o.ExternalReference = {name: 'ΔcontentQuery', moduleName: CORE};
static loadContentQuery: o.ExternalReference = {name: 'ΔloadContentQuery', moduleName: CORE};
static queryRefresh: o.ExternalReference = {name: 'ɵɵqueryRefresh', moduleName: CORE};
static viewQuery: o.ExternalReference = {name: 'ɵɵviewQuery', moduleName: CORE};
static staticViewQuery: o.ExternalReference = {name: 'ɵɵstaticViewQuery', moduleName: CORE};
static staticContentQuery: o.ExternalReference = {name: 'ɵɵstaticContentQuery', moduleName: CORE};
static loadViewQuery: o.ExternalReference = {name: 'ɵɵloadViewQuery', moduleName: CORE};
static contentQuery: o.ExternalReference = {name: 'ɵɵcontentQuery', moduleName: CORE};
static loadContentQuery: o.ExternalReference = {name: 'ɵɵloadContentQuery', moduleName: CORE};
static NgOnChangesFeature: o.ExternalReference = {name: 'ΔNgOnChangesFeature', moduleName: CORE};
static NgOnChangesFeature: o.ExternalReference = {name: 'ɵɵNgOnChangesFeature', moduleName: CORE};
static InheritDefinitionFeature:
o.ExternalReference = {name: 'ΔInheritDefinitionFeature', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵInheritDefinitionFeature', moduleName: CORE};
static ProvidersFeature: o.ExternalReference = {name: 'ΔProvidersFeature', moduleName: CORE};
static ProvidersFeature: o.ExternalReference = {name: 'ɵɵProvidersFeature', moduleName: CORE};
static listener: o.ExternalReference = {name: 'Δlistener', moduleName: CORE};
static listener: o.ExternalReference = {name: 'ɵɵlistener', moduleName: CORE};
static getFactoryOf: o.ExternalReference = {
name: 'ΔgetFactoryOf',
name: 'ɵɵgetFactoryOf',
moduleName: CORE,
};
static getInheritedFactory: o.ExternalReference = {
name: 'ΔgetInheritedFactory',
name: 'ɵɵgetInheritedFactory',
moduleName: CORE,
};
// sanitization-related functions
static sanitizeHtml: o.ExternalReference = {name: 'ΔsanitizeHtml', moduleName: CORE};
static sanitizeStyle: o.ExternalReference = {name: 'ΔsanitizeStyle', moduleName: CORE};
static sanitizeHtml: o.ExternalReference = {name: 'ɵɵsanitizeHtml', moduleName: CORE};
static sanitizeStyle: o.ExternalReference = {name: 'ɵɵsanitizeStyle', moduleName: CORE};
static defaultStyleSanitizer:
o.ExternalReference = {name: 'ΔdefaultStyleSanitizer', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵdefaultStyleSanitizer', moduleName: CORE};
static sanitizeResourceUrl:
o.ExternalReference = {name: 'ΔsanitizeResourceUrl', moduleName: CORE};
static sanitizeScript: o.ExternalReference = {name: 'ΔsanitizeScript', moduleName: CORE};
static sanitizeUrl: o.ExternalReference = {name: 'ΔsanitizeUrl', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵsanitizeResourceUrl', moduleName: CORE};
static sanitizeScript: o.ExternalReference = {name: 'ɵɵsanitizeScript', moduleName: CORE};
static sanitizeUrl: o.ExternalReference = {name: 'ɵɵsanitizeUrl', moduleName: CORE};
static sanitizeUrlOrResourceUrl:
o.ExternalReference = {name: 'ΔsanitizeUrlOrResourceUrl', moduleName: CORE};
o.ExternalReference = {name: 'ɵɵsanitizeUrlOrResourceUrl', moduleName: CORE};
}

View File

@ -107,7 +107,7 @@ export function compileNgModule(meta: R3NgModuleMetadata): R3NgModuleDef {
}
// If requested to emit scope information inline, pass the declarations, imports and exports to
// the `ΔdefineNgModule` call. The JIT compilation uses this.
// the `ɵɵdefineNgModule` call. The JIT compilation uses this.
if (emitInline) {
if (declarations.length) {
definitionMap.declarations = refsToArray(declarations, containsForwardDecls);
@ -122,7 +122,7 @@ export function compileNgModule(meta: R3NgModuleMetadata): R3NgModuleDef {
}
}
// If not emitting inline, the scope information is not passed into `ΔdefineNgModule` as it would
// If not emitting inline, the scope information is not passed into `ɵɵdefineNgModule` as it would
// prevent tree-shaking of the declarations, imports and exports references.
else {
const setNgModuleScopeCall = generateSetNgModuleScopeCall(meta);
@ -150,7 +150,7 @@ export function compileNgModule(meta: R3NgModuleMetadata): R3NgModuleDef {
}
/**
* Generates a function call to `ΔsetNgModuleScope` with all necessary information so that the
* Generates a function call to `ɵɵsetNgModuleScope` with all necessary information so that the
* transitive module scope can be computed during runtime in JIT mode. This call is marked pure
* such that the references to declarations, imports and exports may be elided causing these
* symbols to become tree-shakeable.

View File

@ -874,7 +874,7 @@ export class TemplateDefinitionBuilder implements t.Visitor<void>, LocalResolver
return trimTrailingNulls(parameters);
});
// handle property bindings e.g. Δproperty('ngForOf', ctx.items), et al;
// handle property bindings e.g. ɵɵproperty('ngForOf', ctx.items), et al;
const context = o.variable(CONTEXT_NAME);
this.templatePropertyBindings(template, templateIndex, context, template.templateAttrs);