@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
|
@@ -13,12 +13,13 @@ import {
|
|
|
13
13
|
reflectObjectLiteral,
|
|
14
14
|
reflectTypeEntityToDeclaration,
|
|
15
15
|
typeNodeToValueExpr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-X46CEINM.js";
|
|
17
17
|
import {
|
|
18
18
|
ImportFlags,
|
|
19
19
|
ImportManager,
|
|
20
20
|
Reference,
|
|
21
21
|
attachDefaultImportDeclaration,
|
|
22
|
+
createExportSpecifier,
|
|
22
23
|
getDefaultImportDeclaration,
|
|
23
24
|
getSourceFile,
|
|
24
25
|
identifierOfNode,
|
|
@@ -27,22 +28,22 @@ import {
|
|
|
27
28
|
translateExpression,
|
|
28
29
|
translateStatement,
|
|
29
30
|
translateType
|
|
30
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-O5ZEI3UY.js";
|
|
31
32
|
import {
|
|
32
33
|
absoluteFrom,
|
|
33
34
|
absoluteFromSourceFile,
|
|
34
35
|
relative
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-TI3THPMZ.js";
|
|
36
37
|
import {
|
|
37
38
|
PerfEvent,
|
|
38
39
|
PerfPhase
|
|
39
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-J6CW3T62.js";
|
|
40
41
|
import {
|
|
41
42
|
__spreadProps,
|
|
42
43
|
__spreadValues
|
|
43
44
|
} from "./chunk-XA5IZLLC.js";
|
|
44
45
|
|
|
45
|
-
// bazel-out/
|
|
46
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
46
47
|
var DynamicValue = class {
|
|
47
48
|
constructor(node, reason, code) {
|
|
48
49
|
this.node = node;
|
|
@@ -127,10 +128,10 @@ var DynamicValue = class {
|
|
|
127
128
|
}
|
|
128
129
|
};
|
|
129
130
|
|
|
130
|
-
// bazel-out/
|
|
131
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
131
132
|
import ts from "typescript";
|
|
132
133
|
|
|
133
|
-
// bazel-out/
|
|
134
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
134
135
|
var ResolvedModule = class {
|
|
135
136
|
constructor(exports, evaluate) {
|
|
136
137
|
this.exports = exports;
|
|
@@ -160,7 +161,7 @@ var EnumValue = class {
|
|
|
160
161
|
var KnownFn = class {
|
|
161
162
|
};
|
|
162
163
|
|
|
163
|
-
// bazel-out/
|
|
164
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
164
165
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
165
166
|
constructor(lhs) {
|
|
166
167
|
super();
|
|
@@ -193,6 +194,24 @@ var ArrayConcatBuiltinFn = class extends KnownFn {
|
|
|
193
194
|
return result;
|
|
194
195
|
}
|
|
195
196
|
};
|
|
197
|
+
var StringConcatBuiltinFn = class extends KnownFn {
|
|
198
|
+
constructor(lhs) {
|
|
199
|
+
super();
|
|
200
|
+
this.lhs = lhs;
|
|
201
|
+
}
|
|
202
|
+
evaluate(node, args) {
|
|
203
|
+
let result = this.lhs;
|
|
204
|
+
for (const arg of args) {
|
|
205
|
+
const resolved = arg instanceof EnumValue ? arg.resolved : arg;
|
|
206
|
+
if (typeof resolved === "string" || typeof resolved === "number" || typeof resolved === "boolean" || resolved == null) {
|
|
207
|
+
result = result.concat(resolved);
|
|
208
|
+
} else {
|
|
209
|
+
return DynamicValue.fromUnknown(node);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
return result;
|
|
213
|
+
}
|
|
214
|
+
};
|
|
196
215
|
var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
197
216
|
evaluate(node, args) {
|
|
198
217
|
if (args.length === 0) {
|
|
@@ -213,7 +232,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
213
232
|
}
|
|
214
233
|
};
|
|
215
234
|
|
|
216
|
-
// bazel-out/
|
|
235
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
217
236
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
218
237
|
};
|
|
219
238
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -266,7 +285,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
266
285
|
}
|
|
267
286
|
};
|
|
268
287
|
|
|
269
|
-
// bazel-out/
|
|
288
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
270
289
|
var jsGlobalObjectValue = new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
271
290
|
var assignTsHelperFn = new AssignHelperFn();
|
|
272
291
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -290,7 +309,7 @@ function resolveKnownDeclaration(decl) {
|
|
|
290
309
|
}
|
|
291
310
|
}
|
|
292
311
|
|
|
293
|
-
// bazel-out/
|
|
312
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
294
313
|
function literalBinaryOp(op) {
|
|
295
314
|
return { op, literal: true };
|
|
296
315
|
}
|
|
@@ -582,6 +601,8 @@ var StaticInterpreter = class {
|
|
|
582
601
|
return DynamicValue.fromInvalidExpressionType(node, rhs);
|
|
583
602
|
}
|
|
584
603
|
return lhs[rhs];
|
|
604
|
+
} else if (typeof lhs === "string" && rhs === "concat") {
|
|
605
|
+
return new StringConcatBuiltinFn(lhs);
|
|
585
606
|
} else if (lhs instanceof Reference) {
|
|
586
607
|
const ref = lhs.node;
|
|
587
608
|
if (this.host.isClass(ref)) {
|
|
@@ -875,7 +896,7 @@ function owningModule(context, override = null) {
|
|
|
875
896
|
}
|
|
876
897
|
}
|
|
877
898
|
|
|
878
|
-
// bazel-out/
|
|
899
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
879
900
|
var PartialEvaluator = class {
|
|
880
901
|
constructor(host, checker, dependencyTracker) {
|
|
881
902
|
this.host = host;
|
|
@@ -895,10 +916,10 @@ var PartialEvaluator = class {
|
|
|
895
916
|
}
|
|
896
917
|
};
|
|
897
918
|
|
|
898
|
-
// bazel-out/
|
|
919
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
899
920
|
import ts3 from "typescript";
|
|
900
921
|
|
|
901
|
-
// bazel-out/
|
|
922
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
902
923
|
var ErrorCode;
|
|
903
924
|
(function(ErrorCode2) {
|
|
904
925
|
ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
|
|
@@ -949,7 +970,7 @@ var ErrorCode;
|
|
|
949
970
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
950
971
|
})(ErrorCode || (ErrorCode = {}));
|
|
951
972
|
|
|
952
|
-
// bazel-out/
|
|
973
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
953
974
|
var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
954
975
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
955
976
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -960,10 +981,10 @@ var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
|
960
981
|
ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR
|
|
961
982
|
]);
|
|
962
983
|
|
|
963
|
-
// bazel-out/
|
|
984
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
964
985
|
import ts2 from "typescript";
|
|
965
986
|
|
|
966
|
-
// bazel-out/
|
|
987
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
967
988
|
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
968
989
|
function replaceTsWithNgInErrors(errors) {
|
|
969
990
|
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
@@ -972,7 +993,7 @@ function ngErrorCode(code) {
|
|
|
972
993
|
return parseInt("-99" + code);
|
|
973
994
|
}
|
|
974
995
|
|
|
975
|
-
// bazel-out/
|
|
996
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
976
997
|
var FatalDiagnosticError = class {
|
|
977
998
|
constructor(code, node, message, relatedInformation) {
|
|
978
999
|
this.code = code;
|
|
@@ -1012,10 +1033,10 @@ function isFatalDiagnosticError(err) {
|
|
|
1012
1033
|
return err._isFatalDiagnosticError === true;
|
|
1013
1034
|
}
|
|
1014
1035
|
|
|
1015
|
-
// bazel-out/
|
|
1036
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
|
|
1016
1037
|
var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
1017
1038
|
|
|
1018
|
-
// bazel-out/
|
|
1039
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1019
1040
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1020
1041
|
var _a, _b;
|
|
1021
1042
|
if (value === null) {
|
|
@@ -1141,7 +1162,7 @@ function getContainerNode(node) {
|
|
|
1141
1162
|
return node.getSourceFile();
|
|
1142
1163
|
}
|
|
1143
1164
|
|
|
1144
|
-
// bazel-out/
|
|
1165
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/util.mjs
|
|
1145
1166
|
import { ExternalExpr, LiteralExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
1146
1167
|
import ts4 from "typescript";
|
|
1147
1168
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1273,7 +1294,7 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1273
1294
|
chainMessage = "Consider changing the type-only import to a regular import, or use the @Inject decorator to specify an injection token.";
|
|
1274
1295
|
hints = [
|
|
1275
1296
|
makeRelatedInformation(reason.typeNode, "This type is imported using a type-only import, which prevents it from being usable as an injection token."),
|
|
1276
|
-
makeRelatedInformation(reason.
|
|
1297
|
+
makeRelatedInformation(reason.node, "The type-only import occurs here.")
|
|
1277
1298
|
];
|
|
1278
1299
|
break;
|
|
1279
1300
|
case 4:
|
|
@@ -1501,11 +1522,11 @@ function toFactoryMetadata(meta, target) {
|
|
|
1501
1522
|
};
|
|
1502
1523
|
}
|
|
1503
1524
|
|
|
1504
|
-
// bazel-out/
|
|
1525
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
|
|
1505
1526
|
import { compileClassMetadata as compileClassMetadata3, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector, DEFAULT_INTERPOLATION_CONFIG, DomElementSchemaRegistry, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget3, InterpolationConfig, makeBindingParser as makeBindingParser2, ParseSourceFile as ParseSourceFile2, parseTemplate, R3TargetBinder, SelectorMatcher, ViewEncapsulation, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
1506
1527
|
import ts19 from "typescript";
|
|
1507
1528
|
|
|
1508
|
-
// bazel-out/
|
|
1529
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
1509
1530
|
import ts5 from "typescript";
|
|
1510
1531
|
var SemanticSymbol = class {
|
|
1511
1532
|
constructor(decl) {
|
|
@@ -1521,7 +1542,7 @@ function getSymbolIdentifier(decl) {
|
|
|
1521
1542
|
return decl.name.text;
|
|
1522
1543
|
}
|
|
1523
1544
|
|
|
1524
|
-
// bazel-out/
|
|
1545
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
1525
1546
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1526
1547
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
1527
1548
|
isPublicApiAffected() {
|
|
@@ -1664,10 +1685,10 @@ function getImportPath(expr) {
|
|
|
1664
1685
|
}
|
|
1665
1686
|
}
|
|
1666
1687
|
|
|
1667
|
-
// bazel-out/
|
|
1688
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1668
1689
|
import ts6 from "typescript";
|
|
1669
1690
|
|
|
1670
|
-
// bazel-out/
|
|
1691
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
1671
1692
|
function isSymbolEqual(a, b) {
|
|
1672
1693
|
if (a.decl === b.decl) {
|
|
1673
1694
|
return true;
|
|
@@ -1717,7 +1738,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
1717
1738
|
return true;
|
|
1718
1739
|
}
|
|
1719
1740
|
|
|
1720
|
-
// bazel-out/
|
|
1741
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1721
1742
|
function extractSemanticTypeParameters(node) {
|
|
1722
1743
|
if (!ts6.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
1723
1744
|
return null;
|
|
@@ -1737,17 +1758,17 @@ function isTypeParameterEqual(a, b) {
|
|
|
1737
1758
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
1738
1759
|
}
|
|
1739
1760
|
|
|
1740
|
-
// bazel-out/
|
|
1761
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1741
1762
|
var MetaType;
|
|
1742
1763
|
(function(MetaType2) {
|
|
1743
1764
|
MetaType2[MetaType2["Pipe"] = 0] = "Pipe";
|
|
1744
1765
|
MetaType2[MetaType2["Directive"] = 1] = "Directive";
|
|
1745
1766
|
})(MetaType || (MetaType = {}));
|
|
1746
1767
|
|
|
1747
|
-
// bazel-out/
|
|
1768
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1748
1769
|
import ts8 from "typescript";
|
|
1749
1770
|
|
|
1750
|
-
// bazel-out/
|
|
1771
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1751
1772
|
var ClassPropertyMapping = class {
|
|
1752
1773
|
constructor(forwardMap) {
|
|
1753
1774
|
this.forwardMap = forwardMap;
|
|
@@ -1823,7 +1844,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1823
1844
|
return reverseMap;
|
|
1824
1845
|
}
|
|
1825
1846
|
|
|
1826
|
-
// bazel-out/
|
|
1847
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1827
1848
|
import ts7 from "typescript";
|
|
1828
1849
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1829
1850
|
if (!ts7.isTupleTypeNode(def)) {
|
|
@@ -1990,7 +2011,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
1990
2011
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
1991
2012
|
}
|
|
1992
2013
|
|
|
1993
|
-
// bazel-out/
|
|
2014
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1994
2015
|
var DtsMetadataReader = class {
|
|
1995
2016
|
constructor(checker, reflector) {
|
|
1996
2017
|
this.checker = checker;
|
|
@@ -2090,7 +2111,7 @@ function readBaseClass2(clazz, checker, reflector) {
|
|
|
2090
2111
|
return null;
|
|
2091
2112
|
}
|
|
2092
2113
|
|
|
2093
|
-
// bazel-out/
|
|
2114
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
2094
2115
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
2095
2116
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
2096
2117
|
if (topMeta === null) {
|
|
@@ -2147,7 +2168,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2147
2168
|
});
|
|
2148
2169
|
}
|
|
2149
2170
|
|
|
2150
|
-
// bazel-out/
|
|
2171
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
2151
2172
|
var LocalMetadataRegistry = class {
|
|
2152
2173
|
constructor() {
|
|
2153
2174
|
this.directives = new Map();
|
|
@@ -2206,7 +2227,7 @@ var InjectableClassRegistry = class {
|
|
|
2206
2227
|
}
|
|
2207
2228
|
};
|
|
2208
2229
|
|
|
2209
|
-
// bazel-out/
|
|
2230
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
2210
2231
|
var ResourceRegistry = class {
|
|
2211
2232
|
constructor() {
|
|
2212
2233
|
this.externalTemplateToComponentsMap = new Map();
|
|
@@ -2271,7 +2292,7 @@ var ResourceRegistry = class {
|
|
|
2271
2292
|
}
|
|
2272
2293
|
};
|
|
2273
2294
|
|
|
2274
|
-
// bazel-out/
|
|
2295
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
2275
2296
|
var CompilationMode;
|
|
2276
2297
|
(function(CompilationMode2) {
|
|
2277
2298
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -2289,7 +2310,7 @@ var HandlerFlags;
|
|
|
2289
2310
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
2290
2311
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
2291
2312
|
|
|
2292
|
-
// bazel-out/
|
|
2313
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
2293
2314
|
import ts9 from "typescript";
|
|
2294
2315
|
function aliasTransformFactory(exportStatements) {
|
|
2295
2316
|
return (context) => {
|
|
@@ -2299,7 +2320,7 @@ function aliasTransformFactory(exportStatements) {
|
|
|
2299
2320
|
}
|
|
2300
2321
|
const statements = [...file.statements];
|
|
2301
2322
|
exportStatements.get(file.fileName).forEach(([moduleName, symbolName], aliasName) => {
|
|
2302
|
-
const stmt = ts9.createExportDeclaration(void 0, void 0, ts9.createNamedExports([
|
|
2323
|
+
const stmt = ts9.createExportDeclaration(void 0, void 0, ts9.createNamedExports([createExportSpecifier(symbolName, aliasName)]), ts9.createStringLiteral(moduleName));
|
|
2303
2324
|
statements.push(stmt);
|
|
2304
2325
|
});
|
|
2305
2326
|
return ts9.updateSourceFileNode(file, statements);
|
|
@@ -2307,10 +2328,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
2307
2328
|
};
|
|
2308
2329
|
}
|
|
2309
2330
|
|
|
2310
|
-
// bazel-out/
|
|
2331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2311
2332
|
import ts10 from "typescript";
|
|
2312
2333
|
|
|
2313
|
-
// bazel-out/
|
|
2334
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
2314
2335
|
var TraitState;
|
|
2315
2336
|
(function(TraitState2) {
|
|
2316
2337
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -2365,7 +2386,7 @@ var TraitImpl = class {
|
|
|
2365
2386
|
}
|
|
2366
2387
|
};
|
|
2367
2388
|
|
|
2368
|
-
// bazel-out/
|
|
2389
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2369
2390
|
var TraitCompiler = class {
|
|
2370
2391
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater) {
|
|
2371
2392
|
this.handlers = handlers;
|
|
@@ -2802,10 +2823,10 @@ var TraitCompiler = class {
|
|
|
2802
2823
|
}
|
|
2803
2824
|
};
|
|
2804
2825
|
|
|
2805
|
-
// bazel-out/
|
|
2826
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
2806
2827
|
import ts12 from "typescript";
|
|
2807
2828
|
|
|
2808
|
-
// bazel-out/
|
|
2829
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
2809
2830
|
import ts11 from "typescript";
|
|
2810
2831
|
function addImports(importManager, sf, extraStatements = []) {
|
|
2811
2832
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -2833,7 +2854,7 @@ function isImportStatement(stmt) {
|
|
|
2833
2854
|
return ts11.isImportDeclaration(stmt) || ts11.isImportEqualsDeclaration(stmt) || ts11.isNamespaceImport(stmt);
|
|
2834
2855
|
}
|
|
2835
2856
|
|
|
2836
|
-
// bazel-out/
|
|
2857
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
2837
2858
|
var DtsTransformRegistry = class {
|
|
2838
2859
|
constructor() {
|
|
2839
2860
|
this.ivyDeclarationTransforms = new Map();
|
|
@@ -2958,11 +2979,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
2958
2979
|
ts12.forEachChild(node, markForEmitAsSingleLine);
|
|
2959
2980
|
}
|
|
2960
2981
|
|
|
2961
|
-
// bazel-out/
|
|
2982
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
2962
2983
|
import { ConstantPool } from "@angular/compiler";
|
|
2963
2984
|
import ts14 from "typescript";
|
|
2964
2985
|
|
|
2965
|
-
// bazel-out/
|
|
2986
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
2966
2987
|
import ts13 from "typescript";
|
|
2967
2988
|
function visit(node, visitor, context) {
|
|
2968
2989
|
return visitor._visit(node, context);
|
|
@@ -3024,7 +3045,7 @@ function hasStatements(node) {
|
|
|
3024
3045
|
return block.statements !== void 0 && Array.isArray(block.statements);
|
|
3025
3046
|
}
|
|
3026
3047
|
|
|
3027
|
-
// bazel-out/
|
|
3048
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3028
3049
|
var NO_DECORATORS = new Set();
|
|
3029
3050
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
3030
3051
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3205,7 +3226,7 @@ function createRecorderFn(defaultImportTracker) {
|
|
|
3205
3226
|
};
|
|
3206
3227
|
}
|
|
3207
3228
|
|
|
3208
|
-
// bazel-out/
|
|
3229
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/diagnostics.mjs
|
|
3209
3230
|
import ts15 from "typescript";
|
|
3210
3231
|
function createValueHasWrongTypeError(node, value, messageText) {
|
|
3211
3232
|
var _a;
|
|
@@ -3302,11 +3323,11 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, reader) {
|
|
|
3302
3323
|
return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${dirOrComp.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @Directive decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
|
|
3303
3324
|
}
|
|
3304
3325
|
|
|
3305
|
-
// bazel-out/
|
|
3326
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
|
|
3306
3327
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr3, FactoryTarget, getSafePropertyAccessString, makeBindingParser, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
3307
3328
|
import ts17 from "typescript";
|
|
3308
3329
|
|
|
3309
|
-
// bazel-out/
|
|
3330
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/factory.mjs
|
|
3310
3331
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
3311
3332
|
function compileNgFactoryDefField(metadata) {
|
|
3312
3333
|
const res = compileFactoryFunction(metadata);
|
|
@@ -3317,7 +3338,7 @@ function compileDeclareFactory(metadata) {
|
|
|
3317
3338
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
3318
3339
|
}
|
|
3319
3340
|
|
|
3320
|
-
// bazel-out/
|
|
3341
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/metadata.mjs
|
|
3321
3342
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
3322
3343
|
import ts16 from "typescript";
|
|
3323
3344
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -3405,7 +3426,7 @@ function removeIdentifierReferences(node, name) {
|
|
|
3405
3426
|
return result.transformed[0];
|
|
3406
3427
|
}
|
|
3407
3428
|
|
|
3408
|
-
// bazel-out/
|
|
3429
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/directive.mjs
|
|
3409
3430
|
var EMPTY_OBJECT = {};
|
|
3410
3431
|
var FIELD_DECORATORS = [
|
|
3411
3432
|
"Input",
|
|
@@ -3967,7 +3988,7 @@ var QUERY_TYPES = new Set([
|
|
|
3967
3988
|
"ViewChildren"
|
|
3968
3989
|
]);
|
|
3969
3990
|
|
|
3970
|
-
// bazel-out/
|
|
3991
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/ng_module.mjs
|
|
3971
3992
|
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, CUSTOM_ELEMENTS_SCHEMA, ExternalExpr as ExternalExpr4, FactoryTarget as FactoryTarget2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, NO_ERRORS_SCHEMA, R3Identifiers, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3972
3993
|
import ts18 from "typescript";
|
|
3973
3994
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
@@ -4401,7 +4422,7 @@ function isNgModule(node, compilation) {
|
|
|
4401
4422
|
return !compilation.directives.some((directive) => directive.ref.node === node) && !compilation.pipes.some((pipe) => pipe.ref.node === node);
|
|
4402
4423
|
}
|
|
4403
4424
|
|
|
4404
|
-
// bazel-out/
|
|
4425
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/component.mjs
|
|
4405
4426
|
var EMPTY_MAP = new Map();
|
|
4406
4427
|
var EMPTY_ARRAY = [];
|
|
4407
4428
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
@@ -5285,7 +5306,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5285
5306
|
return null;
|
|
5286
5307
|
}
|
|
5287
5308
|
|
|
5288
|
-
// bazel-out/
|
|
5309
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
5289
5310
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
5290
5311
|
import ts20 from "typescript";
|
|
5291
5312
|
var InjectableDecoratorHandler = class {
|
|
@@ -5485,7 +5506,7 @@ function getDep(dep, reflector) {
|
|
|
5485
5506
|
return meta;
|
|
5486
5507
|
}
|
|
5487
5508
|
|
|
5488
|
-
// bazel-out/
|
|
5509
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
5489
5510
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
5490
5511
|
import ts21 from "typescript";
|
|
5491
5512
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -5610,7 +5631,7 @@ var PipeDecoratorHandler = class {
|
|
|
5610
5631
|
}
|
|
5611
5632
|
};
|
|
5612
5633
|
|
|
5613
|
-
// bazel-out/
|
|
5634
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/references_registry.mjs
|
|
5614
5635
|
var NoopReferencesRegistry = class {
|
|
5615
5636
|
add(source, ...references) {
|
|
5616
5637
|
}
|
|
@@ -5660,4 +5681,4 @@ export {
|
|
|
5660
5681
|
* Use of this source code is governed by an MIT-style license that can be
|
|
5661
5682
|
* found in the LICENSE file at https://angular.io/license
|
|
5662
5683
|
*/
|
|
5663
|
-
//# sourceMappingURL=chunk-
|
|
5684
|
+
//# sourceMappingURL=chunk-FXVUPJ6A.js.map
|