@angular/compiler-cli 13.1.0-next.1 → 13.1.1
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.
- package/bundles/{chunk-PBA67OV4.js → chunk-AUFNJGZ6.js} +31 -7
- package/bundles/chunk-AUFNJGZ6.js.map +6 -0
- package/bundles/{chunk-QDWL7SZJ.js → chunk-BPCUCINV.js} +2 -2
- package/bundles/{chunk-QDWL7SZJ.js.map → chunk-BPCUCINV.js.map} +0 -0
- package/bundles/{chunk-WOC6KEUY.js → chunk-DJRTTRF3.js} +43 -43
- package/bundles/{chunk-WOC6KEUY.js.map → chunk-DJRTTRF3.js.map} +1 -1
- package/bundles/{chunk-MIQ5UCHZ.js → chunk-FXVUPJ6A.js} +80 -59
- package/bundles/chunk-FXVUPJ6A.js.map +6 -0
- package/bundles/{chunk-GLCRIILX.js → chunk-J6CW3T62.js} +5 -5
- package/bundles/{chunk-GLCRIILX.js.map → chunk-J6CW3T62.js.map} +0 -0
- package/bundles/{chunk-SKBLJA43.js → chunk-JTYUTYS2.js} +3 -3
- package/bundles/{chunk-SKBLJA43.js.map → chunk-JTYUTYS2.js.map} +0 -0
- package/bundles/{chunk-2DL256T3.js → chunk-KWZNY2SK.js} +459 -465
- package/bundles/chunk-KWZNY2SK.js.map +6 -0
- package/bundles/{chunk-WYO7JO2T.js → chunk-O5ZEI3UY.js} +24 -20
- package/bundles/chunk-O5ZEI3UY.js.map +6 -0
- package/bundles/{chunk-JNWO3JB2.js → chunk-OOIW53QX.js} +31 -31
- package/bundles/{chunk-JNWO3JB2.js.map → chunk-OOIW53QX.js.map} +1 -1
- package/bundles/{chunk-VKIZ4TCJ.js → chunk-P5ZW5MI4.js} +6218 -10769
- package/bundles/chunk-P5ZW5MI4.js.map +6 -0
- package/bundles/{chunk-QL6ZC3U3.js → chunk-PF3ZPGF5.js} +7 -7
- package/bundles/{chunk-QL6ZC3U3.js.map → chunk-PF3ZPGF5.js.map} +0 -0
- package/bundles/{chunk-UMUIU7TE.js → chunk-QFB4WK55.js} +4 -4
- package/bundles/{chunk-UMUIU7TE.js.map → chunk-QFB4WK55.js.map} +0 -0
- package/bundles/{chunk-EP5JHXG2.js → chunk-TI3THPMZ.js} +7 -7
- package/bundles/{chunk-EP5JHXG2.js.map → chunk-TI3THPMZ.js.map} +0 -0
- package/bundles/{chunk-BUHTODFL.js → chunk-W5CGOJQ4.js} +13 -7
- package/bundles/chunk-W5CGOJQ4.js.map +6 -0
- package/bundles/{chunk-S3QIIFH7.js → chunk-X46CEINM.js} +11 -8
- package/bundles/chunk-X46CEINM.js.map +6 -0
- package/bundles/index.js +12 -76
- package/bundles/index.js.map +2 -2
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -13
- package/bundles/ngcc/index.js.map +1 -1
- package/bundles/ngcc/main-ngcc.js +13 -14
- package/bundles/ngcc/main-ngcc.js.map +1 -1
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -14
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +2 -3
- package/bundles/src/bin/ng_xi18n.js +10 -11
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +8 -9
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/index.d.ts +0 -3
- package/ngcc/src/host/delegating_host.d.ts +1 -2
- package/ngcc/src/host/esm2015_host.d.ts +1 -8
- package/ngcc/src/host/ngcc_host.d.ts +0 -13
- package/ngcc/src/host/umd_host.d.ts +3 -0
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/ngcc/src/packages/transformer.d.ts +0 -2
- package/ngcc/src/rendering/esm_rendering_formatter.d.ts +1 -5
- package/ngcc/src/rendering/renderer.d.ts +2 -3
- package/ngcc/src/rendering/rendering_formatter.d.ts +0 -2
- package/ngcc/src/utils.d.ts +0 -7
- package/package.json +3 -3
- package/src/main.d.ts +3 -3
- package/src/ngtsc/core/src/host.d.ts +2 -1
- package/src/ngtsc/partial_evaluator/src/builtin.d.ts +5 -0
- package/src/ngtsc/program.d.ts +3 -6
- package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +2 -1
- package/src/ngtsc/reflection/src/host.d.ts +1 -1
- package/src/ngtsc/util/src/typescript.d.ts +5 -0
- package/src/perform_compile.d.ts +5 -10
- package/src/perform_watch.d.ts +4 -4
- package/src/transformers/api.d.ts +3 -30
- package/src/transformers/compiler_host.d.ts +1 -97
- package/src/transformers/program.d.ts +0 -19
- package/src/transformers/util.d.ts +1 -20
- package/src/{diagnostics/typescript_version.d.ts → version_helpers.d.ts} +1 -1
- package/bundles/chunk-2DL256T3.js.map +0 -6
- package/bundles/chunk-ACINBTQB.js +0 -43
- package/bundles/chunk-ACINBTQB.js.map +0 -6
- package/bundles/chunk-BUHTODFL.js.map +0 -6
- package/bundles/chunk-MIQ5UCHZ.js.map +0 -6
- package/bundles/chunk-PBA67OV4.js.map +0 -6
- package/bundles/chunk-S3QIIFH7.js.map +0 -6
- package/bundles/chunk-VKIZ4TCJ.js.map +0 -6
- package/bundles/chunk-WYO7JO2T.js.map +0 -6
- package/ngcc/src/analysis/switch_marker_analyzer.d.ts +0 -35
- package/src/diagnostics/translate_diagnostics.d.ts +0 -18
- package/src/language_services.d.ts +0 -11
- package/src/metadata/bundle_index_host.d.ts +0 -16
- package/src/metadata/bundler.d.ts +0 -66
- package/src/metadata/collector.d.ts +0 -44
- package/src/metadata/evaluator.d.ts +0 -58
- package/src/metadata/index.d.ts +0 -11
- package/src/metadata/index_writer.d.ts +0 -10
- package/src/metadata/schema.d.ts +0 -182
- package/src/metadata/symbols.d.ts +0 -22
- package/src/ngtsc/switch/index.d.ts +0 -9
- package/src/ngtsc/switch/src/switch.d.ts +0 -10
- package/src/transformers/inline_resources.d.ts +0 -26
- package/src/transformers/lower_expressions.d.ts +0 -30
- package/src/transformers/metadata_cache.d.ts +0 -27
- package/src/transformers/metadata_reader.d.ts +0 -19
- package/src/transformers/node_emitter.d.ts +0 -105
- package/src/transformers/node_emitter_transform.d.ts +0 -19
- package/src/transformers/r3_metadata_transform.d.ts +0 -16
- package/src/transformers/r3_transform.d.ts +0 -16
|
@@ -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;
|