@angular/compiler-cli 13.1.0-next.2 → 13.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (129) hide show
  1. package/bundles/{chunk-2DL256T3.js → chunk-5TY44ZS3.js} +426 -434
  2. package/bundles/chunk-5TY44ZS3.js.map +6 -0
  3. package/bundles/{chunk-EP5JHXG2.js → chunk-676MI6WZ.js} +33 -54
  4. package/bundles/chunk-676MI6WZ.js.map +6 -0
  5. package/bundles/{chunk-WOC6KEUY.js → chunk-6VRWTEQB.js} +28 -30
  6. package/bundles/chunk-6VRWTEQB.js.map +6 -0
  7. package/bundles/{chunk-S3QIIFH7.js → chunk-7PY7XEFH.js} +9 -6
  8. package/bundles/chunk-7PY7XEFH.js.map +6 -0
  9. package/bundles/{chunk-PBA67OV4.js → chunk-A5PL3TE6.js} +30 -6
  10. package/bundles/chunk-A5PL3TE6.js.map +6 -0
  11. package/bundles/{chunk-QL6ZC3U3.js → chunk-ADHVDA4A.js} +6 -6
  12. package/bundles/{chunk-QL6ZC3U3.js.map → chunk-ADHVDA4A.js.map} +1 -1
  13. package/bundles/{chunk-MIQ5UCHZ.js → chunk-FUZ3CSDO.js} +306 -389
  14. package/bundles/chunk-FUZ3CSDO.js.map +6 -0
  15. package/bundles/{chunk-BUHTODFL.js → chunk-JOLPJ2E4.js} +21 -19
  16. package/bundles/chunk-JOLPJ2E4.js.map +6 -0
  17. package/bundles/{chunk-UMUIU7TE.js → chunk-O4XVCXRT.js} +2 -2
  18. package/bundles/{chunk-UMUIU7TE.js.map → chunk-O4XVCXRT.js.map} +0 -0
  19. package/bundles/{chunk-WYO7JO2T.js → chunk-QBU7RUKB.js} +259 -85
  20. package/bundles/chunk-QBU7RUKB.js.map +6 -0
  21. package/bundles/{chunk-VKIZ4TCJ.js → chunk-TUNE6DP3.js} +6370 -10786
  22. package/bundles/chunk-TUNE6DP3.js.map +6 -0
  23. package/bundles/{chunk-JNWO3JB2.js → chunk-UESD6FVI.js} +13 -15
  24. package/bundles/chunk-UESD6FVI.js.map +6 -0
  25. package/bundles/{chunk-XA5IZLLC.js → chunk-WQ3TNYTD.js} +6 -6
  26. package/bundles/{chunk-XA5IZLLC.js.map → chunk-WQ3TNYTD.js.map} +0 -0
  27. package/bundles/index.js +9 -73
  28. package/bundles/index.js.map +2 -2
  29. package/bundles/linker/babel/index.js +77 -77
  30. package/bundles/linker/babel/index.js.map +1 -1
  31. package/bundles/linker/index.js +5 -5
  32. package/bundles/ngcc/index.js +9 -10
  33. package/bundles/ngcc/index.js.map +1 -1
  34. package/bundles/ngcc/main-ngcc.js +10 -11
  35. package/bundles/ngcc/main-ngcc.js.map +1 -1
  36. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +9 -10
  37. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
  38. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +2 -2
  39. package/bundles/private/bazel.js +1 -1
  40. package/bundles/private/localize.js +3 -3
  41. package/bundles/private/migrations.js +5 -5
  42. package/bundles/private/tooling.js +3 -4
  43. package/bundles/src/bin/ng_xi18n.js +7 -8
  44. package/bundles/src/bin/ng_xi18n.js.map +1 -1
  45. package/bundles/src/bin/ngc.js +9 -10
  46. package/bundles/src/bin/ngc.js.map +1 -1
  47. package/bundles_metadata.json +1 -1
  48. package/index.d.ts +2 -3
  49. package/ngcc/src/host/delegating_host.d.ts +1 -2
  50. package/ngcc/src/host/esm2015_host.d.ts +1 -8
  51. package/ngcc/src/host/ngcc_host.d.ts +0 -13
  52. package/ngcc/src/host/umd_host.d.ts +3 -0
  53. package/ngcc/src/packages/build_marker.d.ts +1 -1
  54. package/ngcc/src/packages/transformer.d.ts +0 -2
  55. package/ngcc/src/rendering/esm_rendering_formatter.d.ts +1 -5
  56. package/ngcc/src/rendering/renderer.d.ts +2 -3
  57. package/ngcc/src/rendering/rendering_formatter.d.ts +0 -2
  58. package/ngcc/src/utils.d.ts +0 -7
  59. package/package.json +3 -3
  60. package/src/main.d.ts +3 -3
  61. package/src/ngtsc/annotations/src/util.d.ts +1 -1
  62. package/src/ngtsc/core/api/src/options.d.ts +3 -2
  63. package/src/ngtsc/core/api/src/public_options.d.ts +38 -0
  64. package/src/ngtsc/core/src/host.d.ts +2 -1
  65. package/src/ngtsc/diagnostics/index.d.ts +2 -1
  66. package/src/ngtsc/diagnostics/src/error.d.ts +1 -0
  67. package/src/ngtsc/diagnostics/src/error_code.d.ts +7 -0
  68. package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +1 -1
  69. package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +21 -0
  70. package/src/ngtsc/file_system/src/compiler_host.d.ts +1 -0
  71. package/src/ngtsc/imports/index.d.ts +1 -1
  72. package/src/ngtsc/imports/src/emitter.d.ts +40 -8
  73. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +5 -0
  74. package/src/ngtsc/program.d.ts +3 -6
  75. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +2 -1
  76. package/src/ngtsc/reflection/src/host.d.ts +1 -1
  77. package/src/ngtsc/translator/src/translator.d.ts +0 -5
  78. package/src/ngtsc/translator/src/type_translator.d.ts +0 -2
  79. package/src/ngtsc/typecheck/extended/api/api.d.ts +30 -10
  80. package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.d.ts +3 -14
  81. package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.d.ts +3 -15
  82. package/src/ngtsc/typecheck/extended/index.d.ts +3 -0
  83. package/src/ngtsc/typecheck/extended/src/extended_template_checker.d.ts +5 -4
  84. package/src/ngtsc/typecheck/src/environment.d.ts +3 -1
  85. package/src/ngtsc/typecheck/src/tcb_util.d.ts +10 -2
  86. package/src/ngtsc/typecheck/src/type_constructor.d.ts +3 -2
  87. package/src/ngtsc/typecheck/src/type_emitter.d.ts +7 -21
  88. package/src/ngtsc/typecheck/src/type_parameter_emitter.d.ts +2 -2
  89. package/src/ngtsc/util/src/typescript.d.ts +5 -0
  90. package/src/perform_compile.d.ts +5 -10
  91. package/src/perform_watch.d.ts +4 -4
  92. package/src/transformers/api.d.ts +3 -30
  93. package/src/transformers/compiler_host.d.ts +1 -97
  94. package/src/transformers/program.d.ts +0 -19
  95. package/src/transformers/util.d.ts +1 -20
  96. package/src/{diagnostics/typescript_version.d.ts → version_helpers.d.ts} +1 -1
  97. package/bundles/chunk-2DL256T3.js.map +0 -6
  98. package/bundles/chunk-ACINBTQB.js +0 -43
  99. package/bundles/chunk-ACINBTQB.js.map +0 -6
  100. package/bundles/chunk-BUHTODFL.js.map +0 -6
  101. package/bundles/chunk-EP5JHXG2.js.map +0 -6
  102. package/bundles/chunk-JNWO3JB2.js.map +0 -6
  103. package/bundles/chunk-MIQ5UCHZ.js.map +0 -6
  104. package/bundles/chunk-PBA67OV4.js.map +0 -6
  105. package/bundles/chunk-S3QIIFH7.js.map +0 -6
  106. package/bundles/chunk-VKIZ4TCJ.js.map +0 -6
  107. package/bundles/chunk-WOC6KEUY.js.map +0 -6
  108. package/bundles/chunk-WYO7JO2T.js.map +0 -6
  109. package/ngcc/src/analysis/switch_marker_analyzer.d.ts +0 -35
  110. package/src/diagnostics/translate_diagnostics.d.ts +0 -18
  111. package/src/language_services.d.ts +0 -11
  112. package/src/metadata/bundle_index_host.d.ts +0 -16
  113. package/src/metadata/bundler.d.ts +0 -66
  114. package/src/metadata/collector.d.ts +0 -44
  115. package/src/metadata/evaluator.d.ts +0 -58
  116. package/src/metadata/index.d.ts +0 -11
  117. package/src/metadata/index_writer.d.ts +0 -10
  118. package/src/metadata/schema.d.ts +0 -182
  119. package/src/metadata/symbols.d.ts +0 -22
  120. package/src/ngtsc/switch/index.d.ts +0 -9
  121. package/src/ngtsc/switch/src/switch.d.ts +0 -10
  122. package/src/transformers/inline_resources.d.ts +0 -26
  123. package/src/transformers/lower_expressions.d.ts +0 -30
  124. package/src/transformers/metadata_cache.d.ts +0 -27
  125. package/src/transformers/metadata_reader.d.ts +0 -19
  126. package/src/transformers/node_emitter.d.ts +0 -105
  127. package/src/transformers/node_emitter_transform.d.ts +0 -19
  128. package/src/transformers/r3_metadata_transform.d.ts +0 -16
  129. package/src/transformers/r3_transform.d.ts +0 -16
