2017-11-20 13:21:17 -05:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
|
|
|
import * as o from '../output/output_ast';
|
|
|
|
|
|
|
|
const CORE = '@angular/core';
|
|
|
|
|
|
|
|
// Copied from core and must be in sync with the value in the runtime.
|
|
|
|
export const enum LifeCycleGuard {ON_INIT = 1, ON_DESTROY = 2, ON_CHANGES = 4}
|
|
|
|
|
|
|
|
// TODO: Include assignments that use the enum literals
|
|
|
|
// e.g. { let a: core.LifeCycleGuard.ON_INIT = LifeCycleGuard.ON_INIT; ...}
|
|
|
|
// Ensure these get removed in bundling.
|
|
|
|
|
|
|
|
export class Identifiers {
|
|
|
|
/* Methods */
|
|
|
|
static NEW_METHOD = 'n';
|
|
|
|
static HOST_BINDING_METHOD = 'h';
|
2018-02-05 20:31:12 -05:00
|
|
|
static TRANSFORM_METHOD = 'transform';
|
2017-11-20 13:21:17 -05:00
|
|
|
|
|
|
|
/* Instructions */
|
|
|
|
static createElement: o.ExternalReference = {name: 'ɵE', moduleName: CORE};
|
|
|
|
|
|
|
|
static elementEnd: o.ExternalReference = {name: 'ɵe', moduleName: CORE};
|
|
|
|
|
|
|
|
static elementProperty: o.ExternalReference = {name: 'ɵp', moduleName: CORE};
|
|
|
|
|
|
|
|
static elementAttribute: o.ExternalReference = {name: 'ɵa', moduleName: CORE};
|
|
|
|
|
|
|
|
static elementClass: o.ExternalReference = {name: 'ɵk', moduleName: CORE};
|
|
|
|
|
|
|
|
static elementStyle: o.ExternalReference = {name: 'ɵs', moduleName: CORE};
|
|
|
|
|
|
|
|
static containerCreate: o.ExternalReference = {name: 'ɵC', moduleName: CORE};
|
|
|
|
|
|
|
|
static containerEnd: o.ExternalReference = {name: 'ɵc', moduleName: CORE};
|
|
|
|
|
2018-01-11 18:37:56 -05:00
|
|
|
static containerRefreshStart: o.ExternalReference = {name: 'ɵcR', moduleName: CORE};
|
|
|
|
|
|
|
|
static containerRefreshEnd: o.ExternalReference = {name: 'ɵcr', moduleName: CORE};
|
|
|
|
|
2017-11-20 13:21:17 -05:00
|
|
|
static directiveCreate: o.ExternalReference = {name: 'ɵD', moduleName: CORE};
|
|
|
|
|
|
|
|
static text: o.ExternalReference = {name: 'ɵT', moduleName: CORE};
|
|
|
|
|
|
|
|
static directiveInput: o.ExternalReference = {name: 'ɵi', moduleName: CORE};
|
|
|
|
|
|
|
|
static textCreateBound: o.ExternalReference = {name: 'ɵt', moduleName: CORE};
|
|
|
|
|
|
|
|
static bind: o.ExternalReference = {name: 'ɵb', moduleName: CORE};
|
|
|
|
|
2018-02-14 14:22:14 -05:00
|
|
|
static interpolation1: o.ExternalReference = {name: 'ɵi1', moduleName: CORE};
|
|
|
|
static interpolation2: o.ExternalReference = {name: 'ɵi2', moduleName: CORE};
|
|
|
|
static interpolation3: o.ExternalReference = {name: 'ɵi3', moduleName: CORE};
|
|
|
|
static interpolation4: o.ExternalReference = {name: 'ɵi4', moduleName: CORE};
|
|
|
|
static interpolation5: o.ExternalReference = {name: 'ɵi5', moduleName: CORE};
|
|
|
|
static interpolation6: o.ExternalReference = {name: 'ɵi6', moduleName: CORE};
|
|
|
|
static interpolation7: o.ExternalReference = {name: 'ɵi7', moduleName: CORE};
|
|
|
|
static interpolation8: o.ExternalReference = {name: 'ɵi8', moduleName: CORE};
|
|
|
|
static interpolationV: o.ExternalReference = {name: 'ɵiV', moduleName: CORE};
|
2017-11-20 13:21:17 -05:00
|
|
|
|
2018-02-05 20:31:12 -05:00
|
|
|
static pipeBind1: o.ExternalReference = {name: 'ɵpb1', moduleName: CORE};
|
|
|
|
static pipeBind2: o.ExternalReference = {name: 'ɵpb2', moduleName: CORE};
|
|
|
|
static pipeBind3: o.ExternalReference = {name: 'ɵpb3', moduleName: CORE};
|
|
|
|
static pipeBind4: o.ExternalReference = {name: 'ɵpb4', moduleName: CORE};
|
|
|
|
static pipeBindV: o.ExternalReference = {name: 'ɵpbV', moduleName: CORE};
|
|
|
|
|
2018-02-16 19:58:07 -05:00
|
|
|
static load: o.ExternalReference = {name: 'ɵld', moduleName: CORE};
|
2018-01-11 18:37:56 -05:00
|
|
|
|
2018-02-05 20:31:12 -05:00
|
|
|
static pipe: o.ExternalReference = {name: 'ɵPp', moduleName: CORE};
|
|
|
|
|
2018-01-26 20:12:39 -05:00
|
|
|
static projection: o.ExternalReference = {name: 'ɵP', moduleName: CORE};
|
|
|
|
static projectionDef: o.ExternalReference = {name: 'ɵpD', moduleName: CORE};
|
|
|
|
|
2017-11-20 13:21:17 -05:00
|
|
|
static refreshComponent: o.ExternalReference = {name: 'ɵr', moduleName: CORE};
|
|
|
|
|
|
|
|
static directiveLifeCycle: o.ExternalReference = {name: 'ɵl', moduleName: CORE};
|
|
|
|
|
|
|
|
static injectElementRef: o.ExternalReference = {name: 'ɵinjectElementRef', moduleName: CORE};
|
|
|
|
|
|
|
|
static injectTemplateRef: o.ExternalReference = {name: 'ɵinjectTemplateRef', moduleName: CORE};
|
|
|
|
|
|
|
|
static injectViewContainerRef:
|
|
|
|
o.ExternalReference = {name: 'ɵinjectViewContainerRef', moduleName: CORE};
|
|
|
|
|
|
|
|
static inject: o.ExternalReference = {name: 'ɵinject', moduleName: CORE};
|
|
|
|
|
|
|
|
static defineComponent: o.ExternalReference = {name: 'ɵdefineComponent', moduleName: CORE};
|
|
|
|
|
|
|
|
static defineDirective: o.ExternalReference = {
|
|
|
|
name: 'ɵdefineDirective',
|
|
|
|
moduleName: CORE,
|
|
|
|
};
|
|
|
|
|
2018-02-05 20:31:12 -05:00
|
|
|
static definePipe: o.ExternalReference = {name: 'ɵdefinePipe', moduleName: CORE};
|
|
|
|
|
2017-11-20 13:21:17 -05:00
|
|
|
static NgOnChangesFeature: o.ExternalReference = {name: 'ɵNgOnChangesFeature', moduleName: CORE};
|
|
|
|
}
|