diff --git a/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts b/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts index 1cab9d8902..c689b8e005 100644 --- a/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts +++ b/packages/compiler-cli/ngcc/test/integration/ngcc_spec.ts @@ -2193,7 +2193,7 @@ runInEachFileSystem(() => { const dtsContents = fs.readFile(_(`/node_modules/test-package/index.d.ts`)); expect(dtsContents) .toContain( - 'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta;'); + 'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration;'); }); it('should generate a component definition with CopyDefinitionFeature for an undecorated child component', @@ -2233,7 +2233,7 @@ runInEachFileSystem(() => { const dtsContents = fs.readFile(_(`/node_modules/test-package/index.d.ts`)); expect(dtsContents) .toContain( - 'static ɵcmp: ɵngcc0.ɵɵComponentDefWithMeta;'); + 'static ɵcmp: ɵngcc0.ɵɵComponentDeclaration;'); }); it('should generate directive definitions with CopyDefinitionFeature for undecorated child directives in a long inheritance chain', @@ -2269,13 +2269,13 @@ runInEachFileSystem(() => { const dtsContents = fs.readFile(_(`/node_modules/test-package/index.d.ts`)); expect(dtsContents) .toContain( - 'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta;'); + 'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration;'); expect(dtsContents) .toContain( - 'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta;'); + 'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration;'); expect(dtsContents) .toContain( - 'static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta;'); + 'static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration;'); }); }); diff --git a/packages/compiler-cli/ngcc/test/rendering/dts_renderer_spec.ts b/packages/compiler-cli/ngcc/test/rendering/dts_renderer_spec.ts index 1577026df6..df7daf4d3b 100644 --- a/packages/compiler-cli/ngcc/test/rendering/dts_renderer_spec.ts +++ b/packages/compiler-cli/ngcc/test/rendering/dts_renderer_spec.ts @@ -141,7 +141,7 @@ runInEachFileSystem(() => { result.find(f => f.path === _('/node_modules/test-package/typings/file.d.ts'))!; expect(typingsFile.contents) .toContain( - 'foo(x: number): number;\n static ɵfac: ɵngcc0.ɵɵFactoryDef;\n static ɵdir: ɵngcc0.ɵɵDirectiveDefWithMeta'); + 'foo(x: number): number;\n static ɵfac: ɵngcc0.ɵɵFactoryDef;\n static ɵdir: ɵngcc0.ɵɵDirectiveDeclaration'); }); it('should render imports into typings files', () => { diff --git a/packages/compiler-cli/src/ngtsc/imports/src/core.ts b/packages/compiler-cli/src/ngtsc/imports/src/core.ts index eae858337b..9a63dbee0c 100644 --- a/packages/compiler-cli/src/ngtsc/imports/src/core.ts +++ b/packages/compiler-cli/src/ngtsc/imports/src/core.ts @@ -63,7 +63,7 @@ const CORE_SUPPORTED_SYMBOLS = new Map([ ['ɵsetClassMetadata', 'setClassMetadata'], ['ɵɵInjectableDef', 'ɵɵInjectableDef'], ['ɵɵInjectorDef', 'ɵɵInjectorDef'], - ['ɵɵNgModuleDefWithMeta', 'ɵɵNgModuleDefWithMeta'], + ['ɵɵNgModuleDeclaration', 'ɵɵNgModuleDeclaration'], ['ɵNgModuleFactory', 'NgModuleFactory'], ['ɵnoSideEffects', 'ɵnoSideEffects'], ]); diff --git a/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts b/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts index bb785afa46..c34de79b16 100644 --- a/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts +++ b/packages/compiler-cli/src/ngtsc/metadata/test/dts_spec.ts @@ -33,7 +33,7 @@ runInEachFileSystem(() => { export declare class TestDir { constructor(p0: ViewContainerRef); - static ɵdir: i0.ɵɵDirectiveDefWithMeta + static ɵdir: i0.ɵɵDirectiveDeclaration } ` }], @@ -67,7 +67,7 @@ runInEachFileSystem(() => { export declare class TestDir { constructor(p0: ViewContainerRef, p1: TemplateRef); - static ɵdir: i0.ɵɵDirectiveDefWithMeta + static ɵdir: i0.ɵɵDirectiveDeclaration } ` }], diff --git a/packages/compiler-cli/src/ngtsc/testing/fake_common/index.ts b/packages/compiler-cli/src/ngtsc/testing/fake_common/index.ts index 5d49dd7a8a..c32be348b1 100644 --- a/packages/compiler-cli/src/ngtsc/testing/fake_common/index.ts +++ b/packages/compiler-cli/src/ngtsc/testing/fake_common/index.ts @@ -6,7 +6,7 @@ * found in the LICENSE file at https://angular.io/license */ -import {NgIterable, TemplateRef, ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta, ɵɵPipeDefWithMeta} from '@angular/core'; +import {NgIterable, TemplateRef, ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration, ɵɵPipeDeclaration} from '@angular/core'; export interface NgForOfContext> { $implicit: T; @@ -36,7 +36,7 @@ export declare class NgForOf> { ngForTrackBy: TrackByFunction; ngForTemplate: TemplateRef>; - static ɵdir: ɵɵDirectiveDefWithMeta < NgForOf, '[ngFor][ngForOf]', never, { + static ɵdir: ɵɵDirectiveDeclaration < NgForOf, '[ngFor][ngForOf]', never, { 'ngForOf': 'ngForOf'; 'ngForTrackBy': 'ngForTrackBy'; 'ngForTemplate': 'ngForTemplate'; @@ -50,7 +50,7 @@ export declare class NgIf { ngIf: T; ngIfThen: TemplateRef>|null; ngIfElse: TemplateRef>|null; - static ɵdir: ɵɵDirectiveDefWithMeta < NgIf, '[ngIf]', never, { + static ɵdir: ɵɵDirectiveDeclaration < NgIf, '[ngIf]', never, { 'ngIf': 'ngIf'; 'ngIfThen': 'ngIfThen'; 'ngIfElse': 'ngIfElse'; @@ -64,7 +64,7 @@ export declare class NgTemplateOutlet { ngTemplateOutlet: TemplateRef|null; ngTemplateOutletContext: Object|null; - static ɵdir: ɵɵDirectiveDefWithMeta < NgTemplateOutlet, '[ngTemplateOutlet]', never, { + static ɵdir: ɵɵDirectiveDeclaration < NgTemplateOutlet, '[ngTemplateOutlet]', never, { 'ngTemplateOutlet': 'ngTemplateOutlet'; 'ngTemplateOutletContext': 'ngTemplateOutletContext'; } @@ -80,11 +80,11 @@ export declare class DatePipe { transform( value: Date|string|number|null|undefined, format?: string, timezone?: string, locale?: string): string|null; - static ɵpipe: ɵɵPipeDefWithMeta; + static ɵpipe: ɵɵPipeDeclaration; } export declare class CommonModule { - static ɵmod: ɵɵNgModuleDefWithMeta< + static ɵmod: ɵɵNgModuleDeclaration< CommonModule, [typeof NgForOf, typeof NgIf, typeof DatePipe, typeof NgTemplateOutlet], never, [typeof NgForOf, typeof NgIf, typeof DatePipe, typeof NgTemplateOutlet]>; } diff --git a/packages/compiler-cli/src/ngtsc/testing/fake_core/index.ts b/packages/compiler-cli/src/ngtsc/testing/fake_core/index.ts index f7a7b43eaa..35fe9a2575 100644 --- a/packages/compiler-cli/src/ngtsc/testing/fake_core/index.ts +++ b/packages/compiler-cli/src/ngtsc/testing/fake_core/index.ts @@ -70,9 +70,10 @@ export interface SimpleChanges { [propName: string]: any; } -export type ɵɵNgModuleDefWithMeta = any; -export type ɵɵDirectiveDefWithMeta = any; -export type ɵɵPipeDefWithMeta = any; +export type ɵɵNgModuleDeclaration = unknown; +export type ɵɵDirectiveDeclaration = + unknown; +export type ɵɵPipeDeclaration = unknown; export enum ViewEncapsulation { Emulated = 0, diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js index 8af31a6ed5..7d4a080afb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js @@ -42,11 +42,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class HostBindingComp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -94,11 +94,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class HostBindingComp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -131,11 +131,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -158,7 +158,7 @@ AbstractDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDE import * as i0 from "@angular/core"; export declare class AbstractDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -204,15 +204,15 @@ export declare class SomeComp { prop: any; otherProp: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -259,15 +259,15 @@ export declare class SomeComp { prop: any; otherProp: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -308,11 +308,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -353,11 +353,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -402,11 +402,11 @@ import * as i0 from "@angular/core"; export declare class MyApp { getFoo(): string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -453,7 +453,7 @@ import * as i0 from "@angular/core"; export declare function Custom(): (target: any) => void; export declare class Comp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -485,11 +485,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js index b79831460d..ef390d1084 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js @@ -50,19 +50,19 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class SimpleComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class ComplexComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -245,15 +245,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class SimpleComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -294,15 +294,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class SimpleComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -330,7 +330,7 @@ import * as i0 from "@angular/core"; export declare class MyApp { show: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -353,6 +353,6 @@ SimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER" import * as i0 from "@angular/core"; export declare class SimpleComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js index 3f5de1ea6f..750207c9f9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/lifecycle_hooks/GOLDEN_PARTIAL.js @@ -27,11 +27,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -96,15 +96,15 @@ import * as i0 from "@angular/core"; export declare class IfDirective { constructor(template: TemplateRef); static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -152,11 +152,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -247,17 +247,17 @@ export declare class LifecycleComp { ngAfterViewChecked(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class SimpleLayout { name1: string; name2: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class LifecycleModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js index bd2c693e0f..19ba0c08fc 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js @@ -63,22 +63,22 @@ export declare class MyPipe implements PipeTransform, OnDestroy { transform(value: any, ...args: any[]): any; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyPurePipe implements PipeTransform { transform(value: any, ...args: any[]): any; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyApp { name: string; size: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -132,16 +132,16 @@ export declare class MyPipe implements PipeTransform, OnDestroy { transform(value: any, ...args: any[]): any; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyApp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -206,22 +206,22 @@ export declare class MyPipe implements PipeTransform { constructor(changeDetectorRef: ChangeDetectorRef); transform(value: any, ...args: any[]): any; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyOtherPipe implements PipeTransform { constructor(changeDetectorRef: ChangeDetectorRef); transform(value: any, ...args: any[]): any; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyApp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js index b7cbcb9b75..4753788e8a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js @@ -20,7 +20,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -71,11 +71,11 @@ export declare class ViewQueryComponent { someDir: SomeDirective; someDirs: QueryList; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -126,11 +126,11 @@ export declare class ViewQueryComponent { myRef: any; myRefs: QueryList; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -156,7 +156,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -207,11 +207,11 @@ export declare class ViewQueryComponent { someDir: SomeDirective; foo: ElementRef; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -237,7 +237,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -298,11 +298,11 @@ export declare class ViewQueryComponent { someDir: ElementRef; someDirs: QueryList>; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -328,7 +328,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -398,15 +398,15 @@ export declare class ContentQueryComponent { someDir: SomeDirective; someDirList: QueryList; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -457,11 +457,11 @@ export declare class ContentQueryComponent { myRef: any; myRefs: QueryList; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -487,7 +487,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -557,15 +557,15 @@ export declare class ContentQueryComponent { someDir: SomeDirective; foo: ElementRef; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -591,7 +591,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -652,11 +652,11 @@ export declare class ContentQueryComponent { someDir: ElementRef; someDirs: QueryList>; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -682,7 +682,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -741,11 +741,11 @@ export declare class ContentQueryComponent { someDirs: QueryList; oldSomeDirs: QueryList; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js index 4fe14ef99f..8bb9a78378 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/template_variables/GOLDEN_PARTIAL.js @@ -38,7 +38,7 @@ export declare class ForOfDirective { forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -81,11 +81,11 @@ export declare class MyComponent { data: number; }[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -129,7 +129,7 @@ export declare class ForOfDirective { forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -172,11 +172,11 @@ export declare class MyComponent { name: string; }[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -220,7 +220,7 @@ export declare class ForOfDirective { forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -289,11 +289,11 @@ export declare class MyComponent { }[]; }[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -337,6 +337,6 @@ export declare class ForOfDirective { forOf: any[]; ngOnChanges(simpleChanges: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js index b47646b927..7c98c4f9df 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/value_composition/GOLDEN_PARTIAL.js @@ -43,19 +43,19 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class ChildComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -96,15 +96,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class SomeDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class OtherDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -137,11 +137,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class SomeComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -182,15 +182,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class RouterOutlet { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class EmptyOutletComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -233,11 +233,11 @@ export declare class MyComponent { cdr: ChangeDetectorRef; constructor(el: ElementRef, vcr: ViewContainerRef, cdr: ChangeDetectorRef); static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -284,16 +284,16 @@ import * as i0 from "@angular/core"; export declare class IfDirective { constructor(template: TemplateRef); static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { salutation: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -356,16 +356,16 @@ import * as i0 from "@angular/core"; export declare class MyComp { names: string[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { customName: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -456,7 +456,7 @@ import * as i0 from "@angular/core"; export declare class MyComp { names: string[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { n0: string; @@ -469,11 +469,11 @@ export declare class MyApp { n7: string; n8: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -538,16 +538,16 @@ export declare class ObjectComp { [key: string]: any; }; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -617,17 +617,17 @@ export declare class NestedComp { [key: string]: any; }; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyApp { name: string; duration: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js index 7f38d8cf9d..5200079fa0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/elements/GOLDEN_PARTIAL.js @@ -30,11 +30,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -86,19 +86,19 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MathCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class InfinityCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -134,11 +134,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -174,11 +174,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -214,11 +214,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -251,11 +251,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -292,11 +292,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { id: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -379,12 +379,12 @@ export declare class DivDir { and: any; or: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class PipePipe { transform(v: any, a: any, a2: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { id: string; @@ -394,11 +394,11 @@ export declare class MyComponent { b: string; c: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -466,11 +466,11 @@ export declare class MyComponent { collapsedWidth: string; getExpandedState(): string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -512,11 +512,11 @@ export declare class MyComponent { error: boolean; color: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -558,11 +558,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -620,11 +620,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js index e118bc2884..913d249456 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js @@ -19,7 +19,7 @@ BasicModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngI import * as i0 from "@angular/core"; export declare class BasicModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -74,20 +74,20 @@ import * as i0 from "@angular/core"; export declare class FooComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class BarDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class QuxPipe implements PipeTransform { transform(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class FooModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -142,20 +142,20 @@ import * as i0 from "@angular/core"; export declare class FooComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class BarDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class QuxPipe implements PipeTransform { transform(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class FooModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -233,7 +233,7 @@ export declare class ChildService extends BaseService { } export declare class FooModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -308,33 +308,33 @@ AppModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImp import * as i0 from "@angular/core"; export declare class A1Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class A2Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class AModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export declare class B1Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class B2Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class BModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -409,33 +409,33 @@ AppModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImp import * as i0 from "@angular/core"; export declare class A1Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class A2Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class AModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export declare class B1Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class B2Component { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class BModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -509,12 +509,12 @@ export declare class BaseModule { private service; constructor(service: Service); static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export declare class BasicModule extends BaseModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -552,12 +552,12 @@ import * as i0 from "@angular/core"; export declare function provideModule(): ModuleWithProviders; export declare class TestModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export declare class ForwardModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js index 715b3fc61a..426810880b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js @@ -49,17 +49,17 @@ import * as i0 from "@angular/core"; export declare class MyApp { list: any[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class TodoComponent { data: any[]; myTitle: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class TodoModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js index 203e455682..fba01ff6b1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/animations/GOLDEN_PARTIAL.js @@ -29,11 +29,11 @@ export declare class MyApp { exp: any; any: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -69,11 +69,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js index e7d227745b..9801b2a570 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/hello_world/GOLDEN_PARTIAL.js @@ -39,11 +39,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js index 042b8cc42f..8ee0a5a39f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/interpolations/GOLDEN_PARTIAL.js @@ -34,11 +34,11 @@ import * as i0 from "@angular/core"; export declare class MyApp { list: any[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js index 27a2235efd..5cae301636 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/attribute_bindings/GOLDEN_PARTIAL.js @@ -30,7 +30,7 @@ export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -65,7 +65,7 @@ export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -96,7 +96,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -131,7 +131,7 @@ MyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", ty import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -185,17 +185,17 @@ MyMod.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImport: import * as i0 from "@angular/core"; export declare class CustomEl { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -233,7 +233,7 @@ export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -287,11 +287,11 @@ export declare class MyComponent { doThings(): void; three: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -362,11 +362,11 @@ export declare class MyComponent { eight: any; nine: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js index cfaff9f209..9c369ba211 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js @@ -34,11 +34,11 @@ import * as i0 from "@angular/core"; export declare class HostBindingDir { dirId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -74,11 +74,11 @@ export declare class HostBindingDir { id: number; }; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -115,11 +115,11 @@ import * as i0 from "@angular/core"; export declare class HostBindingComp { id: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -156,11 +156,11 @@ import * as i0 from "@angular/core"; export declare class HostAttributeDir { required: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -193,11 +193,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class HostAttributeDir { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -251,15 +251,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class HostAttributeComp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class HostAttributeDir { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -289,7 +289,7 @@ export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -324,7 +324,7 @@ export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -350,7 +350,7 @@ MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", ty import * as i0 from "@angular/core"; export declare class MyDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -382,7 +382,7 @@ export declare class MyDirective { expandedState: string; isSmall: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -414,7 +414,7 @@ export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -449,7 +449,7 @@ export declare class MyDirective { myTitle: string; myId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -475,7 +475,7 @@ MyDirective.ɵdir = i0.ɵɵngDeclareDirective({ version: "0.0.0-PLACEHOLDER", ty import * as i0 from "@angular/core"; export declare class MyDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -514,7 +514,7 @@ export declare class MyDirective { mouseup(): void; click(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -549,7 +549,7 @@ import * as i0 from "@angular/core"; export declare class MyComponent { start(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -592,7 +592,7 @@ export declare class MyComponent { start(): void; click(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -642,11 +642,11 @@ export declare class HostBindingDir { false: any; other: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -691,11 +691,11 @@ export declare class HostBindingDir { 'is-"b"': any; '"is-c"': any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js index 62c19f9701..ca5c25b9a1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/non_bindable_behavior/GOLDEN_PARTIAL.js @@ -44,11 +44,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -96,11 +96,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -148,11 +148,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -196,11 +196,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js index 1be3bd8735..36512bf73b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js @@ -31,11 +31,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { title: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -77,11 +77,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -152,11 +152,11 @@ export declare class MyComponent { eight: any; nine: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -198,11 +198,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { forValue: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -256,7 +256,7 @@ import * as i0 from "@angular/core"; export declare class AsyncPipe { transform(v: any): null | any; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { myTitle: string; @@ -264,11 +264,11 @@ export declare class MyComponent { identity(): any; }; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -298,7 +298,7 @@ export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -342,15 +342,15 @@ import * as i0 from "@angular/core"; export declare class ButtonDir { al: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -397,15 +397,15 @@ import * as i0 from "@angular/core"; export declare class ButtonDir { al: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -449,7 +449,7 @@ export declare class MyComponent { expansionState: string; myTitle: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -478,7 +478,7 @@ export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -547,23 +547,23 @@ import * as i0 from "@angular/core"; export declare class SpanDir { someProp: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class CustomEl { prop: any; otherProp: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -619,17 +619,17 @@ import * as i0 from "@angular/core"; export declare class SpanDir { someProp: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { myTitle: string; buttonId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js index a8082c0da6..5ea532f6cb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/text_bindings/GOLDEN_PARTIAL.js @@ -36,11 +36,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js index ff207b1e9a..cbf0b8e161 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_di/di/GOLDEN_PARTIAL.js @@ -55,11 +55,11 @@ export declare class MyService { export declare class MyComponent { constructor(name: string, s1: MyService, s2: MyService, s4: MyService, s3: MyService, s5: MyService, s6: MyService); static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -352,23 +352,23 @@ export declare class MyPipe implements PipeTransform { constructor(service: Service); transform(value: any, ...args: any[]): any; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; static ɵprov: i0.ɵɵInjectableDef; } export declare class MyOtherPipe implements PipeTransform { constructor(service: Service); transform(value: any, ...args: any[]): any; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; static ɵprov: i0.ɵɵInjectableDef; } export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export {}; diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js index af95f00a35..bdb11b34d6 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js @@ -35,15 +35,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class I18nDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -100,23 +100,23 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class I18nDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class I18nFooDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class FooDirective { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -160,15 +160,15 @@ import * as i0 from "@angular/core"; export declare class SomeDirective { someDirective: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -216,15 +216,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class DirectiveA { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -272,15 +272,15 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class DirectiveA { static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -327,15 +327,15 @@ import * as i0 from "@angular/core"; export declare class SomeDirective { someDirective: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -379,15 +379,15 @@ import * as i0 from "@angular/core"; export declare class SomeDirective { someDirective: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -436,16 +436,16 @@ import * as i0 from "@angular/core"; export declare class SomeDirective { someDirective: EventEmitter; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { noop(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js index 78dfaa0def..fc82fc43b2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js @@ -48,11 +48,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -92,11 +92,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -140,11 +140,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { visible: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -188,11 +188,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -245,16 +245,16 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -294,11 +294,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -350,11 +350,11 @@ export declare class MyComponent { title: string; label: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -394,11 +394,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -442,11 +442,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { exp: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -526,24 +526,24 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class DivDir { al: any; arl: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { valueA: any; valueB: any; valueC: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -597,16 +597,16 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { valueA: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -663,16 +663,16 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { outer: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -713,11 +713,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { valueA: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -758,11 +758,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { valueA: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -802,11 +802,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -850,11 +850,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js index badfd1ed1d..89bb9f15e3 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js @@ -38,11 +38,11 @@ export { MyModule }; import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js index 68c4b9cfad..56f3be10cb 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js @@ -38,11 +38,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -86,11 +86,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -134,11 +134,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { age: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -194,11 +194,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -245,11 +245,11 @@ export declare class MyComponent { age: number; other: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -301,11 +301,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -355,11 +355,11 @@ export declare class MyComponent { ageB: number; ageC: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -411,11 +411,11 @@ export declare class MyComponent { gender: string; age: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -475,11 +475,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -537,11 +537,11 @@ export declare class MyComponent { age: number; gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -601,11 +601,11 @@ export declare class MyComponent { count: number; name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -659,11 +659,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -721,11 +721,11 @@ export declare class MyComponent { weight: number; height: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -787,11 +787,11 @@ export declare class MyComponent { height: number; age: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -835,11 +835,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { count: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -889,11 +889,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { count: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js index a13e9b6886..5c365e9a61 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/line_ending_normalization/GOLDEN_PARTIAL.js @@ -53,11 +53,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -116,11 +116,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -159,11 +159,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -202,11 +202,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -265,11 +265,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -328,11 +328,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -371,11 +371,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -414,11 +414,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { value: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js index fe49df1c62..3741414c63 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/localize_legacy_message_ids/GOLDEN_PARTIAL.js @@ -34,11 +34,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -78,11 +78,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js index 70dfeea366..ae235e415a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js @@ -46,11 +46,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -102,11 +102,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js index 64fe43ce46..fd49f796ee 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js @@ -42,11 +42,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -86,11 +86,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -130,11 +130,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -174,11 +174,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { count: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -226,11 +226,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -282,11 +282,11 @@ export declare class MyComponent { valueA: string; valueB: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -331,11 +331,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { valueA: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -393,16 +393,16 @@ import * as i0 from "@angular/core"; export declare class AsyncPipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { valueA: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -463,7 +463,7 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { one: number; @@ -472,11 +472,11 @@ export declare class MyComponent { four: number; five: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -557,18 +557,18 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { one: number; two: number; nestedInBlockTwo: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -640,7 +640,7 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { valueA: any; @@ -649,11 +649,11 @@ export declare class MyComponent { valueD: any; valueE: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -713,11 +713,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -761,11 +761,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -845,11 +845,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -889,11 +889,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -935,11 +935,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js index 0386755c11..00ad6f6a4e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js @@ -47,16 +47,16 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { valueA: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -96,11 +96,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -160,17 +160,17 @@ import * as i0 from "@angular/core"; export declare class UppercasePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { valueA: string; valueB: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -216,11 +216,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { age: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -280,11 +280,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -330,11 +330,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { gender: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -384,11 +384,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -430,11 +430,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -478,11 +478,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -526,11 +526,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -572,11 +572,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js index b7bdf26c66..bf0d3ccdd7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js @@ -34,11 +34,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -82,11 +82,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { age: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -128,11 +128,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -174,11 +174,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js index dab7b21996..dd09c00410 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js @@ -41,11 +41,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js index 962fb13bf3..9e66097029 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_input_outputs/GOLDEN_PARTIAL.js @@ -41,11 +41,11 @@ export declare class MyComponent { componentOutput: any; originalComponentOutput: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -92,11 +92,11 @@ export declare class MyDirective { directiveOutput: any; originalDirectiveOutput: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js index f96b4a7bca..38c98ce992 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js @@ -29,11 +29,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(event: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -75,16 +75,16 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyApp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyComponent { onClick(event: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -134,11 +134,11 @@ export declare class MyComponent { onClick(name: any): void; onClick2(name: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -182,11 +182,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -226,11 +226,11 @@ export declare class MyComponent { click(): void; change(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -298,7 +298,7 @@ export declare class SomeComp { update: EventEmitter; delete: EventEmitter; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyComponent { click(): void; @@ -306,11 +306,11 @@ export declare class MyComponent { delete(): void; update(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -346,11 +346,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -376,7 +376,7 @@ import * as i0 from "@angular/core"; export declare class MyComponent { onClick(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -412,7 +412,7 @@ export declare class MyComponent { mousedown(): void; click(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -440,7 +440,7 @@ import * as i0 from "@angular/core"; export declare class MyComponent { click(target: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -529,11 +529,11 @@ import * as i0 from "@angular/core"; export declare class DivDir { event: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyMod { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js index 0c6572e460..fd2a813083 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_providers/GOLDEN_PARTIAL.js @@ -39,11 +39,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -87,11 +87,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -131,11 +131,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -168,11 +168,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js index 72996edf09..d7178b43e7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/binding_slots/GOLDEN_PARTIAL.js @@ -62,11 +62,11 @@ export declare class MyComponent { title: string; name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -112,7 +112,7 @@ export declare class WidthDirective { id: string; title: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } /**************************************************************************************************** @@ -184,15 +184,15 @@ export declare class MyDir { _animParam1: null; _animParam2: null; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyAppComp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js index be2930e099..605304b92b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/chaining/GOLDEN_PARTIAL.js @@ -34,7 +34,7 @@ export declare class MyComponent { yesToOrange: boolean; yesToTomato: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -73,7 +73,7 @@ export declare class MyComponent { border: string; transition: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -124,7 +124,7 @@ export declare class MyComponent { yesToOrange: boolean; yesToTomato: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -159,7 +159,7 @@ import * as i0 from "@angular/core"; export declare class MyComponent { one: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -204,7 +204,7 @@ export declare class MyComponent { two: string; three: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -257,7 +257,7 @@ export declare class MyComponent { yesToApple: boolean; yesToOrange: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -306,7 +306,7 @@ export declare class MyComponent { transition: string; width: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -357,6 +357,6 @@ export declare class MyComponent { border: string; yesToOrange: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js index 6733c7342a..3cb1554f9b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/class_bindings/GOLDEN_PARTIAL.js @@ -33,11 +33,11 @@ export declare class MyComponent { foo: boolean; }; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -94,11 +94,11 @@ export declare class MyComponent { yesToApple: boolean; yesToOrange: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -142,11 +142,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -179,11 +179,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js index b2aaa797bb..eb0c252a2e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js @@ -27,11 +27,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -64,11 +64,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -114,11 +114,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { exp: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -179,7 +179,7 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -235,7 +235,7 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js index 65dac570e3..25f6cb9e6a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_styles/GOLDEN_PARTIAL.js @@ -33,11 +33,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -75,11 +75,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -117,11 +117,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js index 3231454ad7..eb66658cda 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js @@ -57,11 +57,11 @@ export declare class MyComponent { myColorProp: string; myFooClass: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -127,11 +127,11 @@ export declare class MyComponent { b: boolean; }; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -194,11 +194,11 @@ export declare class MyComponent { myBarClassExp: boolean; myHeightExp: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -274,11 +274,11 @@ export declare class MyComponent { p8: number; p9: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -354,11 +354,11 @@ export declare class MyComponent { p8: number; p9: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -447,27 +447,27 @@ export declare class ClassDirective { red: boolean; }; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class WidthDirective { myWidth: number; myFooClass: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class HeightDirective { myHeight: number; myBarClass: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js index ce9a19de17..d804406b8f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/interpolations/GOLDEN_PARTIAL.js @@ -62,7 +62,7 @@ export declare class MyComponent { eight: string; nine: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -129,7 +129,7 @@ export declare class MyComponent { eight: string; nine: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -164,7 +164,7 @@ export declare class MyComponent { one: string; two: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -211,7 +211,7 @@ export declare class MyComponent { myBoxWidth: string; myRepeat: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -246,6 +246,6 @@ export declare class MyComponent { one: string; two: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js index a121b12c21..fdbf0bb1a7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/invalid/GOLDEN_PARTIAL.js @@ -22,6 +22,6 @@ import * as i0 from "@angular/core"; export declare class MyComponent { isEnabled: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js index e2ffb0c73b..72f4563f3e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/mixed_style_and_class/GOLDEN_PARTIAL.js @@ -39,11 +39,11 @@ export declare class MyComponent { })[]; myClassExp: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -102,12 +102,12 @@ import * as i0 from "@angular/core"; export declare class StylePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class ClassPipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { myStyleExp: ({ @@ -119,11 +119,11 @@ export declare class MyComponent { })[]; myClassExp: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -189,7 +189,7 @@ import * as i0 from "@angular/core"; export declare class PipePipe { transform(v: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class MyComponent { myStyleExp: {}; @@ -199,11 +199,11 @@ export declare class MyComponent { items: number[]; item: number; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -259,11 +259,11 @@ export declare class MyComponent { a1: boolean; r1: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js index ed9f14a0b8..4f9cb63695 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js @@ -37,11 +37,11 @@ export declare class MyComponent { duration: number; })[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -127,22 +127,22 @@ import * as i0 from "@angular/core"; export declare class MyComponentWithInterpolation { fooId: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyComponentWithMuchosInterpolation { fooId: string; fooUsername: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyComponentWithoutInterpolation { exp: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -200,11 +200,11 @@ export declare class MyComponent { myWidth: string; myHeight: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -241,11 +241,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { myImage: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -278,11 +278,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -315,11 +315,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js index f4c362a7b9..121e57f9e2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js @@ -58,11 +58,11 @@ export declare class MyComponent { format(outer: any, middle: any, inner: any): void; onClick(outer: any, middle: any, inner: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -108,11 +108,11 @@ export declare class MyComponent { _data: number[]; _handleClick(d: any, i: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -156,11 +156,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { greet(val: any): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -204,11 +204,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -254,11 +254,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -308,11 +308,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -354,11 +354,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -394,11 +394,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -434,11 +434,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -482,7 +482,7 @@ import * as i0 from "@angular/core"; export declare class TestComp { message: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -525,7 +525,7 @@ import * as i0 from "@angular/core"; export declare class TestComp { message: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -636,11 +636,11 @@ import * as i0 from "@angular/core"; export declare class AComponent { items: number[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class AModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } export declare class BComponent { @@ -648,11 +648,11 @@ export declare class BComponent { subitems: number[]; }[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class BModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -714,16 +714,16 @@ import * as i0 from "@angular/core"; export declare class AComponent { show: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class BComponent { show: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class AModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -779,11 +779,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { items: number[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -819,11 +819,11 @@ MyModule.ɵinj = i0.ɵɵngDeclareInjector({ version: "0.0.0-PLACEHOLDER", ngImpo import * as i0 from "@angular/core"; export declare class MyComponent { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -862,11 +862,11 @@ import * as i0 from "@angular/core"; export declare class MyComponent { a: any; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class MyModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } diff --git a/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js index 4f5ce866dd..dec104bb14 100644 --- a/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/source_mapping/external_templates/GOLDEN_PARTIAL.js @@ -25,7 +25,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -55,7 +55,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -85,7 +85,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -115,7 +115,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -145,7 +145,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -175,6 +175,6 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } diff --git a/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js index 7f3c4507c2..6b03939861 100644 --- a/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js @@ -25,7 +25,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -55,7 +55,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -85,7 +85,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -115,7 +115,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -149,7 +149,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -183,7 +183,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -219,7 +219,7 @@ export declare class TestCmp { greeting: string; name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -255,7 +255,7 @@ export declare class TestCmp { greeting: string; name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -289,7 +289,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -323,7 +323,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -372,16 +372,16 @@ import { PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class PercentPipe implements PipeTransform { transform(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -431,16 +431,16 @@ import { PipeTransform } from '@angular/core'; import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class PercentPipe implements PipeTransform { transform(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵpipe: i0.ɵɵPipeDefWithMeta; + static ɵpipe: i0.ɵɵPipeDeclaration; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -475,7 +475,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -509,7 +509,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -545,7 +545,7 @@ export declare class TestCmp { greeting: string; name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -581,7 +581,7 @@ export declare class TestCmp { greeting: string; name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -615,7 +615,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -649,7 +649,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -681,7 +681,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { doSomething(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -713,7 +713,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { doSomething(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -747,7 +747,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { items: string[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -781,7 +781,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { items: string[]; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -813,7 +813,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { doSomething(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -845,7 +845,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { doSomething(): void; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -905,17 +905,17 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class NgModelDirective { ngModel: string; ngModelChanges: EventEmitter; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -976,17 +976,17 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class NgModelDirective { ngModel: string; ngModelChanges: EventEmitter; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -1047,17 +1047,17 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class NgModelDirective { ngModel: string; ngModelChanges: EventEmitter; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -1118,17 +1118,17 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } export declare class NgModelDirective { ngModel: string; ngModelChanges: EventEmitter; static ɵfac: i0.ɵɵFactoryDef; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class AppModule { static ɵfac: i0.ɵɵFactoryDef; - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDef; } @@ -1163,7 +1163,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { isInitial: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1197,7 +1197,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { isInitial: boolean; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1227,7 +1227,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1257,7 +1257,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1295,7 +1295,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1333,7 +1333,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1363,7 +1363,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1393,7 +1393,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1423,7 +1423,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1453,7 +1453,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1487,7 +1487,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1521,7 +1521,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1551,7 +1551,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1581,7 +1581,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1615,7 +1615,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1649,7 +1649,7 @@ import * as i0 from "@angular/core"; export declare class TestCmp { name: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1685,7 +1685,7 @@ export declare class TestCmp { titleValue: string; bodyValue: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1721,7 +1721,7 @@ export declare class TestCmp { titleValue: string; bodyValue: string; static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1751,7 +1751,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1781,7 +1781,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1811,7 +1811,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1841,7 +1841,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1871,7 +1871,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1901,7 +1901,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1931,7 +1931,7 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } /**************************************************************************************************** @@ -1961,6 +1961,6 @@ TestCmp.ɵcmp = i0.ɵɵngDeclareComponent({ version: "0.0.0-PLACEHOLDER", type: import * as i0 from "@angular/core"; export declare class TestCmp { static ɵfac: i0.ɵɵFactoryDef; - static ɵcmp: i0.ɵɵComponentDefWithMeta; + static ɵcmp: i0.ɵɵComponentDeclaration; } diff --git a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts index 9ad05bbc82..9c2771cd72 100644 --- a/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts +++ b/packages/compiler-cli/test/ngtsc/ngtsc_spec.ts @@ -244,7 +244,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵdir: i0.ɵɵDirectiveDefWithMeta'); + 'static ɵdir: i0.ɵɵDirectiveDeclaration'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef'); }); @@ -266,7 +266,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵdir: i0.ɵɵDirectiveDefWithMeta'); + 'static ɵdir: i0.ɵɵDirectiveDeclaration'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef'); }); @@ -291,7 +291,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵcmp: i0.ɵɵComponentDefWithMeta'); + 'static ɵcmp: i0.ɵɵComponentDeclaration'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef'); }); @@ -317,7 +317,7 @@ function allTests(os: string) { expect(dtsContents) .toContain( - 'static ɵcmp: i0.ɵɵComponentDefWithMeta' + + 'static ɵcmp: i0.ɵɵComponentDeclaration' + ''); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef'); }); @@ -346,7 +346,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵcmp: i0.ɵɵComponentDefWithMeta'); + 'static ɵcmp: i0.ɵɵComponentDeclaration'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef'); }); @@ -998,7 +998,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - `static ɵdir: i0.ɵɵDirectiveDefWithMeta;`); + `static ɵdir: i0.ɵɵDirectiveDeclaration;`); }); describe('undecorated classes using Angular features', () => { @@ -1104,10 +1104,10 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵcmp: i0.ɵɵComponentDefWithMeta'); + 'static ɵcmp: i0.ɵɵComponentDeclaration'); expect(dtsContents) .toContain( - 'static ɵmod: i0.ɵɵNgModuleDefWithMeta'); + 'static ɵmod: i0.ɵɵNgModuleDeclaration'); expect(dtsContents).not.toContain('__decorate'); }); @@ -1194,15 +1194,15 @@ function allTests(os: string) { export class Comp {} `); env.write('node_modules/@angular/router/index.d.ts', ` - import {ɵɵComponentDefWithMeta, ModuleWithProviders, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵComponentDeclaration, ModuleWithProviders, ɵɵNgModuleDeclaration} from '@angular/core'; export declare class RouterComp { - static ɵcmp: ɵɵComponentDefWithMeta + static ɵcmp: ɵɵComponentDeclaration } declare class RouterModule { static forRoot(): ModuleWithProviders; - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -1257,7 +1257,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵmod: i0.ɵɵNgModuleDefWithMeta'); + 'static ɵmod: i0.ɵɵNgModuleDeclaration'); expect(dtsContents).toContain('static ɵinj: i0.ɵɵInjectorDef'); }); @@ -1300,7 +1300,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵmod: i0.ɵɵNgModuleDefWithMeta'); + 'static ɵmod: i0.ɵɵNgModuleDeclaration'); expect(dtsContents).toContain('static ɵinj: i0.ɵɵInjectorDef'); }); @@ -1347,7 +1347,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵmod: i0.ɵɵNgModuleDefWithMeta'); + 'static ɵmod: i0.ɵɵNgModuleDeclaration'); expect(dtsContents).toContain('static ɵinj: i0.ɵɵInjectorDef'); }); @@ -1515,7 +1515,7 @@ function allTests(os: string) { expect(jsContents) .toContain( 'TestPipe.ɵfac = function TestPipe_Factory(t) { return new (t || TestPipe)(); }'); - expect(dtsContents).toContain('static ɵpipe: i0.ɵɵPipeDefWithMeta;'); + expect(dtsContents).toContain('static ɵpipe: i0.ɵɵPipeDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef;'); }); @@ -1540,7 +1540,7 @@ function allTests(os: string) { expect(jsContents) .toContain( 'TestPipe.ɵfac = function TestPipe_Factory(t) { return new (t || TestPipe)(); }'); - expect(dtsContents).toContain('static ɵpipe: i0.ɵɵPipeDefWithMeta;'); + expect(dtsContents).toContain('static ɵpipe: i0.ɵɵPipeDeclaration;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef;'); }); @@ -1581,7 +1581,7 @@ function allTests(os: string) { expect(jsContents).toContain('TestPipe.ɵpipe ='); const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) - .toContain('static ɵpipe: i0.ɵɵPipeDefWithMeta, "test-pipe">;'); + .toContain('static ɵpipe: i0.ɵɵPipeDeclaration, "test-pipe">;'); expect(dtsContents).toContain('static ɵfac: i0.ɵɵFactoryDef, never>;'); }); @@ -1609,7 +1609,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'i0.ɵɵNgModuleDefWithMeta'); + 'i0.ɵɵNgModuleDeclaration'); }); describe('empty and missing selectors', () => { @@ -2130,10 +2130,10 @@ function allTests(os: string) { expect(jsContents).toContain('TestNgModule.ɵprov ='); // Validate that each class's .d.ts declaration has the primary definition. - expect(dtsContents).toContain('ComponentDefWithMeta'); + 'i0.ɵɵNgModuleDeclaration'); }); it('should extract the generic type and include it in the module\'s declaration', () => { @@ -2721,11 +2721,11 @@ function allTests(os: string) { `); env.write('node_modules/router/index.d.ts', ` - import {ModuleWithProviders, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ModuleWithProviders, ɵɵNgModuleDeclaration} from '@angular/core'; declare class RouterModule { static forRoot(): ModuleWithProviders; - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -2738,7 +2738,7 @@ function allTests(os: string) { expect(dtsContents).toContain(`import * as i1 from "router";`); expect(dtsContents) .toContain( - 'i0.ɵɵNgModuleDefWithMeta'); + 'i0.ɵɵNgModuleDeclaration'); }); it('should throw if ModuleWithProviders is missing its generic type argument', () => { @@ -2751,11 +2751,11 @@ function allTests(os: string) { `); env.write('node_modules/router/index.d.ts', ` - import {ModuleWithProviders, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ModuleWithProviders, ɵɵNgModuleDeclaration} from '@angular/core'; declare class RouterModule { static forRoot(): ModuleWithProviders; - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); const errors = env.driveDiagnostics(); @@ -2787,9 +2787,9 @@ function allTests(os: string) { `); env.write('node_modules/router/internal.d.ts', ` - import {ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵNgModuleDeclaration} from '@angular/core'; export declare class InternalRouterModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -2802,7 +2802,7 @@ function allTests(os: string) { expect(dtsContents).toContain(`import * as i1 from "router";`); expect(dtsContents) .toContain( - 'i0.ɵɵNgModuleDefWithMeta'); + 'i0.ɵɵNgModuleDeclaration'); }); it('should extract the generic type if it is provided as qualified type name from another package', @@ -2823,9 +2823,9 @@ function allTests(os: string) { }`); env.write('node_modules/router2/index.d.ts', ` - import {ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵNgModuleDeclaration} from '@angular/core'; export declare class Router2Module { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; }`); env.driveMain(); @@ -2837,17 +2837,17 @@ function allTests(os: string) { expect(dtsContents).toContain(`import * as i1 from "router2";`); expect(dtsContents) .toContain( - 'i0.ɵɵNgModuleDefWithMeta'); + 'i0.ɵɵNgModuleDeclaration'); }); it('should not reference a constant with a ModuleWithProviders value in module def imports', () => { env.write('dep.d.ts', ` - import {ModuleWithProviders, ɵɵNgModuleDefWithMeta as ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ModuleWithProviders, ɵɵNgModuleDeclaration as ɵɵNgModuleDeclaration} from '@angular/core'; export declare class DepModule { static forRoot(arg1: any, arg2: any): ModuleWithProviders; - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); env.write('test.ts', ` @@ -2881,13 +2881,13 @@ function allTests(os: string) { `); env.write('node_modules/router/index.d.ts', ` - import {ModuleWithProviders, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ModuleWithProviders, ɵɵNgModuleDeclaration} from '@angular/core'; export interface MyType extends ModuleWithProviders {} declare class RouterModule { static forRoot(): (MyType)&{ngModule:RouterModule}; - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -2900,7 +2900,7 @@ function allTests(os: string) { expect(dtsContents).toContain(`import * as i1 from "router";`); expect(dtsContents) .toContain( - 'i0.ɵɵNgModuleDefWithMeta'); + 'i0.ɵɵNgModuleDeclaration'); }); it('should unwrap a namespace imported ModuleWithProviders function if a generic type is provided for it', @@ -2919,7 +2919,7 @@ function allTests(os: string) { declare class RouterModule { static forRoot(): core.ModuleWithProviders; - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -2932,7 +2932,7 @@ function allTests(os: string) { expect(dtsContents).toContain(`import * as i1 from "router";`); expect(dtsContents) .toContain( - 'i0.ɵɵNgModuleDefWithMeta'); + 'i0.ɵɵNgModuleDeclaration'); }); it('should inject special types according to the metadata', () => { @@ -3104,7 +3104,7 @@ function allTests(os: string) { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵcmp: i0.ɵɵComponentDefWithMeta'); + 'static ɵcmp: i0.ɵɵComponentDeclaration'); }); it('should generate queries for components', () => { @@ -5071,14 +5071,14 @@ function allTests(os: string) { describe('when processing external directives', () => { it('should not emit multiple references to the same directive', () => { env.write('node_modules/external/index.d.ts', ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; export declare class ExternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } export declare class ExternalModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); env.write('test.ts', ` @@ -5106,19 +5106,19 @@ function allTests(os: string) { it('should import directives by their external name', () => { env.write('node_modules/external/index.d.ts', ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; import {InternalDir} from './internal'; export {InternalDir as ExternalDir} from './internal'; export declare class ExternalModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); env.write('node_modules/external/internal.d.ts', ` export declare class InternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } `); env.write('test.ts', ` @@ -5410,14 +5410,14 @@ function allTests(os: string) { export class Module {} `); env.write('node_modules/external/index.d.ts', ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; export declare class ExternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } export declare class ExternalModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -5560,14 +5560,14 @@ function allTests(os: string) { it('should not re-export a directive from an exported, external NgModule', () => { env.write(`node_modules/external/index.d.ts`, ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; export declare class ExternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } export declare class ExternalModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); env.write('module.ts', ` @@ -5660,18 +5660,18 @@ function allTests(os: string) { it('should choose a re-exported symbol if one is present', () => { env.write(`node_modules/external/dir.d.ts`, ` - import {ɵɵDirectiveDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration} from '@angular/core'; export declare class ExternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } `); env.write('node_modules/external/module.d.ts', ` - import {ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵNgModuleDeclaration} from '@angular/core'; import {ExternalDir} from './dir'; export declare class ExternalModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } export {ExternalDir as ɵngExportɵExternalModuleɵExternalDir}; @@ -6063,13 +6063,13 @@ function allTests(os: string) { beforeEach(() => { env.write('node_modules/@angular/router/index.d.ts', ` - import {ModuleWithProviders, ɵɵNgModuleDefWithMeta as ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ModuleWithProviders, ɵɵNgModuleDeclaration as ɵɵNgModuleDeclaration} from '@angular/core'; export declare var ROUTES; export declare class RouterModule { static forRoot(arg1: any, arg2: any): ModuleWithProviders; static forChild(arg1: any): ModuleWithProviders; - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); }); @@ -6699,24 +6699,24 @@ export const Foo = Foo__PRE_R3__; // 'alpha' declares the directive which will ultimately be imported. env.write('alpha.d.ts', ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; export declare class ExternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } export declare class AlphaModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); // 'beta' re-exports AlphaModule from alpha. env.write('beta.d.ts', ` - import {ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵNgModuleDeclaration} from '@angular/core'; import {AlphaModule} from './alpha'; export declare class BetaModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -6749,26 +6749,26 @@ export const Foo = Foo__PRE_R3__; it('should write alias ES2015 exports for NgModule exported directives', () => { env.tsconfig({'_useHostForImportGeneration': true}); env.write('external.d.ts', ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; import {LibModule} from './lib'; export declare class ExternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } export declare class ExternalModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); env.write('lib.d.ts', ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; export declare class LibDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } export declare class LibModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); env.write('foo.ts', ` @@ -6907,7 +6907,7 @@ export const Foo = Foo__PRE_R3__; `); env.write('lib.d.ts', ` - import {ɵɵComponentDefWithMeta, ɵɵDirectiveDefWithMeta, ElementRef} from '@angular/core'; + import {ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ElementRef} from '@angular/core'; export declare class BasePlain {} @@ -6920,11 +6920,11 @@ export const Foo = Foo__PRE_R3__; } export declare class BaseCmp { - static ɵcmp: ɵɵComponentDefWithMeta + static ɵcmp: ɵɵComponentDeclaration } export declare class BaseDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } `); }); diff --git a/packages/compiler-cli/test/ngtsc/scope_spec.ts b/packages/compiler-cli/test/ngtsc/scope_spec.ts index e0037e23b8..3990c5cc86 100644 --- a/packages/compiler-cli/test/ngtsc/scope_spec.ts +++ b/packages/compiler-cli/test/ngtsc/scope_spec.ts @@ -50,10 +50,10 @@ runInEachFileSystem(() => { it('should detect when a declaration lives outside the current compilation', () => { env.write('dir.d.ts', ` - import {ɵɵDirectiveDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration} from '@angular/core'; export declare class ExternalDir { - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } `); env.write('test.ts', ` @@ -174,7 +174,7 @@ runInEachFileSystem(() => { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵmod: i0.ɵɵNgModuleDefWithMeta'); + 'static ɵmod: i0.ɵɵNgModuleDeclaration'); }); it('should produce an error when an invalid class is imported', () => { @@ -237,7 +237,7 @@ runInEachFileSystem(() => { const dtsContents = env.getContents('test.d.ts'); expect(dtsContents) .toContain( - 'static ɵmod: i0.ɵɵNgModuleDefWithMeta'); + 'static ɵmod: i0.ɵɵNgModuleDeclaration'); }); it('should produce an error when a non-NgModule class is exported', () => { diff --git a/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts b/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts index fc060b6098..83306ea997 100644 --- a/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts +++ b/packages/compiler-cli/test/ngtsc/template_typecheck_spec.ts @@ -42,7 +42,7 @@ export declare class NgForOfContext = i0.NgIterabl export declare class IndexPipe { transform(value: T[], index: number): T; - static ɵpipe: i0.ɵPipeDefWithMeta; + static ɵpipe: i0.ɵPipeDeclaration; } export declare class SlicePipe { @@ -52,7 +52,7 @@ export declare class SlicePipe { transform(value: undefined, start: number, end?: number): undefined; transform(value: any, start: number, end?: number): any; - static ɵpipe: i0.ɵPipeDefWithMeta; + static ɵpipe: i0.ɵPipeDeclaration; } export declare class NgForOf = i0.NgIterable> implements DoCheck { @@ -62,7 +62,7 @@ export declare class NgForOf = i0.NgIterable> i constructor(_viewContainer: ViewContainerRef, _template: TemplateRef>, _differs: IterableDiffers); ngDoCheck(): void; static ngTemplateContextGuard>(dir: NgForOf, ctx: any): ctx is NgForOfContext; - static ɵdir: i0.ɵɵDirectiveDefWithMeta, '[ngFor][ngForOf]', never, {'ngForOf': 'ngForOf'}, {}, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, '[ngFor][ngForOf]', never, {'ngForOf': 'ngForOf'}, {}, never>; } export declare class NgIf { @@ -72,7 +72,7 @@ export declare class NgIf { constructor(_viewContainer: ViewContainerRef, templateRef: TemplateRef>); static ngTemplateGuard_ngIf: 'binding'; static ngTemplateContextGuard(dir: NgIf, ctx: any): ctx is NgIfContext>; - static ɵdir: i0.ɵɵDirectiveDefWithMeta, '[ngIf]', never, {'ngIf': 'ngIf'}, {}, never>; + static ɵdir: i0.ɵɵDirectiveDeclaration, '[ngIf]', never, {'ngIf': 'ngIf'}, {}, never>; } export declare class NgIfContext { @@ -81,7 +81,7 @@ export declare class NgIfContext { } export declare class CommonModule { - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; } `); env.write('node_modules/@angular/animations/index.d.ts', ` @@ -1346,17 +1346,17 @@ export declare class AnimationEvent { export declare class AbstractDir { fromAbstract: number; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class BaseDir extends AbstractDir { fromBase: string; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class ExternalModule { - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; } `); @@ -1472,25 +1472,25 @@ export declare class AnimationEvent { // 'alpha' declares the directive which will ultimately be imported. env.write('alpha.d.ts', ` - import {ɵɵDirectiveDefWithMeta, ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration} from '@angular/core'; export declare class ExternalDir { input: string; - static ɵdir: ɵɵDirectiveDefWithMeta; + static ɵdir: ɵɵDirectiveDeclaration; } export declare class AlphaModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); // 'beta' re-exports AlphaModule from alpha. env.write('beta.d.ts', ` - import {ɵɵNgModuleDefWithMeta} from '@angular/core'; + import {ɵɵNgModuleDeclaration} from '@angular/core'; import {AlphaModule} from './alpha'; export declare class BetaModule { - static ɵmod: ɵɵNgModuleDefWithMeta; + static ɵmod: ɵɵNgModuleDeclaration; } `); @@ -1525,12 +1525,12 @@ export declare class AnimationEvent { export declare class MatInput { value: string; - static ɵdir: i0.ɵɵDirectiveDefWithMeta; + static ɵdir: i0.ɵɵDirectiveDeclaration; static ngAcceptInputType_value: string|number; } export declare class MatInputModule { - static ɵmod: i0.ɵɵNgModuleDefWithMeta; + static ɵmod: i0.ɵɵNgModuleDeclaration; } `); }); diff --git a/packages/compiler/src/render3/r3_identifiers.ts b/packages/compiler/src/render3/r3_identifiers.ts index 90e3efdd83..94612616f8 100644 --- a/packages/compiler/src/render3/r3_identifiers.ts +++ b/packages/compiler/src/render3/r3_identifiers.ts @@ -250,8 +250,8 @@ export class Identifiers { moduleName: CORE, }; - static ComponentDefWithMeta: o.ExternalReference = { - name: 'ɵɵComponentDefWithMeta', + static ComponentDeclaration: o.ExternalReference = { + name: 'ɵɵComponentDeclaration', moduleName: CORE, }; @@ -263,8 +263,8 @@ export class Identifiers { static defineDirective: o.ExternalReference = {name: 'ɵɵdefineDirective', moduleName: CORE}; static declareDirective: o.ExternalReference = {name: 'ɵɵngDeclareDirective', moduleName: CORE}; - static DirectiveDefWithMeta: o.ExternalReference = { - name: 'ɵɵDirectiveDefWithMeta', + static DirectiveDeclaration: o.ExternalReference = { + name: 'ɵɵDirectiveDeclaration', moduleName: CORE, }; @@ -276,8 +276,8 @@ export class Identifiers { static defineInjector: o.ExternalReference = {name: 'ɵɵdefineInjector', moduleName: CORE}; static declareInjector: o.ExternalReference = {name: 'ɵɵngDeclareInjector', moduleName: CORE}; - static NgModuleDefWithMeta: o.ExternalReference = { - name: 'ɵɵNgModuleDefWithMeta', + static NgModuleDeclaration: o.ExternalReference = { + name: 'ɵɵNgModuleDeclaration', moduleName: CORE, }; @@ -290,7 +290,7 @@ export class Identifiers { static declareNgModule: o.ExternalReference = {name: 'ɵɵngDeclareNgModule', moduleName: CORE}; static setNgModuleScope: o.ExternalReference = {name: 'ɵɵsetNgModuleScope', moduleName: CORE}; - static PipeDefWithMeta: o.ExternalReference = {name: 'ɵɵPipeDefWithMeta', moduleName: CORE}; + static PipeDeclaration: o.ExternalReference = {name: 'ɵɵPipeDeclaration', moduleName: CORE}; static definePipe: o.ExternalReference = {name: 'ɵɵdefinePipe', moduleName: CORE}; static declarePipe: o.ExternalReference = {name: 'ɵɵngDeclarePipe', moduleName: CORE}; diff --git a/packages/compiler/src/render3/r3_module_compiler.ts b/packages/compiler/src/render3/r3_module_compiler.ts index c19016c451..4196771242 100644 --- a/packages/compiler/src/render3/r3_module_compiler.ts +++ b/packages/compiler/src/render3/r3_module_compiler.ts @@ -212,7 +212,7 @@ export function compileNgModuleDeclarationExpression(meta: R3DeclareNgModuleFaca export function createNgModuleType( {type: moduleType, declarations, imports, exports}: R3NgModuleMetadata): o.ExpressionType { - return new o.ExpressionType(o.importExpr(R3.NgModuleDefWithMeta, [ + return new o.ExpressionType(o.importExpr(R3.NgModuleDeclaration, [ new o.ExpressionType(moduleType.type), tupleTypeOf(declarations), tupleTypeOf(imports), tupleTypeOf(exports) ])); diff --git a/packages/compiler/src/render3/r3_pipe_compiler.ts b/packages/compiler/src/render3/r3_pipe_compiler.ts index f2342086c8..ec11bfb8dd 100644 --- a/packages/compiler/src/render3/r3_pipe_compiler.ts +++ b/packages/compiler/src/render3/r3_pipe_compiler.ts @@ -72,7 +72,7 @@ export function compilePipeFromMetadata(metadata: R3PipeMetadata): R3CompiledExp } export function createPipeType(metadata: R3PipeMetadata): o.Type { - return new o.ExpressionType(o.importExpr(R3.PipeDefWithMeta, [ + return new o.ExpressionType(o.importExpr(R3.PipeDeclaration, [ typeWithParameters(metadata.type.type, metadata.typeArgumentCount), new o.ExpressionType(new o.LiteralExpr(metadata.pipeName)), ])); diff --git a/packages/compiler/src/render3/view/compiler.ts b/packages/compiler/src/render3/view/compiler.ts index 3d582ee77b..76de1f9af4 100644 --- a/packages/compiler/src/render3/view/compiler.ts +++ b/packages/compiler/src/render3/view/compiler.ts @@ -266,7 +266,7 @@ export function compileComponentFromMetadata( export function createComponentType(meta: R3ComponentMetadata): o.Type { const typeParams = createDirectiveTypeParams(meta); typeParams.push(stringArrayAsType(meta.template.ngContentSelectors)); - return o.expressionType(o.importExpr(R3.ComponentDefWithMeta, typeParams)); + return o.expressionType(o.importExpr(R3.ComponentDeclaration, typeParams)); } /** @@ -427,7 +427,7 @@ export function createDirectiveTypeParams(meta: R3DirectiveMetadata): o.Type[] { */ export function createDirectiveType(meta: R3DirectiveMetadata): o.Type { const typeParams = createDirectiveTypeParams(meta); - return o.expressionType(o.importExpr(R3.DirectiveDefWithMeta, typeParams)); + return o.expressionType(o.importExpr(R3.DirectiveDeclaration, typeParams)); } // Define and update any view queries diff --git a/packages/core/src/core_render3_private_export.ts b/packages/core/src/core_render3_private_export.ts index 1836e5a550..6325d626ac 100644 --- a/packages/core/src/core_render3_private_export.ts +++ b/packages/core/src/core_render3_private_export.ts @@ -56,9 +56,6 @@ export { SWITCH_COMPILE_DIRECTIVE__POST_R3__ as ɵSWITCH_COMPILE_DIRECTIVE__POST_R3__, SWITCH_COMPILE_PIPE__POST_R3__ as ɵSWITCH_COMPILE_PIPE__POST_R3__, } from './metadata/directives'; -export { - ɵɵNgModuleDefWithMeta, -} from './metadata/ng_module'; export { SWITCH_COMPILE_NGMODULE__POST_R3__ as ɵSWITCH_COMPILE_NGMODULE__POST_R3__, } from './metadata/ng_module'; @@ -126,14 +123,14 @@ export { ɵɵclassMapInterpolate8, ɵɵclassMapInterpolateV, ɵɵclassProp, - ɵɵComponentDefWithMeta, + ɵɵComponentDeclaration, ɵɵcontentQuery, ɵɵCopyDefinitionFeature, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineNgModule, ɵɵdefinePipe, - ɵɵDirectiveDefWithMeta, + ɵɵDirectiveDeclaration, ɵɵdirectiveInject, ɵɵdisableBindings, ɵɵelement, @@ -164,6 +161,7 @@ export { ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵnextContext, + ɵɵNgModuleDeclaration, ɵɵNgOnChangesFeature, ɵɵpipe, ɵɵpipeBind1, @@ -171,7 +169,7 @@ export { ɵɵpipeBind3, ɵɵpipeBind4, ɵɵpipeBindV, - ɵɵPipeDefWithMeta, + ɵɵPipeDeclaration, ɵɵprojection, ɵɵprojectionDef, ɵɵproperty, diff --git a/packages/core/src/metadata/ng_module.ts b/packages/core/src/metadata/ng_module.ts index 731a97fe76..f23f0dc29c 100644 --- a/packages/core/src/metadata/ng_module.ts +++ b/packages/core/src/metadata/ng_module.ts @@ -13,13 +13,6 @@ import {Type} from '../interface/type'; import {SchemaMetadata} from '../metadata/schema'; import {compileNgModule as render3CompileNgModule} from '../render3/jit/module'; import {makeDecorator, TypeDecorator} from '../util/decorators'; -import {NgModuleDef} from './ng_module_def'; - - -/** - * @publicApi - */ -export type ɵɵNgModuleDefWithMeta = NgModuleDef; /** diff --git a/packages/core/src/r3_symbols.ts b/packages/core/src/r3_symbols.ts index 480dd74075..d8a21a0beb 100644 --- a/packages/core/src/r3_symbols.ts +++ b/packages/core/src/r3_symbols.ts @@ -23,10 +23,10 @@ export {ɵɵinject} from './di/injector_compatibility'; export {ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵInjectableDef, ɵɵInjectorDef} from './di/interface/defs'; -export {ɵɵNgModuleDefWithMeta} from './metadata/ng_module'; export {NgModuleDef} from './metadata/ng_module_def'; export {ɵɵdefineNgModule} from './render3/definition'; export {ɵɵFactoryDef} from './render3/interfaces/definition'; +export {ɵɵNgModuleDeclaration} from './render3/interfaces/public_definitions'; export {setClassMetadata} from './render3/metadata'; export {NgModuleFactory} from './render3/ng_module_ref'; export {noSideEffects as ɵnoSideEffects} from './util/closure'; diff --git a/packages/core/src/render3/STORING_METADATA_IN_D.TS.md b/packages/core/src/render3/STORING_METADATA_IN_D.TS.md index 6d0054c9e5..c5e73c7570 100644 --- a/packages/core/src/render3/STORING_METADATA_IN_D.TS.md +++ b/packages/core/src/render3/STORING_METADATA_IN_D.TS.md @@ -52,6 +52,6 @@ We store the information in the `.d.ts` file like so. ```typescript class TooltipDirective { - static ɵdir: DirectiveDefWithMeta + static ɵdir: DirectiveDeclaration } ``` diff --git a/packages/core/src/render3/index.ts b/packages/core/src/render3/index.ts index 1d1322c36e..54034a866b 100644 --- a/packages/core/src/render3/index.ts +++ b/packages/core/src/render3/index.ts @@ -11,7 +11,8 @@ import {ɵɵCopyDefinitionFeature} from './features/copy_definition_feature'; import {ɵɵInheritDefinitionFeature} from './features/inherit_definition_feature'; import {ɵɵNgOnChangesFeature} from './features/ng_onchanges_feature'; import {ɵɵProvidersFeature} from './features/providers_feature'; -import {ComponentDef, ComponentTemplate, ComponentType, DirectiveDef, DirectiveType, PipeDef, ɵɵComponentDefWithMeta, ɵɵDirectiveDefWithMeta, ɵɵFactoryDef, ɵɵPipeDefWithMeta} from './interfaces/definition'; +import {ComponentDef, ComponentTemplate, ComponentType, DirectiveDef, DirectiveType, PipeDef, ɵɵFactoryDef} from './interfaces/definition'; +import {ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵNgModuleDeclaration, ɵɵPipeDeclaration} from './interfaces/public_definitions'; import {getComponent, getDirectives, getHostElement, getRenderedText} from './util/discovery_utils'; export {NgModuleType} from '../metadata/ng_module_def'; @@ -188,17 +189,18 @@ export { PipeDef, renderComponent, whenRendered, - ɵɵComponentDefWithMeta, + ɵɵComponentDeclaration, ɵɵCopyDefinitionFeature, ɵɵdefineComponent, ɵɵdefineDirective, ɵɵdefineNgModule, ɵɵdefinePipe, - ɵɵDirectiveDefWithMeta, + ɵɵDirectiveDeclaration, ɵɵFactoryDef, ɵɵInheritDefinitionFeature, + ɵɵNgModuleDeclaration, ɵɵNgOnChangesFeature, - ɵɵPipeDefWithMeta, + ɵɵPipeDeclaration, ɵɵProvidersFeature, ɵɵsetComponentScope, ɵɵsetNgModuleScope, diff --git a/packages/core/src/render3/interfaces/definition.ts b/packages/core/src/render3/interfaces/definition.ts index d25d2bb514..babe8ebbfc 100644 --- a/packages/core/src/render3/interfaces/definition.ts +++ b/packages/core/src/render3/interfaces/definition.ts @@ -112,16 +112,6 @@ export type CtorDependency = { skipSelf?: true; }|null; -/** - * @codeGenApi - */ -export type ɵɵDirectiveDefWithMeta< - T, Selector extends string, ExportAs extends - string[], InputMap extends {[key: string]: string}, - OutputMap extends {[key: string]: string}, - QueryFields extends string[]> = - DirectiveDef; - /** * Runtime link information for Directives. * @@ -247,15 +237,6 @@ export interface DirectiveDef { privateName: string) => void)|null; } -/** - * @codeGenApi - */ -export type ɵɵComponentDefWithMeta< - T, Selector extends String, ExportAs extends - string[], InputMap extends {[key: string]: string}, - OutputMap extends {[key: string]: string}, QueryFields extends - string[], NgContentSelectors extends string[]> = ComponentDef; - /** * @codeGenApi */ @@ -414,11 +395,6 @@ export interface PipeDef { onDestroy: (() => void)|null; } -/** - * @codeGenApi - */ -export type ɵɵPipeDefWithMeta = PipeDef; - export interface DirectiveDefFeature { (directiveDef: DirectiveDef): void; /** diff --git a/packages/core/src/render3/interfaces/public_definitions.ts b/packages/core/src/render3/interfaces/public_definitions.ts new file mode 100644 index 0000000000..08ebc3e78a --- /dev/null +++ b/packages/core/src/render3/interfaces/public_definitions.ts @@ -0,0 +1,40 @@ +/** + * @license + * Copyright Google LLC 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 + */ + +// This file contains types that will be published to npm in library typings files. + +/** + * @publicApi + */ +export type ɵɵDirectiveDeclaration< + T, Selector extends string, ExportAs extends + string[], InputMap extends {[key: string]: string}, + OutputMap extends {[key: string]: string}, + QueryFields extends string[]> = unknown; + +/** + * @publicApi + */ +export type ɵɵComponentDeclaration < T, Selector extends String, ExportAs extends string[], + InputMap extends { + [key: string]: string; +} +, OutputMap extends { + [key: string]: string; +} +, QueryFields extends string[], NgContentSelectors extends string[] > = unknown; + +/** + * @publicApi + */ +export type ɵɵNgModuleDeclaration = unknown; + +/** + * @publicApi + */ +export type ɵɵPipeDeclaration = unknown; diff --git a/packages/core/test/render3/jit_environment_spec.ts b/packages/core/test/render3/jit_environment_spec.ts index 8d32cf5602..47469addcc 100644 --- a/packages/core/test/render3/jit_environment_spec.ts +++ b/packages/core/test/render3/jit_environment_spec.ts @@ -12,11 +12,11 @@ import {Identifiers} from '@angular/compiler/src/render3/r3_identifiers'; import {angularCoreEnv} from '../../src/render3/jit/environment'; const INTERFACE_EXCEPTIONS = new Set([ - 'ɵɵComponentDefWithMeta', - 'ɵɵDirectiveDefWithMeta', + 'ɵɵComponentDeclaration', + 'ɵɵDirectiveDeclaration', 'ɵɵInjectorDef', - 'ɵɵNgModuleDefWithMeta', - 'ɵɵPipeDefWithMeta', + 'ɵɵNgModuleDeclaration', + 'ɵɵPipeDeclaration', 'ɵɵFactoryDef', 'ModuleWithProviders', ]); diff --git a/packages/core/test/strict_types/inheritance_spec.ts b/packages/core/test/strict_types/inheritance_spec.ts index a21ce06936..e376872ea7 100644 --- a/packages/core/test/strict_types/inheritance_spec.ts +++ b/packages/core/test/strict_types/inheritance_spec.ts @@ -6,10 +6,10 @@ * found in the LICENSE file at https://angular.io/license */ -import {ɵɵComponentDefWithMeta, ɵɵPipeDefWithMeta as PipeDefWithMeta} from '@angular/core'; +import {ɵɵComponentDeclaration, ɵɵPipeDeclaration} from '@angular/core'; declare class SuperComponent { - static ɵcmp: ɵɵComponentDefWithMeta; + static ɵcmp: ɵɵComponentDeclaration; } declare class SubComponent extends SuperComponent { @@ -18,17 +18,17 @@ declare class SubComponent extends SuperComponent { // would produce type errors when the "strictFunctionTypes" option is enabled. onlyInSubtype: string; - static ɵcmp: ɵɵComponentDefWithMeta; + static ɵcmp: ɵɵComponentDeclaration; } declare class SuperPipe { - static ɵpipe: PipeDefWithMeta; + static ɵpipe: ɵɵPipeDeclaration; } declare class SubPipe extends SuperPipe { onlyInSubtype: string; - static ɵpipe: PipeDefWithMeta; + static ɵpipe: ɵɵPipeDeclaration; } describe('inheritance strict type checking', () => {