@@ -1,22 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/metadata/symbols" />
9
- import ts from 'typescript';
10
- import { MetadataSymbolicReferenceExpression, MetadataValue } from './schema';
11
- export declare class Symbols {
12
- private sourceFile;
13
- private _symbols;
14
- private references;
15
- constructor(sourceFile: ts.SourceFile);
16
- resolve(name: string, preferReference?: boolean): MetadataValue | undefined;
17
- define(name: string, value: MetadataValue): void;
18
- defineReference(name: string, value: MetadataSymbolicReferenceExpression): void;
19
- has(name: string): boolean;
20
- private get symbols();
21
- private buildImports;
22
- }
@@ -1,9 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/ngtsc/switch" />
9
- export { ivySwitchTransform } from './src/switch';
@@ -1,10 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/ngtsc/switch/src/switch" />
9
- import ts from 'typescript';
10
- export declare function ivySwitchTransform(_: ts.TransformationContext): ts.Transformer<ts.SourceFile>;
@@ -1,26 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/inline_resources" />
9
- import ts from 'typescript';
10
- import { MetadataObject, MetadataValue } from '../metadata/index';
11
- import { MetadataTransformer, ValueTransform } from './metadata_cache';
12
- /** A subset of members from AotCompilerHost */
13
- export declare type ResourcesHost = {
14
- resourceNameToFileName(resourceName: string, containingFileName: string): string | null;
15
- loadResource(path: string): Promise<string> | string;
16
- };
17
- export declare type StaticResourceLoader = {
18
- get(url: string | MetadataValue): string;
19
- };
20
- export declare class InlineResourcesMetadataTransformer implements MetadataTransformer {
21
- private host;
22
- constructor(host: ResourcesHost);
23
- start(sourceFile: ts.SourceFile): ValueTransform | undefined;
24
- updateDecoratorMetadata(loader: StaticResourceLoader, arg: MetadataObject): MetadataObject;
25
- }
26
- export declare function getInlineResourcesTransformFactory(program: ts.Program, host: ResourcesHost): ts.TransformerFactory<ts.SourceFile>;
@@ -1,30 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/lower_expressions" />
9
- import ts from 'typescript';
10
- import { MetadataCache, MetadataTransformer, ValueTransform } from './metadata_cache';
11
- export interface LoweringRequest {
12
- kind: ts.SyntaxKind;
13
- location: number;
14
- end: number;
15
- name: string;
16
- }
17
- export declare type RequestLocationMap = Map<number, LoweringRequest>;
18
- export declare function getExpressionLoweringTransformFactory(requestsMap: RequestsMap, program: ts.Program): (context: ts.TransformationContext) => (sourceFile: ts.SourceFile) => ts.SourceFile;
19
- export interface RequestsMap {
20
- getRequests(sourceFile: ts.SourceFile): RequestLocationMap;
21
- }
22
- export declare class LowerMetadataTransform implements RequestsMap, MetadataTransformer {
23
- private cache;
24
- private requests;
25
- private lowerableFieldNames;
26
- constructor(lowerableFieldNames: string[]);
27
- getRequests(sourceFile: ts.SourceFile): RequestLocationMap;
28
- connect(cache: MetadataCache): void;
29
- start(sourceFile: ts.SourceFile): ValueTransform | undefined;
30
- }
@@ -1,27 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/metadata_cache" />
9
- import ts from 'typescript';
10
- import { MetadataCollector, MetadataValue, ModuleMetadata } from '../metadata/index';
11
- import { MetadataProvider } from './compiler_host';
12
- export declare type ValueTransform = (value: MetadataValue, node: ts.Node) => MetadataValue;
13
- export interface MetadataTransformer {
14
- connect?(cache: MetadataCache): void;
15
- start(sourceFile: ts.SourceFile): ValueTransform | undefined;
16
- }
17
- /**
18
- * Cache, and potentially transform, metadata as it is being collected.
19
- */
20
- export declare class MetadataCache implements MetadataProvider {
21
- private collector;
22
- private readonly strict;
23
- private transformers;
24
- private metadataCache;
25
- constructor(collector: MetadataCollector, strict: boolean, transformers: MetadataTransformer[]);
26
- getMetadata(sourceFile: ts.SourceFile): ModuleMetadata | undefined;
27
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/metadata_reader" />
9
- import { ModuleMetadata } from '../metadata';
10
- export interface MetadataReaderHost {
11
- getSourceFileMetadata(filePath: string): ModuleMetadata | undefined;
12
- cacheMetadata?(fileName: string): boolean;
13
- fileExists(filePath: string): boolean;
14
- readFile(filePath: string): string;
15
- }
16
- export interface MetadataReaderCache {
17
- }
18
- export declare function createMetadataReaderCache(): MetadataReaderCache;
19
- export declare function readMetadata(filePath: string, host: MetadataReaderHost, cache?: MetadataReaderCache): ModuleMetadata[] | undefined;
@@ -1,105 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/node_emitter" />
9
- import { AssertNotNull, BinaryOperatorExpr, CastExpr, ClassStmt, CommaExpr, ConditionalExpr, DeclareFunctionStmt, DeclareVarStmt, ExpressionStatement, ExpressionVisitor, ExternalExpr, FunctionExpr, IfStmt, InstantiateExpr, InvokeFunctionExpr, LiteralArrayExpr, LiteralExpr, LiteralMapExpr, LocalizedString, NotExpr, ParseSourceSpan, PartialModule, ReadKeyExpr, ReadPropExpr, ReadVarExpr, ReturnStatement, Statement, StatementVisitor, TaggedTemplateExpr, ThrowStmt, TryCatchStmt, TypeofExpr, UnaryOperatorExpr, WrappedNodeExpr, WriteKeyExpr, WritePropExpr, WriteVarExpr } from '@angular/compiler';
10
- import ts from 'typescript';
11
- export interface Node {
12
- sourceSpan: ParseSourceSpan | null;
13
- }
14
- export declare class TypeScriptNodeEmitter {
15
- private annotateForClosureCompiler;
16
- constructor(annotateForClosureCompiler: boolean);
17
- updateSourceFile(sourceFile: ts.SourceFile, stmts: Statement[], preamble?: string): [
18
- ts.SourceFile,
19
- Map<ts.Node, Node>
20
- ];
21
- }
22
- /**
23
- * Update the given source file to include the changes specified in module.
24
- *
25
- * The module parameter is treated as a partial module meaning that the statements are added to
26
- * the module instead of replacing the module. Also, any classes are treated as partial classes
27
- * and the included members are added to the class with the same name instead of a new class
28
- * being created.
29
- */
30
- export declare function updateSourceFile(sourceFile: ts.SourceFile, module: PartialModule, annotateForClosureCompiler: boolean): [ts.SourceFile, Map<ts.Node, Node>];
31
- export declare type RecordedNode<T extends ts.Node = ts.Node> = (T & {
32
- __recorded: any;
33
- }) | null;
34
- /**
35
- * Visits an output ast and produces the corresponding TypeScript synthetic nodes.
36
- */
37
- export declare class NodeEmitterVisitor implements StatementVisitor, ExpressionVisitor {
38
- private annotateForClosureCompiler;
39
- private _nodeMap;
40
- private _importsWithPrefixes;
41
- private _reexports;
42
- private _templateSources;
43
- private _exportedVariableIdentifiers;
44
- constructor(annotateForClosureCompiler: boolean);
45
- /**
46
- * Process the source file and collect exported identifiers that refer to variables.
47
- *
48
- * Only variables are collected because exported classes still exist in the module scope in
49
- * CommonJS, whereas variables have their declarations moved onto the `exports` object, and all
50
- * references are updated accordingly.
51
- */
52
- loadExportedVariableIdentifiers(sourceFile: ts.SourceFile): void;
53
- getReexports(): ts.Statement[];
54
- getImports(): ts.Statement[];
55
- getNodeMap(): Map<ts.Node, Node>;
56
- updateSourceMap(statements: ts.Statement[]): void;
57
- private postProcess;
58
- private sourceRangeOf;
59
- private getModifiers;
60
- visitDeclareVarStmt(stmt: DeclareVarStmt): (ts.VariableStatement & {
61
- __recorded: any;
62
- }) | ((ts.VariableStatement & {
63
- __recorded: any;
64
- }) | (ts.ExportDeclaration & {
65
- __recorded: any;
66
- }) | null)[] | null;
67
- visitDeclareFunctionStmt(stmt: DeclareFunctionStmt): RecordedNode<ts.FunctionDeclaration>;
68
- visitExpressionStmt(stmt: ExpressionStatement): RecordedNode<ts.ExpressionStatement>;
69
- visitReturnStmt(stmt: ReturnStatement): RecordedNode<ts.ReturnStatement>;
70
- visitDeclareClassStmt(stmt: ClassStmt): RecordedNode<ts.ClassDeclaration>;
71
- visitIfStmt(stmt: IfStmt): RecordedNode<ts.IfStatement>;
72
- visitTryCatchStmt(stmt: TryCatchStmt): RecordedNode<ts.TryStatement>;
73
- visitThrowStmt(stmt: ThrowStmt): RecordedNode<ts.ThrowStatement>;
74
- visitWrappedNodeExpr(expr: WrappedNodeExpr<any>): any;
75
- visitTypeofExpr(expr: TypeofExpr): RecordedNode<ts.TypeOfExpression>;
76
- visitReadVarExpr(expr: ReadVarExpr): (ts.Identifier & {
77
- __recorded: any;
78
- }) | (ts.SuperExpression & {
79
- __recorded: any;
80
- }) | null;
81
- visitWriteVarExpr(expr: WriteVarExpr): RecordedNode<ts.BinaryExpression>;
82
- visitWriteKeyExpr(expr: WriteKeyExpr): RecordedNode<ts.BinaryExpression>;
83
- visitWritePropExpr(expr: WritePropExpr): RecordedNode<ts.BinaryExpression>;
84
- visitInvokeFunctionExpr(expr: InvokeFunctionExpr): RecordedNode<ts.CallExpression>;
85
- visitTaggedTemplateExpr(expr: TaggedTemplateExpr): RecordedNode<ts.TaggedTemplateExpression>;
86
- visitInstantiateExpr(expr: InstantiateExpr): RecordedNode<ts.NewExpression>;
87
- visitLiteralExpr(expr: LiteralExpr): RecordedNode<ts.Identifier | ts.NullLiteral | ts.StringLiteral>;
88
- visitLocalizedString(expr: LocalizedString, context: any): void;
89
- visitExternalExpr(expr: ExternalExpr): RecordedNode<ts.Expression>;
90
- visitConditionalExpr(expr: ConditionalExpr): RecordedNode<ts.ParenthesizedExpression>;
91
- visitNotExpr(expr: NotExpr): RecordedNode<ts.PrefixUnaryExpression>;
92
- visitAssertNotNullExpr(expr: AssertNotNull): RecordedNode<ts.Expression>;
93
- visitCastExpr(expr: CastExpr): RecordedNode<ts.Expression>;
94
- visitFunctionExpr(expr: FunctionExpr): RecordedNode<ts.FunctionExpression>;
95
- visitUnaryOperatorExpr(expr: UnaryOperatorExpr): RecordedNode<ts.UnaryExpression | ts.ParenthesizedExpression>;
96
- visitBinaryOperatorExpr(expr: BinaryOperatorExpr): RecordedNode<ts.BinaryExpression | ts.ParenthesizedExpression>;
97
- visitReadPropExpr(expr: ReadPropExpr): RecordedNode<ts.PropertyAccessExpression>;
98
- visitReadKeyExpr(expr: ReadKeyExpr): RecordedNode<ts.ElementAccessExpression>;
99
- visitLiteralArrayExpr(expr: LiteralArrayExpr): RecordedNode<ts.ArrayLiteralExpression>;
100
- visitLiteralMapExpr(expr: LiteralMapExpr): RecordedNode<ts.ObjectLiteralExpression>;
101
- visitCommaExpr(expr: CommaExpr): RecordedNode<ts.Expression>;
102
- private _visitStatements;
103
- private _visitStatementsPrefix;
104
- private _visitIdentifier;
105
- }
@@ -1,19 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/node_emitter_transform" />
9
- import { GeneratedFile } from '@angular/compiler';
10
- import ts from 'typescript';
11
- /**
12
- * Returns a transformer that does two things for generated files (ngfactory etc):
13
- * - adds a fileoverview JSDoc comment containing Closure Compiler specific "suppress"ions in JSDoc.
14
- * The new comment will contain any fileoverview comment text from the original source file this
15
- * file was generated from.
16
- * - updates generated files that are not in the given map of generatedFiles to have an empty
17
- * list of statements as their body.
18
- */
19
- export declare function getAngularEmitterTransformFactory(generatedFiles: Map<string, GeneratedFile>, program: ts.Program, annotateForClosureCompiler: boolean): () => (sourceFile: ts.SourceFile) => ts.SourceFile;
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/r3_metadata_transform" />
9
- import { PartialModule } from '@angular/compiler';
10
- import ts from 'typescript';
11
- import { MetadataTransformer, ValueTransform } from './metadata_cache';
12
- export declare class PartialModuleMetadataTransformer implements MetadataTransformer {
13
- private moduleMap;
14
- constructor(modules: PartialModule[]);
15
- start(sourceFile: ts.SourceFile): ValueTransform | undefined;
16
- }
@@ -1,16 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- /// <amd-module name="@angular/compiler-cli/src/transformers/r3_transform" />
9
- import { PartialModule } from '@angular/compiler';
10
- import ts from 'typescript';
11
- export declare type Transformer = (sourceFile: ts.SourceFile) => ts.SourceFile;
12
- export declare type TransformerFactory = (context: ts.TransformationContext) => Transformer;
13
- /**
14
- * Returns a transformer that adds the requested static methods specified by modules.
15
- */
16
- export declare function getAngularClassTransformerFactory(modules: PartialModule[], annotateForClosureCompiler: boolean): TransformerFactory;