@angular/compiler-cli 19.2.2 → 19.2.3
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-SBXBXYBO.js → chunk-2OGNON3Y.js} +5 -5
- package/bundles/{chunk-77D5CI2U.js → chunk-5UDS2TPQ.js} +7 -7
- package/bundles/{chunk-FKXFEX7K.js → chunk-GBKXY6BH.js} +3 -3
- package/bundles/{chunk-Q2WE7ECN.js → chunk-I6R3GL3L.js} +5 -5
- package/bundles/{chunk-OZ2WSYWM.js → chunk-KOIBHR3X.js} +42 -42
- package/bundles/{chunk-J7S5XIBF.js → chunk-RNO4EXM5.js} +31 -31
- package/bundles/{chunk-37JMVF7H.js → chunk-STORTTKY.js} +8 -8
- package/bundles/{chunk-K42X3AUZ.js → chunk-YEQZ4XY7.js} +12 -12
- package/bundles/{chunk-RPCYQIAM.js → chunk-YNWO773W.js} +562 -548
- package/bundles/chunk-YNWO773W.js.map +6 -0
- package/bundles/{chunk-ZOCNWS5F.js → chunk-Z4732XCW.js} +82 -82
- package/bundles/{chunk-ZQNXTHLJ.js → chunk-ZSPLLTLI.js} +3 -3
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +4 -4
- package/bundles/private/tooling.js +6 -6
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/bundles/chunk-RPCYQIAM.js.map +0 -6
- /package/bundles/{chunk-SBXBXYBO.js.map → chunk-2OGNON3Y.js.map} +0 -0
- /package/bundles/{chunk-77D5CI2U.js.map → chunk-5UDS2TPQ.js.map} +0 -0
- /package/bundles/{chunk-FKXFEX7K.js.map → chunk-GBKXY6BH.js.map} +0 -0
- /package/bundles/{chunk-Q2WE7ECN.js.map → chunk-I6R3GL3L.js.map} +0 -0
- /package/bundles/{chunk-OZ2WSYWM.js.map → chunk-KOIBHR3X.js.map} +0 -0
- /package/bundles/{chunk-J7S5XIBF.js.map → chunk-RNO4EXM5.js.map} +0 -0
- /package/bundles/{chunk-37JMVF7H.js.map → chunk-STORTTKY.js.map} +0 -0
- /package/bundles/{chunk-K42X3AUZ.js.map → chunk-YEQZ4XY7.js.map} +0 -0
- /package/bundles/{chunk-ZOCNWS5F.js.map → chunk-Z4732XCW.js.map} +0 -0
- /package/bundles/{chunk-ZQNXTHLJ.js.map → chunk-ZSPLLTLI.js.map} +0 -0
|
@@ -48,23 +48,23 @@ import {
|
|
|
48
48
|
translateStatement,
|
|
49
49
|
translateType,
|
|
50
50
|
typeNodeToValueExpr
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-KOIBHR3X.js";
|
|
52
52
|
import {
|
|
53
53
|
PerfCheckpoint,
|
|
54
54
|
PerfEvent,
|
|
55
55
|
PerfPhase
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-I6R3GL3L.js";
|
|
57
57
|
import {
|
|
58
58
|
absoluteFrom,
|
|
59
59
|
absoluteFromSourceFile,
|
|
60
60
|
getSourceFileOrError,
|
|
61
61
|
relative
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-STORTTKY.js";
|
|
63
63
|
import {
|
|
64
64
|
__publicField
|
|
65
65
|
} from "./chunk-KPQ72R34.js";
|
|
66
66
|
|
|
67
|
-
// bazel-out/
|
|
67
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
68
68
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
69
69
|
import ts from "typescript";
|
|
70
70
|
var CORE_MODULE = "@angular/core";
|
|
@@ -329,7 +329,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
329
329
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
// bazel-out/
|
|
332
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
333
333
|
var DynamicValue = class {
|
|
334
334
|
node;
|
|
335
335
|
reason;
|
|
@@ -422,10 +422,10 @@ var DynamicValue = class {
|
|
|
422
422
|
}
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
-
// bazel-out/
|
|
425
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
426
426
|
import ts2 from "typescript";
|
|
427
427
|
|
|
428
|
-
// bazel-out/
|
|
428
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
429
429
|
var ResolvedModule = class {
|
|
430
430
|
exports;
|
|
431
431
|
evaluate;
|
|
@@ -460,7 +460,7 @@ var EnumValue = class {
|
|
|
460
460
|
var KnownFn = class {
|
|
461
461
|
};
|
|
462
462
|
|
|
463
|
-
// bazel-out/
|
|
463
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
464
464
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
465
465
|
lhs;
|
|
466
466
|
constructor(lhs) {
|
|
@@ -515,7 +515,7 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
515
515
|
}
|
|
516
516
|
};
|
|
517
517
|
|
|
518
|
-
// bazel-out/
|
|
518
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
519
519
|
var SyntheticValue = class {
|
|
520
520
|
value;
|
|
521
521
|
constructor(value) {
|
|
@@ -523,7 +523,7 @@ var SyntheticValue = class {
|
|
|
523
523
|
}
|
|
524
524
|
};
|
|
525
525
|
|
|
526
|
-
// bazel-out/
|
|
526
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
527
527
|
function literalBinaryOp(op) {
|
|
528
528
|
return { op, literal: true };
|
|
529
529
|
}
|
|
@@ -1104,7 +1104,7 @@ function owningModule(context, override = null) {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
|
|
1107
|
-
// bazel-out/
|
|
1107
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1108
1108
|
var PartialEvaluator = class {
|
|
1109
1109
|
host;
|
|
1110
1110
|
checker;
|
|
@@ -1127,7 +1127,7 @@ var PartialEvaluator = class {
|
|
|
1127
1127
|
}
|
|
1128
1128
|
};
|
|
1129
1129
|
|
|
1130
|
-
// bazel-out/
|
|
1130
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1131
1131
|
import ts3 from "typescript";
|
|
1132
1132
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1133
1133
|
var _a, _b;
|
|
@@ -1262,14 +1262,14 @@ function getContainerNode(node) {
|
|
|
1262
1262
|
return node.getSourceFile();
|
|
1263
1263
|
}
|
|
1264
1264
|
|
|
1265
|
-
// bazel-out/
|
|
1265
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
1266
1266
|
var OptimizeFor;
|
|
1267
1267
|
(function(OptimizeFor2) {
|
|
1268
1268
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
1269
1269
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
1270
1270
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
1271
1271
|
|
|
1272
|
-
// bazel-out/
|
|
1272
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
1273
1273
|
var PotentialImportKind;
|
|
1274
1274
|
(function(PotentialImportKind2) {
|
|
1275
1275
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -1281,7 +1281,7 @@ var PotentialImportMode;
|
|
|
1281
1281
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
1282
1282
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
1283
1283
|
|
|
1284
|
-
// bazel-out/
|
|
1284
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
1285
1285
|
var CompletionKind;
|
|
1286
1286
|
(function(CompletionKind2) {
|
|
1287
1287
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
@@ -1289,7 +1289,7 @@ var CompletionKind;
|
|
|
1289
1289
|
CompletionKind2[CompletionKind2["LetDeclaration"] = 2] = "LetDeclaration";
|
|
1290
1290
|
})(CompletionKind || (CompletionKind = {}));
|
|
1291
1291
|
|
|
1292
|
-
// bazel-out/
|
|
1292
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
1293
1293
|
var SymbolKind;
|
|
1294
1294
|
(function(SymbolKind2) {
|
|
1295
1295
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -1306,7 +1306,7 @@ var SymbolKind;
|
|
|
1306
1306
|
SymbolKind2[SymbolKind2["LetDeclaration"] = 11] = "LetDeclaration";
|
|
1307
1307
|
})(SymbolKind || (SymbolKind = {}));
|
|
1308
1308
|
|
|
1309
|
-
// bazel-out/
|
|
1309
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1310
1310
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1311
1311
|
import ts4 from "typescript";
|
|
1312
1312
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1452,10 +1452,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1452
1452
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1453
1453
|
}
|
|
1454
1454
|
|
|
1455
|
-
// bazel-out/
|
|
1455
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1456
1456
|
import ts12 from "typescript";
|
|
1457
1457
|
|
|
1458
|
-
// bazel-out/
|
|
1458
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1459
1459
|
var MetaKind;
|
|
1460
1460
|
(function(MetaKind2) {
|
|
1461
1461
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1468,10 +1468,10 @@ var MatchSource;
|
|
|
1468
1468
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1469
1469
|
})(MatchSource || (MatchSource = {}));
|
|
1470
1470
|
|
|
1471
|
-
// bazel-out/
|
|
1471
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1472
1472
|
import ts6 from "typescript";
|
|
1473
1473
|
|
|
1474
|
-
// bazel-out/
|
|
1474
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1475
1475
|
var ClassPropertyMapping = class {
|
|
1476
1476
|
forwardMap;
|
|
1477
1477
|
reverseMap;
|
|
@@ -1553,7 +1553,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1553
1553
|
return reverseMap;
|
|
1554
1554
|
}
|
|
1555
1555
|
|
|
1556
|
-
// bazel-out/
|
|
1556
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1557
1557
|
import ts5 from "typescript";
|
|
1558
1558
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1559
1559
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1769,7 +1769,7 @@ function isHostDirectiveMetaForGlobalMode(hostDirectiveMeta) {
|
|
|
1769
1769
|
return hostDirectiveMeta.directive instanceof Reference;
|
|
1770
1770
|
}
|
|
1771
1771
|
|
|
1772
|
-
// bazel-out/
|
|
1772
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1773
1773
|
var DtsMetadataReader = class {
|
|
1774
1774
|
checker;
|
|
1775
1775
|
reflector;
|
|
@@ -1968,7 +1968,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1968
1968
|
return result.length > 0 ? { result, isIncomplete } : null;
|
|
1969
1969
|
}
|
|
1970
1970
|
|
|
1971
|
-
// bazel-out/
|
|
1971
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1972
1972
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1973
1973
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1974
1974
|
if (topMeta === null) {
|
|
@@ -2032,7 +2032,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2032
2032
|
};
|
|
2033
2033
|
}
|
|
2034
2034
|
|
|
2035
|
-
// bazel-out/
|
|
2035
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
2036
2036
|
var LocalMetadataRegistry = class {
|
|
2037
2037
|
directives = /* @__PURE__ */ new Map();
|
|
2038
2038
|
ngModules = /* @__PURE__ */ new Map();
|
|
@@ -2088,7 +2088,7 @@ var CompoundMetadataRegistry = class {
|
|
|
2088
2088
|
}
|
|
2089
2089
|
};
|
|
2090
2090
|
|
|
2091
|
-
// bazel-out/
|
|
2091
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
2092
2092
|
var ResourceRegistry = class {
|
|
2093
2093
|
externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
2094
2094
|
componentToTemplateMap = /* @__PURE__ */ new Map();
|
|
@@ -2153,7 +2153,7 @@ var ResourceRegistry = class {
|
|
|
2153
2153
|
}
|
|
2154
2154
|
};
|
|
2155
2155
|
|
|
2156
|
-
// bazel-out/
|
|
2156
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
2157
2157
|
var ExportedProviderStatusResolver = class {
|
|
2158
2158
|
metaReader;
|
|
2159
2159
|
calculating = /* @__PURE__ */ new Set();
|
|
@@ -2198,7 +2198,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
2198
2198
|
}
|
|
2199
2199
|
};
|
|
2200
2200
|
|
|
2201
|
-
// bazel-out/
|
|
2201
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2202
2202
|
var EMPTY_ARRAY = [];
|
|
2203
2203
|
var HostDirectivesResolver = class {
|
|
2204
2204
|
metaReader;
|
|
@@ -2265,7 +2265,7 @@ function resolveOutput(bindingName) {
|
|
|
2265
2265
|
return bindingName;
|
|
2266
2266
|
}
|
|
2267
2267
|
|
|
2268
|
-
// bazel-out/
|
|
2268
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
2269
2269
|
var CompilationMode;
|
|
2270
2270
|
(function(CompilationMode2) {
|
|
2271
2271
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -2279,7 +2279,7 @@ var HandlerPrecedence;
|
|
|
2279
2279
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
2280
2280
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
2281
2281
|
|
|
2282
|
-
// bazel-out/
|
|
2282
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
2283
2283
|
import ts7 from "typescript";
|
|
2284
2284
|
function aliasTransformFactory(exportStatements) {
|
|
2285
2285
|
return () => {
|
|
@@ -2304,10 +2304,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
2304
2304
|
};
|
|
2305
2305
|
}
|
|
2306
2306
|
|
|
2307
|
-
// bazel-out/
|
|
2307
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2308
2308
|
import ts8 from "typescript";
|
|
2309
2309
|
|
|
2310
|
-
// bazel-out/
|
|
2310
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
2311
2311
|
var TraitState;
|
|
2312
2312
|
(function(TraitState2) {
|
|
2313
2313
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -2366,7 +2366,7 @@ var TraitImpl = class {
|
|
|
2366
2366
|
}
|
|
2367
2367
|
};
|
|
2368
2368
|
|
|
2369
|
-
// bazel-out/
|
|
2369
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2370
2370
|
var TraitCompiler = class {
|
|
2371
2371
|
handlers;
|
|
2372
2372
|
reflector;
|
|
@@ -2847,7 +2847,7 @@ function containsErrors(diagnostics) {
|
|
|
2847
2847
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts8.DiagnosticCategory.Error);
|
|
2848
2848
|
}
|
|
2849
2849
|
|
|
2850
|
-
// bazel-out/
|
|
2850
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
2851
2851
|
import ts9 from "typescript";
|
|
2852
2852
|
var DtsTransformRegistry = class {
|
|
2853
2853
|
ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -2997,11 +2997,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
2997
2997
|
ts9.forEachChild(node, markForEmitAsSingleLine);
|
|
2998
2998
|
}
|
|
2999
2999
|
|
|
3000
|
-
// bazel-out/
|
|
3000
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3001
3001
|
import { ConstantPool } from "@angular/compiler";
|
|
3002
3002
|
import ts11 from "typescript";
|
|
3003
3003
|
|
|
3004
|
-
// bazel-out/
|
|
3004
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3005
3005
|
import ts10 from "typescript";
|
|
3006
3006
|
function visit(node, visitor, context) {
|
|
3007
3007
|
return visitor._visit(node, context);
|
|
@@ -3060,7 +3060,7 @@ var Visitor = class {
|
|
|
3060
3060
|
}
|
|
3061
3061
|
};
|
|
3062
3062
|
|
|
3063
|
-
// bazel-out/
|
|
3063
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3064
3064
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
3065
3065
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
3066
3066
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, localCompilationExtraImportsTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3306,7 +3306,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
3306
3306
|
return array;
|
|
3307
3307
|
}
|
|
3308
3308
|
|
|
3309
|
-
// bazel-out/
|
|
3309
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
3310
3310
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
3311
3311
|
const context = [];
|
|
3312
3312
|
for (const decl of data) {
|
|
@@ -3515,7 +3515,7 @@ function assertLocalCompilationUnresolvedConst(compilationMode, value, nodeToHig
|
|
|
3515
3515
|
}
|
|
3516
3516
|
}
|
|
3517
3517
|
|
|
3518
|
-
// bazel-out/
|
|
3518
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
3519
3519
|
import { ViewEncapsulation } from "@angular/compiler";
|
|
3520
3520
|
import ts13 from "typescript";
|
|
3521
3521
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName, isCore) {
|
|
@@ -3566,7 +3566,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
3566
3566
|
return meta;
|
|
3567
3567
|
}
|
|
3568
3568
|
|
|
3569
|
-
// bazel-out/
|
|
3569
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
3570
3570
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
3571
3571
|
function compileNgFactoryDefField(metadata) {
|
|
3572
3572
|
const res = compileFactoryFunction(metadata);
|
|
@@ -3589,7 +3589,7 @@ function compileDeclareFactory(metadata) {
|
|
|
3589
3589
|
};
|
|
3590
3590
|
}
|
|
3591
3591
|
|
|
3592
|
-
// bazel-out/
|
|
3592
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
3593
3593
|
var InjectableClassRegistry = class {
|
|
3594
3594
|
host;
|
|
3595
3595
|
isCore;
|
|
@@ -3617,7 +3617,7 @@ var InjectableClassRegistry = class {
|
|
|
3617
3617
|
}
|
|
3618
3618
|
};
|
|
3619
3619
|
|
|
3620
|
-
// bazel-out/
|
|
3620
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
3621
3621
|
import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
3622
3622
|
import ts14 from "typescript";
|
|
3623
3623
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -3704,7 +3704,7 @@ function removeIdentifierReferences(node, names) {
|
|
|
3704
3704
|
return result.transformed[0];
|
|
3705
3705
|
}
|
|
3706
3706
|
|
|
3707
|
-
// bazel-out/
|
|
3707
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
3708
3708
|
import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3709
3709
|
function extractClassDebugInfo(clazz, reflection, compilerHost, rootDirs, forbidOrphanRendering) {
|
|
3710
3710
|
if (!reflection.isClass(clazz)) {
|
|
@@ -3721,13 +3721,13 @@ function extractClassDebugInfo(clazz, reflection, compilerHost, rootDirs, forbid
|
|
|
3721
3721
|
};
|
|
3722
3722
|
}
|
|
3723
3723
|
|
|
3724
|
-
// bazel-out/
|
|
3724
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
3725
3725
|
var NoopReferencesRegistry = class {
|
|
3726
3726
|
add(source, ...references) {
|
|
3727
3727
|
}
|
|
3728
3728
|
};
|
|
3729
3729
|
|
|
3730
|
-
// bazel-out/
|
|
3730
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
3731
3731
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
3732
3732
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
3733
3733
|
const schemas = [];
|
|
@@ -3757,7 +3757,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
3757
3757
|
return schemas;
|
|
3758
3758
|
}
|
|
3759
3759
|
|
|
3760
|
-
// bazel-out/
|
|
3760
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
3761
3761
|
import { outputAst } from "@angular/compiler";
|
|
3762
3762
|
function compileInputTransformFields(inputs) {
|
|
3763
3763
|
const extraFields = [];
|
|
@@ -3775,16 +3775,16 @@ function compileInputTransformFields(inputs) {
|
|
|
3775
3775
|
return extraFields;
|
|
3776
3776
|
}
|
|
3777
3777
|
|
|
3778
|
-
// bazel-out/
|
|
3778
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/jit_declaration_registry.mjs
|
|
3779
3779
|
var JitDeclarationRegistry = class {
|
|
3780
3780
|
jitDeclarations = /* @__PURE__ */ new Set();
|
|
3781
3781
|
};
|
|
3782
3782
|
|
|
3783
|
-
// bazel-out/
|
|
3783
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
3784
3784
|
import { compileClassDebugInfo, compileHmrInitializer, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareComponentFromMetadata, compileDeferResolverFunction, ConstantPool as ConstantPool2, CssSelector as CssSelector4, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry as DomElementSchemaRegistry3, ExternalExpr as ExternalExpr8, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, outputAst as o4, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher3, ViewEncapsulation as ViewEncapsulation2 } from "@angular/compiler";
|
|
3785
|
-
import
|
|
3785
|
+
import ts49 from "typescript";
|
|
3786
3786
|
|
|
3787
|
-
// bazel-out/
|
|
3787
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
3788
3788
|
import ts15 from "typescript";
|
|
3789
3789
|
var SemanticSymbol = class {
|
|
3790
3790
|
decl;
|
|
@@ -3803,7 +3803,7 @@ function getSymbolIdentifier(decl) {
|
|
|
3803
3803
|
return decl.name.text;
|
|
3804
3804
|
}
|
|
3805
3805
|
|
|
3806
|
-
// bazel-out/
|
|
3806
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
3807
3807
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
3808
3808
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
3809
3809
|
isPublicApiAffected() {
|
|
@@ -3945,10 +3945,10 @@ function getImportPath(expr) {
|
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
3947
|
|
|
3948
|
-
// bazel-out/
|
|
3948
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
3949
3949
|
import ts16 from "typescript";
|
|
3950
3950
|
|
|
3951
|
-
// bazel-out/
|
|
3951
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
3952
3952
|
function isSymbolEqual(a, b) {
|
|
3953
3953
|
if (a.decl === b.decl) {
|
|
3954
3954
|
return true;
|
|
@@ -3998,7 +3998,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
3998
3998
|
return true;
|
|
3999
3999
|
}
|
|
4000
4000
|
|
|
4001
|
-
// bazel-out/
|
|
4001
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
4002
4002
|
function extractSemanticTypeParameters(node) {
|
|
4003
4003
|
if (!ts16.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
4004
4004
|
return null;
|
|
@@ -4020,14 +4020,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
4020
4020
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
4021
4021
|
}
|
|
4022
4022
|
|
|
4023
|
-
// bazel-out/
|
|
4023
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
4024
4024
|
var ComponentScopeKind;
|
|
4025
4025
|
(function(ComponentScopeKind2) {
|
|
4026
4026
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
4027
4027
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
4028
4028
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
4029
4029
|
|
|
4030
|
-
// bazel-out/
|
|
4030
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
4031
4031
|
var CompoundComponentScopeReader = class {
|
|
4032
4032
|
readers;
|
|
4033
4033
|
constructor(readers) {
|
|
@@ -4053,7 +4053,7 @@ var CompoundComponentScopeReader = class {
|
|
|
4053
4053
|
}
|
|
4054
4054
|
};
|
|
4055
4055
|
|
|
4056
|
-
// bazel-out/
|
|
4056
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
4057
4057
|
var MetadataDtsModuleScopeResolver = class {
|
|
4058
4058
|
dtsMetaReader;
|
|
4059
4059
|
aliasingHost;
|
|
@@ -4131,11 +4131,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
4131
4131
|
}
|
|
4132
4132
|
};
|
|
4133
4133
|
|
|
4134
|
-
// bazel-out/
|
|
4134
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
4135
4135
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
4136
4136
|
import ts17 from "typescript";
|
|
4137
4137
|
|
|
4138
|
-
// bazel-out/
|
|
4138
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
4139
4139
|
function getDiagnosticNode(ref, rawExpr) {
|
|
4140
4140
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
4141
4141
|
}
|
|
@@ -4161,7 +4161,7 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
|
|
|
4161
4161
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
|
|
4162
4162
|
}
|
|
4163
4163
|
|
|
4164
|
-
// bazel-out/
|
|
4164
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
4165
4165
|
var IN_PROGRESS_RESOLUTION = {};
|
|
4166
4166
|
var LocalModuleScopeRegistry = class {
|
|
4167
4167
|
localReader;
|
|
@@ -4520,7 +4520,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
4520
4520
|
]);
|
|
4521
4521
|
}
|
|
4522
4522
|
|
|
4523
|
-
// bazel-out/
|
|
4523
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
4524
4524
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
4525
4525
|
import ts18 from "typescript";
|
|
4526
4526
|
var TypeCheckScopeRegistry = class {
|
|
@@ -4604,14 +4604,14 @@ var TypeCheckScopeRegistry = class {
|
|
|
4604
4604
|
}
|
|
4605
4605
|
};
|
|
4606
4606
|
|
|
4607
|
-
// bazel-out/
|
|
4607
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4608
4608
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4609
4609
|
|
|
4610
|
-
// bazel-out/
|
|
4610
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4611
4611
|
import { createMayBeForwardRefExpression as createMayBeForwardRefExpression2, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, ParserError, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4612
4612
|
import ts22 from "typescript";
|
|
4613
4613
|
|
|
4614
|
-
// bazel-out/
|
|
4614
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
|
|
4615
4615
|
function validateAccessOfInitializerApiMember({ api, call }, member) {
|
|
4616
4616
|
if (!api.allowedAccessLevels.includes(member.accessLevel)) {
|
|
4617
4617
|
throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_DISALLOWED_MEMBER_VISIBILITY, call, makeDiagnosticChain(`Cannot use "${api.functionName}" on a class member that is declared as ${classMemberAccessLevelToString(member.accessLevel)}.`, [
|
|
@@ -4620,7 +4620,7 @@ function validateAccessOfInitializerApiMember({ api, call }, member) {
|
|
|
4620
4620
|
}
|
|
4621
4621
|
}
|
|
4622
4622
|
|
|
4623
|
-
// bazel-out/
|
|
4623
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
|
|
4624
4624
|
import ts19 from "typescript";
|
|
4625
4625
|
function tryParseInitializerApi(functions, expression, reflector, importTracker) {
|
|
4626
4626
|
if (!ts19.isCallExpression(expression)) {
|
|
@@ -4689,7 +4689,7 @@ function parseTopLevelCallFromNamespace(call, functions, importTracker) {
|
|
|
4689
4689
|
return { api: matchingApi, apiReference, isRequired };
|
|
4690
4690
|
}
|
|
4691
4691
|
|
|
4692
|
-
// bazel-out/
|
|
4692
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
|
|
4693
4693
|
import ts20 from "typescript";
|
|
4694
4694
|
function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
4695
4695
|
if (!ts20.isObjectLiteralExpression(optionsNode)) {
|
|
@@ -4707,7 +4707,7 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
|
4707
4707
|
return { alias };
|
|
4708
4708
|
}
|
|
4709
4709
|
|
|
4710
|
-
// bazel-out/
|
|
4710
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
|
|
4711
4711
|
var INPUT_INITIALIZER_FN = {
|
|
4712
4712
|
functionName: "input",
|
|
4713
4713
|
owningModule: "@angular/core",
|
|
@@ -4739,7 +4739,7 @@ function tryParseSignalInputMapping(member, reflector, importTracker) {
|
|
|
4739
4739
|
};
|
|
4740
4740
|
}
|
|
4741
4741
|
|
|
4742
|
-
// bazel-out/
|
|
4742
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
|
|
4743
4743
|
var MODEL_INITIALIZER_FN = {
|
|
4744
4744
|
functionName: "model",
|
|
4745
4745
|
owningModule: "@angular/core",
|
|
@@ -4780,7 +4780,7 @@ function tryParseSignalModelMapping(member, reflector, importTracker) {
|
|
|
4780
4780
|
};
|
|
4781
4781
|
}
|
|
4782
4782
|
|
|
4783
|
-
// bazel-out/
|
|
4783
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
|
|
4784
4784
|
var allowedAccessLevels = [
|
|
4785
4785
|
ClassMemberAccessLevel.PublicWritable,
|
|
4786
4786
|
ClassMemberAccessLevel.PublicReadonly,
|
|
@@ -4824,7 +4824,7 @@ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
|
|
|
4824
4824
|
};
|
|
4825
4825
|
}
|
|
4826
4826
|
|
|
4827
|
-
// bazel-out/
|
|
4827
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
|
|
4828
4828
|
import { createMayBeForwardRefExpression, outputAst as o } from "@angular/compiler";
|
|
4829
4829
|
import ts21 from "typescript";
|
|
4830
4830
|
var queryFunctionNames = [
|
|
@@ -4909,7 +4909,7 @@ function parseDescendantsOption(value) {
|
|
|
4909
4909
|
throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
|
|
4910
4910
|
}
|
|
4911
4911
|
|
|
4912
|
-
// bazel-out/
|
|
4912
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4913
4913
|
var EMPTY_OBJECT = {};
|
|
4914
4914
|
var queryDecoratorNames = [
|
|
4915
4915
|
"ViewChild",
|
|
@@ -5720,7 +5720,7 @@ function toR3InputMetadata(mapping) {
|
|
|
5720
5720
|
};
|
|
5721
5721
|
}
|
|
5722
5722
|
|
|
5723
|
-
// bazel-out/
|
|
5723
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
5724
5724
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
5725
5725
|
selector;
|
|
5726
5726
|
inputs;
|
|
@@ -5806,7 +5806,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
5806
5806
|
return isSymbolEqual(current, previous);
|
|
5807
5807
|
}
|
|
5808
5808
|
|
|
5809
|
-
// bazel-out/
|
|
5809
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
5810
5810
|
var FIELD_DECORATORS = [
|
|
5811
5811
|
"Input",
|
|
5812
5812
|
"Output",
|
|
@@ -6026,11 +6026,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
};
|
|
6028
6028
|
|
|
6029
|
-
// bazel-out/
|
|
6029
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
6030
6030
|
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3NgModuleMetadataKind, R3SelectorScopeMode, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
6031
6031
|
import ts24 from "typescript";
|
|
6032
6032
|
|
|
6033
|
-
// bazel-out/
|
|
6033
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
6034
6034
|
import ts23 from "typescript";
|
|
6035
6035
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
6036
6036
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -6102,7 +6102,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
6102
6102
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
6103
6103
|
}
|
|
6104
6104
|
|
|
6105
|
-
// bazel-out/
|
|
6105
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
6106
6106
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
6107
6107
|
hasProviders;
|
|
6108
6108
|
remotelyScopedComponents = [];
|
|
@@ -6743,7 +6743,7 @@ function isSyntheticReference(ref) {
|
|
|
6743
6743
|
return ref.synthetic;
|
|
6744
6744
|
}
|
|
6745
6745
|
|
|
6746
|
-
// bazel-out/
|
|
6746
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
6747
6747
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
6748
6748
|
const name = ref.debugName || "(unknown)";
|
|
6749
6749
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -6766,7 +6766,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
6766
6766
|
return null;
|
|
6767
6767
|
}
|
|
6768
6768
|
|
|
6769
|
-
// bazel-out/
|
|
6769
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
6770
6770
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
6771
6771
|
import ts25 from "typescript";
|
|
6772
6772
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -7104,7 +7104,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
7104
7104
|
}));
|
|
7105
7105
|
}
|
|
7106
7106
|
|
|
7107
|
-
// bazel-out/
|
|
7107
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
7108
7108
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
7109
7109
|
usedDirectives = [];
|
|
7110
7110
|
usedPipes = [];
|
|
@@ -7136,7 +7136,8 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
7136
7136
|
}
|
|
7137
7137
|
};
|
|
7138
7138
|
|
|
7139
|
-
// bazel-out/
|
|
7139
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
7140
|
+
import ts26 from "typescript";
|
|
7140
7141
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
7141
7142
|
if (value instanceof Map) {
|
|
7142
7143
|
const name = value.get("name");
|
|
@@ -7180,7 +7181,8 @@ function validateAndFlattenComponentImports(imports, expr, isDeferred) {
|
|
|
7180
7181
|
};
|
|
7181
7182
|
}
|
|
7182
7183
|
const diagnostics = [];
|
|
7183
|
-
for (
|
|
7184
|
+
for (let i = 0; i < imports.length; i++) {
|
|
7185
|
+
const ref = imports[i];
|
|
7184
7186
|
if (Array.isArray(ref)) {
|
|
7185
7187
|
const { imports: childImports, diagnostics: childDiagnostics } = validateAndFlattenComponentImports(ref, expr, isDeferred);
|
|
7186
7188
|
flattened.push(...childImports);
|
|
@@ -7198,7 +7200,19 @@ function validateAndFlattenComponentImports(imports, expr, isDeferred) {
|
|
|
7198
7200
|
}
|
|
7199
7201
|
diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, origin, `Component imports contains a ModuleWithProviders value, likely the result of a 'Module.forRoot()'-style call. These calls are not used to configure components and are not valid in standalone component imports - consider importing them in the application bootstrap instead.`));
|
|
7200
7202
|
} else {
|
|
7201
|
-
|
|
7203
|
+
let diagnosticNode;
|
|
7204
|
+
let diagnosticValue;
|
|
7205
|
+
if (ref instanceof DynamicValue) {
|
|
7206
|
+
diagnosticNode = ref.node;
|
|
7207
|
+
diagnosticValue = ref;
|
|
7208
|
+
} else if (ts26.isArrayLiteralExpression(expr) && expr.elements.length === imports.length && !expr.elements.some(ts26.isSpreadAssignment) && !imports.some(Array.isArray)) {
|
|
7209
|
+
diagnosticNode = expr.elements[i];
|
|
7210
|
+
diagnosticValue = ref;
|
|
7211
|
+
} else {
|
|
7212
|
+
diagnosticNode = expr;
|
|
7213
|
+
diagnosticValue = imports;
|
|
7214
|
+
}
|
|
7215
|
+
diagnostics.push(createValueHasWrongTypeError(diagnosticNode, diagnosticValue, errorMessage).toDiagnostic());
|
|
7202
7216
|
}
|
|
7203
7217
|
}
|
|
7204
7218
|
return { imports: flattened, diagnostics };
|
|
@@ -7213,10 +7227,10 @@ function isLikelyModuleWithProviders(value) {
|
|
|
7213
7227
|
return false;
|
|
7214
7228
|
}
|
|
7215
7229
|
|
|
7216
|
-
// bazel-out/
|
|
7230
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
7217
7231
|
import { CssSelector as CssSelector3, DomElementSchemaRegistry as DomElementSchemaRegistry2, ExternalExpr as ExternalExpr7, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
7218
7232
|
|
|
7219
|
-
// bazel-out/
|
|
7233
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/api.mjs
|
|
7220
7234
|
var NgOriginalFile = Symbol("NgOriginalFile");
|
|
7221
7235
|
var UpdateMode;
|
|
7222
7236
|
(function(UpdateMode2) {
|
|
@@ -7224,13 +7238,13 @@ var UpdateMode;
|
|
|
7224
7238
|
UpdateMode2[UpdateMode2["Incremental"] = 1] = "Incremental";
|
|
7225
7239
|
})(UpdateMode || (UpdateMode = {}));
|
|
7226
7240
|
|
|
7227
|
-
// bazel-out/
|
|
7228
|
-
import
|
|
7241
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
7242
|
+
import ts28 from "typescript";
|
|
7229
7243
|
|
|
7230
|
-
// bazel-out/
|
|
7231
|
-
import
|
|
7244
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
7245
|
+
import ts27 from "typescript";
|
|
7232
7246
|
|
|
7233
|
-
// bazel-out/
|
|
7247
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/expando.mjs
|
|
7234
7248
|
var NgExtension = Symbol("NgExtension");
|
|
7235
7249
|
function isExtended(sf) {
|
|
7236
7250
|
return sf[NgExtension] !== void 0;
|
|
@@ -7290,13 +7304,13 @@ function retagTsFile(sf) {
|
|
|
7290
7304
|
}
|
|
7291
7305
|
}
|
|
7292
7306
|
|
|
7293
|
-
// bazel-out/
|
|
7307
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/util.mjs
|
|
7294
7308
|
var TS_EXTENSIONS = /\.tsx?$/i;
|
|
7295
7309
|
function makeShimFileName(fileName, suffix) {
|
|
7296
7310
|
return absoluteFrom(fileName.replace(TS_EXTENSIONS, suffix));
|
|
7297
7311
|
}
|
|
7298
7312
|
|
|
7299
|
-
// bazel-out/
|
|
7313
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/adapter.mjs
|
|
7300
7314
|
var ShimAdapter = class {
|
|
7301
7315
|
delegate;
|
|
7302
7316
|
shims = /* @__PURE__ */ new Map();
|
|
@@ -7361,10 +7375,10 @@ var ShimAdapter = class {
|
|
|
7361
7375
|
}
|
|
7362
7376
|
const prefix = match[1];
|
|
7363
7377
|
let baseFileName = absoluteFrom(prefix + ".ts");
|
|
7364
|
-
let inputFile = this.delegate.getSourceFile(baseFileName,
|
|
7378
|
+
let inputFile = this.delegate.getSourceFile(baseFileName, ts27.ScriptTarget.Latest);
|
|
7365
7379
|
if (inputFile === void 0) {
|
|
7366
7380
|
baseFileName = absoluteFrom(prefix + ".tsx");
|
|
7367
|
-
inputFile = this.delegate.getSourceFile(baseFileName,
|
|
7381
|
+
inputFile = this.delegate.getSourceFile(baseFileName, ts27.ScriptTarget.Latest);
|
|
7368
7382
|
}
|
|
7369
7383
|
if (inputFile === void 0 || isShim(inputFile)) {
|
|
7370
7384
|
return void 0;
|
|
@@ -7393,7 +7407,7 @@ var ShimAdapter = class {
|
|
|
7393
7407
|
}
|
|
7394
7408
|
};
|
|
7395
7409
|
|
|
7396
|
-
// bazel-out/
|
|
7410
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/shims/src/reference_tagger.mjs
|
|
7397
7411
|
var ShimReferenceTagger = class {
|
|
7398
7412
|
suffixes;
|
|
7399
7413
|
tagged = /* @__PURE__ */ new Set();
|
|
@@ -7428,7 +7442,7 @@ var ShimReferenceTagger = class {
|
|
|
7428
7442
|
}
|
|
7429
7443
|
};
|
|
7430
7444
|
|
|
7431
|
-
// bazel-out/
|
|
7445
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.mjs
|
|
7432
7446
|
var DelegatingCompilerHost = class {
|
|
7433
7447
|
delegate;
|
|
7434
7448
|
createHash;
|
|
@@ -7559,7 +7573,7 @@ var TsCreateProgramDriver = class {
|
|
|
7559
7573
|
this.sfMap.clear();
|
|
7560
7574
|
}
|
|
7561
7575
|
for (const [filePath, { newText, originalFile }] of contents.entries()) {
|
|
7562
|
-
const sf =
|
|
7576
|
+
const sf = ts28.createSourceFile(filePath, newText, ts28.ScriptTarget.Latest, true);
|
|
7563
7577
|
if (originalFile !== null) {
|
|
7564
7578
|
sf[NgOriginalFile] = originalFile;
|
|
7565
7579
|
}
|
|
@@ -7568,7 +7582,7 @@ var TsCreateProgramDriver = class {
|
|
|
7568
7582
|
const host = new UpdatedProgramHost(this.sfMap, this.originalProgram, this.originalHost, this.shimExtensionPrefixes);
|
|
7569
7583
|
const oldProgram = this.program;
|
|
7570
7584
|
retagAllTsFiles(oldProgram);
|
|
7571
|
-
this.program =
|
|
7585
|
+
this.program = ts28.createProgram({
|
|
7572
7586
|
host,
|
|
7573
7587
|
rootNames: this.program.getRootFileNames(),
|
|
7574
7588
|
options: this.options,
|
|
@@ -7579,8 +7593,8 @@ var TsCreateProgramDriver = class {
|
|
|
7579
7593
|
}
|
|
7580
7594
|
};
|
|
7581
7595
|
|
|
7582
|
-
// bazel-out/
|
|
7583
|
-
import
|
|
7596
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/diagnostic.mjs
|
|
7597
|
+
import ts29 from "typescript";
|
|
7584
7598
|
function makeTemplateDiagnostic(id, mapping, span, category, code, messageText, relatedMessages) {
|
|
7585
7599
|
var _a;
|
|
7586
7600
|
if (mapping.type === "direct") {
|
|
@@ -7589,7 +7603,7 @@ function makeTemplateDiagnostic(id, mapping, span, category, code, messageText,
|
|
|
7589
7603
|
relatedInformation = [];
|
|
7590
7604
|
for (const relatedMessage of relatedMessages) {
|
|
7591
7605
|
relatedInformation.push({
|
|
7592
|
-
category:
|
|
7606
|
+
category: ts29.DiagnosticCategory.Message,
|
|
7593
7607
|
code: 0,
|
|
7594
7608
|
file: relatedMessage.sourceFile,
|
|
7595
7609
|
start: relatedMessage.start,
|
|
@@ -7618,7 +7632,7 @@ function makeTemplateDiagnostic(id, mapping, span, category, code, messageText,
|
|
|
7618
7632
|
if (relatedMessages !== void 0) {
|
|
7619
7633
|
for (const relatedMessage of relatedMessages) {
|
|
7620
7634
|
relatedInformation.push({
|
|
7621
|
-
category:
|
|
7635
|
+
category: ts29.DiagnosticCategory.Message,
|
|
7622
7636
|
code: 0,
|
|
7623
7637
|
file: relatedMessage.sourceFile,
|
|
7624
7638
|
start: relatedMessage.start,
|
|
@@ -7646,7 +7660,7 @@ function makeTemplateDiagnostic(id, mapping, span, category, code, messageText,
|
|
|
7646
7660
|
};
|
|
7647
7661
|
}
|
|
7648
7662
|
relatedInformation.push({
|
|
7649
|
-
category:
|
|
7663
|
+
category: ts29.DiagnosticCategory.Message,
|
|
7650
7664
|
code: 0,
|
|
7651
7665
|
file: componentSf,
|
|
7652
7666
|
start: mapping.node.getStart(),
|
|
@@ -7681,16 +7695,16 @@ function parseTemplateAsSourceFile(fileName, template) {
|
|
|
7681
7695
|
if (parseTemplateAsSourceFileForTest !== null) {
|
|
7682
7696
|
return parseTemplateAsSourceFileForTest(fileName, template);
|
|
7683
7697
|
}
|
|
7684
|
-
return
|
|
7698
|
+
return ts29.createSourceFile(
|
|
7685
7699
|
fileName,
|
|
7686
7700
|
template,
|
|
7687
|
-
|
|
7701
|
+
ts29.ScriptTarget.Latest,
|
|
7688
7702
|
false,
|
|
7689
|
-
|
|
7703
|
+
ts29.ScriptKind.JSX
|
|
7690
7704
|
);
|
|
7691
7705
|
}
|
|
7692
7706
|
|
|
7693
|
-
// bazel-out/
|
|
7707
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/diagnostics/src/id.mjs
|
|
7694
7708
|
var TYPE_CHECK_ID_MAP = Symbol("TypeCheckId");
|
|
7695
7709
|
function getTypeCheckId(clazz) {
|
|
7696
7710
|
const sf = clazz.getSourceFile();
|
|
@@ -7703,17 +7717,17 @@ function getTypeCheckId(clazz) {
|
|
|
7703
7717
|
return sf[TYPE_CHECK_ID_MAP].get(clazz);
|
|
7704
7718
|
}
|
|
7705
7719
|
|
|
7706
|
-
// bazel-out/
|
|
7720
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
7707
7721
|
import { EmptyExpr, ImplicitReceiver, PropertyRead, PropertyWrite, SafePropertyRead, TmplAstLetDeclaration, TmplAstReference, TmplAstTextAttribute } from "@angular/compiler";
|
|
7708
|
-
import
|
|
7722
|
+
import ts31 from "typescript";
|
|
7709
7723
|
|
|
7710
|
-
// bazel-out/
|
|
7724
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/comments.mjs
|
|
7711
7725
|
import { AbsoluteSourceSpan } from "@angular/compiler";
|
|
7712
|
-
import
|
|
7726
|
+
import ts30 from "typescript";
|
|
7713
7727
|
var parseSpanComment = /^(\d+),(\d+)$/;
|
|
7714
7728
|
function readSpanComment(node, sourceFile = node.getSourceFile()) {
|
|
7715
|
-
return
|
|
7716
|
-
if (kind !==
|
|
7729
|
+
return ts30.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
|
|
7730
|
+
if (kind !== ts30.SyntaxKind.MultiLineCommentTrivia) {
|
|
7717
7731
|
return null;
|
|
7718
7732
|
}
|
|
7719
7733
|
const commentText = sourceFile.text.substring(pos + 2, end - 2);
|
|
@@ -7737,25 +7751,25 @@ var ExpressionIdentifier;
|
|
|
7737
7751
|
ExpressionIdentifier2["VARIABLE_AS_EXPRESSION"] = "VAE";
|
|
7738
7752
|
})(ExpressionIdentifier || (ExpressionIdentifier = {}));
|
|
7739
7753
|
function addExpressionIdentifier(node, identifier) {
|
|
7740
|
-
|
|
7754
|
+
ts30.addSyntheticTrailingComment(
|
|
7741
7755
|
node,
|
|
7742
|
-
|
|
7756
|
+
ts30.SyntaxKind.MultiLineCommentTrivia,
|
|
7743
7757
|
`${CommentTriviaType.EXPRESSION_TYPE_IDENTIFIER}:${identifier}`,
|
|
7744
7758
|
false
|
|
7745
7759
|
);
|
|
7746
7760
|
}
|
|
7747
7761
|
var IGNORE_FOR_DIAGNOSTICS_MARKER = `${CommentTriviaType.DIAGNOSTIC}:ignore`;
|
|
7748
7762
|
function markIgnoreDiagnostics(node) {
|
|
7749
|
-
|
|
7763
|
+
ts30.addSyntheticTrailingComment(
|
|
7750
7764
|
node,
|
|
7751
|
-
|
|
7765
|
+
ts30.SyntaxKind.MultiLineCommentTrivia,
|
|
7752
7766
|
IGNORE_FOR_DIAGNOSTICS_MARKER,
|
|
7753
7767
|
false
|
|
7754
7768
|
);
|
|
7755
7769
|
}
|
|
7756
7770
|
function hasIgnoreForDiagnosticsMarker(node, sourceFile) {
|
|
7757
|
-
return
|
|
7758
|
-
if (kind !==
|
|
7771
|
+
return ts30.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
|
|
7772
|
+
if (kind !== ts30.SyntaxKind.MultiLineCommentTrivia) {
|
|
7759
7773
|
return null;
|
|
7760
7774
|
}
|
|
7761
7775
|
const commentText = sourceFile.text.substring(pos + 2, end - 2);
|
|
@@ -7829,8 +7843,8 @@ function findAllMatchingNodes(tcb, opts) {
|
|
|
7829
7843
|
return results;
|
|
7830
7844
|
}
|
|
7831
7845
|
function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
7832
|
-
return
|
|
7833
|
-
if (kind !==
|
|
7846
|
+
return ts30.forEachTrailingCommentRange(sourceFile.text, node.getEnd(), (pos, end, kind) => {
|
|
7847
|
+
if (kind !== ts30.SyntaxKind.MultiLineCommentTrivia) {
|
|
7834
7848
|
return false;
|
|
7835
7849
|
}
|
|
7836
7850
|
const commentText = sourceFile.text.substring(pos + 2, end - 2);
|
|
@@ -7838,7 +7852,7 @@ function hasExpressionIdentifier(sourceFile, node, identifier) {
|
|
|
7838
7852
|
}) || false;
|
|
7839
7853
|
}
|
|
7840
7854
|
|
|
7841
|
-
// bazel-out/
|
|
7855
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/completion.mjs
|
|
7842
7856
|
var CompletionEngine = class {
|
|
7843
7857
|
tcb;
|
|
7844
7858
|
data;
|
|
@@ -7853,7 +7867,7 @@ var CompletionEngine = class {
|
|
|
7853
7867
|
this.tcbPath = tcbPath;
|
|
7854
7868
|
this.tcbIsShim = tcbIsShim;
|
|
7855
7869
|
const globalRead = findFirstMatchingNode(this.tcb, {
|
|
7856
|
-
filter:
|
|
7870
|
+
filter: ts31.isPropertyAccessExpression,
|
|
7857
7871
|
withExpressionIdentifier: ExpressionIdentifier.COMPONENT_COMPLETION
|
|
7858
7872
|
});
|
|
7859
7873
|
if (globalRead !== null) {
|
|
@@ -7877,7 +7891,7 @@ var CompletionEngine = class {
|
|
|
7877
7891
|
let nodeContext = null;
|
|
7878
7892
|
if (node instanceof EmptyExpr) {
|
|
7879
7893
|
const nodeLocation = findFirstMatchingNode(this.tcb, {
|
|
7880
|
-
filter:
|
|
7894
|
+
filter: ts31.isIdentifier,
|
|
7881
7895
|
withSpan: node.sourceSpan
|
|
7882
7896
|
});
|
|
7883
7897
|
if (nodeLocation !== null) {
|
|
@@ -7890,7 +7904,7 @@ var CompletionEngine = class {
|
|
|
7890
7904
|
}
|
|
7891
7905
|
if (node instanceof PropertyRead && node.receiver instanceof ImplicitReceiver) {
|
|
7892
7906
|
const nodeLocation = findFirstMatchingNode(this.tcb, {
|
|
7893
|
-
filter:
|
|
7907
|
+
filter: ts31.isPropertyAccessExpression,
|
|
7894
7908
|
withSpan: node.sourceSpan
|
|
7895
7909
|
});
|
|
7896
7910
|
if (nodeLocation) {
|
|
@@ -7914,21 +7928,21 @@ var CompletionEngine = class {
|
|
|
7914
7928
|
let tsExpr = null;
|
|
7915
7929
|
if (expr instanceof PropertyRead || expr instanceof PropertyWrite) {
|
|
7916
7930
|
tsExpr = findFirstMatchingNode(this.tcb, {
|
|
7917
|
-
filter:
|
|
7931
|
+
filter: ts31.isPropertyAccessExpression,
|
|
7918
7932
|
withSpan: expr.nameSpan
|
|
7919
7933
|
});
|
|
7920
7934
|
} else if (expr instanceof SafePropertyRead) {
|
|
7921
7935
|
const ternaryExpr = findFirstMatchingNode(this.tcb, {
|
|
7922
|
-
filter:
|
|
7936
|
+
filter: ts31.isParenthesizedExpression,
|
|
7923
7937
|
withSpan: expr.sourceSpan
|
|
7924
7938
|
});
|
|
7925
|
-
if (ternaryExpr === null || !
|
|
7939
|
+
if (ternaryExpr === null || !ts31.isConditionalExpression(ternaryExpr.expression)) {
|
|
7926
7940
|
return null;
|
|
7927
7941
|
}
|
|
7928
7942
|
const whenTrue = ternaryExpr.expression.whenTrue;
|
|
7929
|
-
if (
|
|
7943
|
+
if (ts31.isPropertyAccessExpression(whenTrue)) {
|
|
7930
7944
|
tsExpr = whenTrue;
|
|
7931
|
-
} else if (
|
|
7945
|
+
} else if (ts31.isCallExpression(whenTrue) && ts31.isPropertyAccessExpression(whenTrue.expression)) {
|
|
7932
7946
|
tsExpr = whenTrue.expression;
|
|
7933
7947
|
}
|
|
7934
7948
|
}
|
|
@@ -7950,15 +7964,15 @@ var CompletionEngine = class {
|
|
|
7950
7964
|
let tsExpr = null;
|
|
7951
7965
|
if (expr instanceof TmplAstTextAttribute) {
|
|
7952
7966
|
const strNode = findFirstMatchingNode(this.tcb, {
|
|
7953
|
-
filter:
|
|
7967
|
+
filter: ts31.isParenthesizedExpression,
|
|
7954
7968
|
withSpan: expr.sourceSpan
|
|
7955
7969
|
});
|
|
7956
|
-
if (strNode !== null &&
|
|
7970
|
+
if (strNode !== null && ts31.isStringLiteral(strNode.expression)) {
|
|
7957
7971
|
tsExpr = strNode.expression;
|
|
7958
7972
|
}
|
|
7959
7973
|
} else {
|
|
7960
7974
|
tsExpr = findFirstMatchingNode(this.tcb, {
|
|
7961
|
-
filter: (n2) =>
|
|
7975
|
+
filter: (n2) => ts31.isStringLiteral(n2) || ts31.isNumericLiteral(n2),
|
|
7962
7976
|
withSpan: expr.sourceSpan
|
|
7963
7977
|
});
|
|
7964
7978
|
}
|
|
@@ -7966,7 +7980,7 @@ var CompletionEngine = class {
|
|
|
7966
7980
|
return null;
|
|
7967
7981
|
}
|
|
7968
7982
|
let positionInShimFile = tsExpr.getEnd();
|
|
7969
|
-
if (
|
|
7983
|
+
if (ts31.isStringLiteral(tsExpr)) {
|
|
7970
7984
|
positionInShimFile -= 1;
|
|
7971
7985
|
}
|
|
7972
7986
|
const res = {
|
|
@@ -9045,12 +9059,12 @@ var MagicString = class {
|
|
|
9045
9059
|
}
|
|
9046
9060
|
};
|
|
9047
9061
|
|
|
9048
|
-
// bazel-out/
|
|
9049
|
-
import
|
|
9062
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
9063
|
+
import ts44 from "typescript";
|
|
9050
9064
|
|
|
9051
|
-
// bazel-out/
|
|
9065
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/dom.mjs
|
|
9052
9066
|
import { DomElementSchemaRegistry } from "@angular/compiler";
|
|
9053
|
-
import
|
|
9067
|
+
import ts32 from "typescript";
|
|
9054
9068
|
var REGISTRY = new DomElementSchemaRegistry();
|
|
9055
9069
|
var REMOVE_XHTML_REGEX = /^:xhtml:/;
|
|
9056
9070
|
var RegistryDomSchemaChecker = class {
|
|
@@ -9076,7 +9090,7 @@ var RegistryDomSchemaChecker = class {
|
|
|
9076
9090
|
} else {
|
|
9077
9091
|
errorMsg += `2. To allow any element add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
|
|
9078
9092
|
}
|
|
9079
|
-
const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan,
|
|
9093
|
+
const diag = makeTemplateDiagnostic(id, mapping, element.startSourceSpan, ts32.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ELEMENT), errorMsg);
|
|
9080
9094
|
this._diagnostics.push(diag);
|
|
9081
9095
|
}
|
|
9082
9096
|
}
|
|
@@ -9096,16 +9110,16 @@ var RegistryDomSchemaChecker = class {
|
|
|
9096
9110
|
2. If '${element.name}' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the ${schemas2} of this component to suppress this message.
|
|
9097
9111
|
3. To allow any property add 'NO_ERRORS_SCHEMA' to the ${schemas2} of this component.`;
|
|
9098
9112
|
}
|
|
9099
|
-
const diag = makeTemplateDiagnostic(id, mapping, span,
|
|
9113
|
+
const diag = makeTemplateDiagnostic(id, mapping, span, ts32.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SCHEMA_INVALID_ATTRIBUTE), errorMsg);
|
|
9100
9114
|
this._diagnostics.push(diag);
|
|
9101
9115
|
}
|
|
9102
9116
|
}
|
|
9103
9117
|
};
|
|
9104
9118
|
|
|
9105
|
-
// bazel-out/
|
|
9106
|
-
import
|
|
9119
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
9120
|
+
import ts37 from "typescript";
|
|
9107
9121
|
|
|
9108
|
-
// bazel-out/
|
|
9122
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/reference_emit_environment.mjs
|
|
9109
9123
|
import { ExpressionType, ExternalExpr as ExternalExpr6, TypeModifier } from "@angular/compiler";
|
|
9110
9124
|
var ReferenceEmitEnvironment = class {
|
|
9111
9125
|
importManager;
|
|
@@ -9140,99 +9154,99 @@ var ReferenceEmitEnvironment = class {
|
|
|
9140
9154
|
}
|
|
9141
9155
|
};
|
|
9142
9156
|
|
|
9143
|
-
// bazel-out/
|
|
9144
|
-
import
|
|
9157
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/ts_util.mjs
|
|
9158
|
+
import ts33 from "typescript";
|
|
9145
9159
|
var SAFE_TO_CAST_WITHOUT_PARENS = /* @__PURE__ */ new Set([
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
+
ts33.SyntaxKind.ParenthesizedExpression,
|
|
9161
|
+
ts33.SyntaxKind.Identifier,
|
|
9162
|
+
ts33.SyntaxKind.CallExpression,
|
|
9163
|
+
ts33.SyntaxKind.NonNullExpression,
|
|
9164
|
+
ts33.SyntaxKind.ElementAccessExpression,
|
|
9165
|
+
ts33.SyntaxKind.PropertyAccessExpression,
|
|
9166
|
+
ts33.SyntaxKind.ArrayLiteralExpression,
|
|
9167
|
+
ts33.SyntaxKind.ObjectLiteralExpression,
|
|
9168
|
+
ts33.SyntaxKind.StringLiteral,
|
|
9169
|
+
ts33.SyntaxKind.NumericLiteral,
|
|
9170
|
+
ts33.SyntaxKind.TrueKeyword,
|
|
9171
|
+
ts33.SyntaxKind.FalseKeyword,
|
|
9172
|
+
ts33.SyntaxKind.NullKeyword,
|
|
9173
|
+
ts33.SyntaxKind.UndefinedKeyword
|
|
9160
9174
|
]);
|
|
9161
9175
|
function tsCastToAny(expr) {
|
|
9162
9176
|
if (!SAFE_TO_CAST_WITHOUT_PARENS.has(expr.kind)) {
|
|
9163
|
-
expr =
|
|
9177
|
+
expr = ts33.factory.createParenthesizedExpression(expr);
|
|
9164
9178
|
}
|
|
9165
|
-
return
|
|
9179
|
+
return ts33.factory.createParenthesizedExpression(ts33.factory.createAsExpression(expr, ts33.factory.createKeywordTypeNode(ts33.SyntaxKind.AnyKeyword)));
|
|
9166
9180
|
}
|
|
9167
9181
|
function tsCreateElement(tagName) {
|
|
9168
|
-
const createElement =
|
|
9169
|
-
|
|
9182
|
+
const createElement = ts33.factory.createPropertyAccessExpression(
|
|
9183
|
+
ts33.factory.createIdentifier("document"),
|
|
9170
9184
|
"createElement"
|
|
9171
9185
|
);
|
|
9172
|
-
return
|
|
9186
|
+
return ts33.factory.createCallExpression(
|
|
9173
9187
|
createElement,
|
|
9174
9188
|
void 0,
|
|
9175
|
-
[
|
|
9189
|
+
[ts33.factory.createStringLiteral(tagName)]
|
|
9176
9190
|
);
|
|
9177
9191
|
}
|
|
9178
9192
|
function tsDeclareVariable(id, type) {
|
|
9179
9193
|
addExpressionIdentifier(type, ExpressionIdentifier.VARIABLE_AS_EXPRESSION);
|
|
9180
|
-
const initializer =
|
|
9181
|
-
const decl =
|
|
9194
|
+
const initializer = ts33.factory.createAsExpression(ts33.factory.createNonNullExpression(ts33.factory.createNull()), type);
|
|
9195
|
+
const decl = ts33.factory.createVariableDeclaration(
|
|
9182
9196
|
id,
|
|
9183
9197
|
void 0,
|
|
9184
9198
|
void 0,
|
|
9185
9199
|
initializer
|
|
9186
9200
|
);
|
|
9187
|
-
return
|
|
9201
|
+
return ts33.factory.createVariableStatement(
|
|
9188
9202
|
void 0,
|
|
9189
9203
|
[decl]
|
|
9190
9204
|
);
|
|
9191
9205
|
}
|
|
9192
9206
|
function tsCreateTypeQueryForCoercedInput(typeName, coercedInputName) {
|
|
9193
|
-
return
|
|
9207
|
+
return ts33.factory.createTypeQueryNode(ts33.factory.createQualifiedName(typeName, `ngAcceptInputType_${coercedInputName}`));
|
|
9194
9208
|
}
|
|
9195
9209
|
function tsCreateVariable(id, initializer, flags = null) {
|
|
9196
|
-
const decl =
|
|
9210
|
+
const decl = ts33.factory.createVariableDeclaration(
|
|
9197
9211
|
id,
|
|
9198
9212
|
void 0,
|
|
9199
9213
|
void 0,
|
|
9200
9214
|
initializer
|
|
9201
9215
|
);
|
|
9202
|
-
return
|
|
9216
|
+
return ts33.factory.createVariableStatement(
|
|
9203
9217
|
void 0,
|
|
9204
|
-
flags === null ? [decl] :
|
|
9218
|
+
flags === null ? [decl] : ts33.factory.createVariableDeclarationList([decl], flags)
|
|
9205
9219
|
);
|
|
9206
9220
|
}
|
|
9207
9221
|
function tsCallMethod(receiver, methodName, args = []) {
|
|
9208
|
-
const methodAccess =
|
|
9209
|
-
return
|
|
9222
|
+
const methodAccess = ts33.factory.createPropertyAccessExpression(receiver, methodName);
|
|
9223
|
+
return ts33.factory.createCallExpression(
|
|
9210
9224
|
methodAccess,
|
|
9211
9225
|
void 0,
|
|
9212
9226
|
args
|
|
9213
9227
|
);
|
|
9214
9228
|
}
|
|
9215
9229
|
function isAccessExpression(node) {
|
|
9216
|
-
return
|
|
9230
|
+
return ts33.isPropertyAccessExpression(node) || ts33.isElementAccessExpression(node);
|
|
9217
9231
|
}
|
|
9218
9232
|
function tsNumericExpression(value) {
|
|
9219
9233
|
if (value < 0) {
|
|
9220
|
-
const operand =
|
|
9221
|
-
return
|
|
9234
|
+
const operand = ts33.factory.createNumericLiteral(Math.abs(value));
|
|
9235
|
+
return ts33.factory.createPrefixUnaryExpression(ts33.SyntaxKind.MinusToken, operand);
|
|
9222
9236
|
}
|
|
9223
|
-
return
|
|
9237
|
+
return ts33.factory.createNumericLiteral(value);
|
|
9224
9238
|
}
|
|
9225
9239
|
|
|
9226
|
-
// bazel-out/
|
|
9240
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
9227
9241
|
import { ExpressionType as ExpressionType2, R3Identifiers as R3Identifiers3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
9228
|
-
import
|
|
9242
|
+
import ts36 from "typescript";
|
|
9229
9243
|
|
|
9230
|
-
// bazel-out/
|
|
9244
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
9231
9245
|
import { R3Identifiers as R3Identifiers2 } from "@angular/compiler";
|
|
9232
|
-
import
|
|
9246
|
+
import ts35 from "typescript";
|
|
9233
9247
|
|
|
9234
|
-
// bazel-out/
|
|
9235
|
-
import
|
|
9248
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_parameter_emitter.mjs
|
|
9249
|
+
import ts34 from "typescript";
|
|
9236
9250
|
var TypeParameterEmitter = class {
|
|
9237
9251
|
typeParameters;
|
|
9238
9252
|
reflector;
|
|
@@ -9271,11 +9285,11 @@ var TypeParameterEmitter = class {
|
|
|
9271
9285
|
return this.typeParameters.map((typeParam) => {
|
|
9272
9286
|
const constraint = typeParam.constraint !== void 0 ? emitter.emitType(typeParam.constraint) : void 0;
|
|
9273
9287
|
const defaultType = typeParam.default !== void 0 ? emitter.emitType(typeParam.default) : void 0;
|
|
9274
|
-
return
|
|
9288
|
+
return ts34.factory.updateTypeParameterDeclaration(typeParam, typeParam.modifiers, typeParam.name, constraint, defaultType);
|
|
9275
9289
|
});
|
|
9276
9290
|
}
|
|
9277
9291
|
resolveTypeReference(type) {
|
|
9278
|
-
const target =
|
|
9292
|
+
const target = ts34.isIdentifier(type.typeName) ? type.typeName : type.typeName.right;
|
|
9279
9293
|
const declaration = this.reflector.getDeclarationOfIdentifier(target);
|
|
9280
9294
|
if (declaration === null || declaration.node === null) {
|
|
9281
9295
|
return null;
|
|
@@ -9301,8 +9315,8 @@ var TypeParameterEmitter = class {
|
|
|
9301
9315
|
if (typeNode === null) {
|
|
9302
9316
|
return null;
|
|
9303
9317
|
}
|
|
9304
|
-
if (!
|
|
9305
|
-
throw new Error(`Expected TypeReferenceNode for emitted reference, got ${
|
|
9318
|
+
if (!ts34.isTypeReferenceNode(typeNode)) {
|
|
9319
|
+
throw new Error(`Expected TypeReferenceNode for emitted reference, got ${ts34.SyntaxKind[typeNode.kind]}.`);
|
|
9306
9320
|
}
|
|
9307
9321
|
return typeNode;
|
|
9308
9322
|
}
|
|
@@ -9311,7 +9325,7 @@ var TypeParameterEmitter = class {
|
|
|
9311
9325
|
}
|
|
9312
9326
|
};
|
|
9313
9327
|
|
|
9314
|
-
// bazel-out/
|
|
9328
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/tcb_util.mjs
|
|
9315
9329
|
var TCB_FILE_IMPORT_GRAPH_PREPARE_IDENTIFIERS = [
|
|
9316
9330
|
R3Identifiers2.InputSignalBrandWriteType
|
|
9317
9331
|
];
|
|
@@ -9347,14 +9361,14 @@ function getSourceMapping(shimSf, position, resolver, isDiagnosticRequest) {
|
|
|
9347
9361
|
}
|
|
9348
9362
|
function findTypeCheckBlock(file, id, isDiagnosticRequest) {
|
|
9349
9363
|
for (const stmt of file.statements) {
|
|
9350
|
-
if (
|
|
9364
|
+
if (ts35.isFunctionDeclaration(stmt) && getTemplateId(stmt, file, isDiagnosticRequest) === id) {
|
|
9351
9365
|
return stmt;
|
|
9352
9366
|
}
|
|
9353
9367
|
}
|
|
9354
9368
|
return null;
|
|
9355
9369
|
}
|
|
9356
9370
|
function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
|
|
9357
|
-
while (node !== void 0 && !
|
|
9371
|
+
while (node !== void 0 && !ts35.isFunctionDeclaration(node)) {
|
|
9358
9372
|
if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticsRequest) {
|
|
9359
9373
|
return null;
|
|
9360
9374
|
}
|
|
@@ -9371,7 +9385,7 @@ function findSourceLocation(node, sourceFile, isDiagnosticsRequest) {
|
|
|
9371
9385
|
return null;
|
|
9372
9386
|
}
|
|
9373
9387
|
function getTemplateId(node, sourceFile, isDiagnosticRequest) {
|
|
9374
|
-
while (!
|
|
9388
|
+
while (!ts35.isFunctionDeclaration(node)) {
|
|
9375
9389
|
if (hasIgnoreForDiagnosticsMarker(node, sourceFile) && isDiagnosticRequest) {
|
|
9376
9390
|
return null;
|
|
9377
9391
|
}
|
|
@@ -9381,8 +9395,8 @@ function getTemplateId(node, sourceFile, isDiagnosticRequest) {
|
|
|
9381
9395
|
}
|
|
9382
9396
|
}
|
|
9383
9397
|
const start = node.getFullStart();
|
|
9384
|
-
return
|
|
9385
|
-
if (kind !==
|
|
9398
|
+
return ts35.forEachLeadingCommentRange(sourceFile.text, start, (pos, end, kind) => {
|
|
9399
|
+
if (kind !== ts35.SyntaxKind.MultiLineCommentTrivia) {
|
|
9386
9400
|
return null;
|
|
9387
9401
|
}
|
|
9388
9402
|
const commentText = sourceFile.text.substring(pos + 2, end - 2);
|
|
@@ -9403,32 +9417,32 @@ function checkIfGenericTypeBoundsCanBeEmitted(node, reflector, env) {
|
|
|
9403
9417
|
return emitter.canEmit((ref) => env.canReferenceType(ref));
|
|
9404
9418
|
}
|
|
9405
9419
|
|
|
9406
|
-
// bazel-out/
|
|
9420
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_constructor.mjs
|
|
9407
9421
|
function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
|
|
9408
9422
|
const rawTypeArgs = typeParams !== void 0 ? generateGenericArgs(typeParams) : void 0;
|
|
9409
|
-
const rawType =
|
|
9423
|
+
const rawType = ts36.factory.createTypeReferenceNode(nodeTypeRef, rawTypeArgs);
|
|
9410
9424
|
const initParam = constructTypeCtorParameter(env, meta, rawType);
|
|
9411
9425
|
const typeParameters = typeParametersWithDefaultTypes(typeParams);
|
|
9412
9426
|
if (meta.body) {
|
|
9413
|
-
const fnType =
|
|
9427
|
+
const fnType = ts36.factory.createFunctionTypeNode(
|
|
9414
9428
|
typeParameters,
|
|
9415
9429
|
[initParam],
|
|
9416
9430
|
rawType
|
|
9417
9431
|
);
|
|
9418
|
-
const decl =
|
|
9432
|
+
const decl = ts36.factory.createVariableDeclaration(
|
|
9419
9433
|
meta.fnName,
|
|
9420
9434
|
void 0,
|
|
9421
9435
|
fnType,
|
|
9422
|
-
|
|
9436
|
+
ts36.factory.createNonNullExpression(ts36.factory.createNull())
|
|
9423
9437
|
);
|
|
9424
|
-
const declList =
|
|
9425
|
-
return
|
|
9438
|
+
const declList = ts36.factory.createVariableDeclarationList([decl], ts36.NodeFlags.Const);
|
|
9439
|
+
return ts36.factory.createVariableStatement(
|
|
9426
9440
|
void 0,
|
|
9427
9441
|
declList
|
|
9428
9442
|
);
|
|
9429
9443
|
} else {
|
|
9430
|
-
return
|
|
9431
|
-
[
|
|
9444
|
+
return ts36.factory.createFunctionDeclaration(
|
|
9445
|
+
[ts36.factory.createModifier(ts36.SyntaxKind.DeclareKeyword)],
|
|
9432
9446
|
void 0,
|
|
9433
9447
|
meta.fnName,
|
|
9434
9448
|
typeParameters,
|
|
@@ -9440,16 +9454,16 @@ function generateTypeCtorDeclarationFn(env, meta, nodeTypeRef, typeParams) {
|
|
|
9440
9454
|
}
|
|
9441
9455
|
function generateInlineTypeCtor(env, node, meta) {
|
|
9442
9456
|
const rawTypeArgs = node.typeParameters !== void 0 ? generateGenericArgs(node.typeParameters) : void 0;
|
|
9443
|
-
const rawType =
|
|
9457
|
+
const rawType = ts36.factory.createTypeReferenceNode(node.name, rawTypeArgs);
|
|
9444
9458
|
const initParam = constructTypeCtorParameter(env, meta, rawType);
|
|
9445
9459
|
let body = void 0;
|
|
9446
9460
|
if (meta.body) {
|
|
9447
|
-
body =
|
|
9448
|
-
|
|
9461
|
+
body = ts36.factory.createBlock([
|
|
9462
|
+
ts36.factory.createReturnStatement(ts36.factory.createNonNullExpression(ts36.factory.createNull()))
|
|
9449
9463
|
]);
|
|
9450
9464
|
}
|
|
9451
|
-
return
|
|
9452
|
-
[
|
|
9465
|
+
return ts36.factory.createMethodDeclaration(
|
|
9466
|
+
[ts36.factory.createModifier(ts36.SyntaxKind.StaticKeyword)],
|
|
9453
9467
|
void 0,
|
|
9454
9468
|
meta.fnName,
|
|
9455
9469
|
void 0,
|
|
@@ -9466,12 +9480,12 @@ function constructTypeCtorParameter(env, meta, rawType) {
|
|
|
9466
9480
|
const signalInputKeys = [];
|
|
9467
9481
|
for (const { classPropertyName, transform, isSignal } of meta.fields.inputs) {
|
|
9468
9482
|
if (isSignal) {
|
|
9469
|
-
signalInputKeys.push(
|
|
9483
|
+
signalInputKeys.push(ts36.factory.createLiteralTypeNode(ts36.factory.createStringLiteral(classPropertyName)));
|
|
9470
9484
|
} else if (!meta.coercedInputFields.has(classPropertyName)) {
|
|
9471
|
-
plainKeys.push(
|
|
9485
|
+
plainKeys.push(ts36.factory.createLiteralTypeNode(ts36.factory.createStringLiteral(classPropertyName)));
|
|
9472
9486
|
} else {
|
|
9473
9487
|
const coercionType = transform != null ? transform.type.node : tsCreateTypeQueryForCoercedInput(rawType.typeName, classPropertyName);
|
|
9474
|
-
coercedKeys.push(
|
|
9488
|
+
coercedKeys.push(ts36.factory.createPropertySignature(
|
|
9475
9489
|
void 0,
|
|
9476
9490
|
classPropertyName,
|
|
9477
9491
|
void 0,
|
|
@@ -9480,25 +9494,25 @@ function constructTypeCtorParameter(env, meta, rawType) {
|
|
|
9480
9494
|
}
|
|
9481
9495
|
}
|
|
9482
9496
|
if (plainKeys.length > 0) {
|
|
9483
|
-
const keyTypeUnion =
|
|
9484
|
-
initType =
|
|
9497
|
+
const keyTypeUnion = ts36.factory.createUnionTypeNode(plainKeys);
|
|
9498
|
+
initType = ts36.factory.createTypeReferenceNode("Pick", [rawType, keyTypeUnion]);
|
|
9485
9499
|
}
|
|
9486
9500
|
if (coercedKeys.length > 0) {
|
|
9487
|
-
const coercedLiteral =
|
|
9488
|
-
initType = initType !== null ?
|
|
9501
|
+
const coercedLiteral = ts36.factory.createTypeLiteralNode(coercedKeys);
|
|
9502
|
+
initType = initType !== null ? ts36.factory.createIntersectionTypeNode([initType, coercedLiteral]) : coercedLiteral;
|
|
9489
9503
|
}
|
|
9490
9504
|
if (signalInputKeys.length > 0) {
|
|
9491
|
-
const keyTypeUnion =
|
|
9505
|
+
const keyTypeUnion = ts36.factory.createUnionTypeNode(signalInputKeys);
|
|
9492
9506
|
const unwrapDirectiveSignalInputsExpr = env.referenceExternalType(R3Identifiers3.UnwrapDirectiveSignalInputs.moduleName, R3Identifiers3.UnwrapDirectiveSignalInputs.name, [
|
|
9493
9507
|
new ExpressionType2(new WrappedNodeExpr8(rawType)),
|
|
9494
9508
|
new ExpressionType2(new WrappedNodeExpr8(keyTypeUnion))
|
|
9495
9509
|
]);
|
|
9496
|
-
initType = initType !== null ?
|
|
9510
|
+
initType = initType !== null ? ts36.factory.createIntersectionTypeNode([initType, unwrapDirectiveSignalInputsExpr]) : unwrapDirectiveSignalInputsExpr;
|
|
9497
9511
|
}
|
|
9498
9512
|
if (initType === null) {
|
|
9499
|
-
initType =
|
|
9513
|
+
initType = ts36.factory.createTypeLiteralNode([]);
|
|
9500
9514
|
}
|
|
9501
|
-
return
|
|
9515
|
+
return ts36.factory.createParameterDeclaration(
|
|
9502
9516
|
void 0,
|
|
9503
9517
|
void 0,
|
|
9504
9518
|
"init",
|
|
@@ -9508,7 +9522,7 @@ function constructTypeCtorParameter(env, meta, rawType) {
|
|
|
9508
9522
|
);
|
|
9509
9523
|
}
|
|
9510
9524
|
function generateGenericArgs(params) {
|
|
9511
|
-
return params.map((param) =>
|
|
9525
|
+
return params.map((param) => ts36.factory.createTypeReferenceNode(param.name, void 0));
|
|
9512
9526
|
}
|
|
9513
9527
|
function requiresInlineTypeCtor(node, host, env) {
|
|
9514
9528
|
return !checkIfGenericTypeBoundsCanBeEmitted(node, host, env);
|
|
@@ -9519,14 +9533,14 @@ function typeParametersWithDefaultTypes(params) {
|
|
|
9519
9533
|
}
|
|
9520
9534
|
return params.map((param) => {
|
|
9521
9535
|
if (param.default === void 0) {
|
|
9522
|
-
return
|
|
9536
|
+
return ts36.factory.updateTypeParameterDeclaration(param, param.modifiers, param.name, param.constraint, ts36.factory.createKeywordTypeNode(ts36.SyntaxKind.AnyKeyword));
|
|
9523
9537
|
} else {
|
|
9524
9538
|
return param;
|
|
9525
9539
|
}
|
|
9526
9540
|
});
|
|
9527
9541
|
}
|
|
9528
9542
|
|
|
9529
|
-
// bazel-out/
|
|
9543
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/environment.mjs
|
|
9530
9544
|
var Environment = class extends ReferenceEmitEnvironment {
|
|
9531
9545
|
config;
|
|
9532
9546
|
nextIds = {
|
|
@@ -9549,13 +9563,13 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
9549
9563
|
}
|
|
9550
9564
|
if (requiresInlineTypeCtor(node, this.reflector, this)) {
|
|
9551
9565
|
const ref = this.reference(dirRef);
|
|
9552
|
-
const typeCtorExpr =
|
|
9566
|
+
const typeCtorExpr = ts37.factory.createPropertyAccessExpression(ref, "ngTypeCtor");
|
|
9553
9567
|
this.typeCtors.set(node, typeCtorExpr);
|
|
9554
9568
|
return typeCtorExpr;
|
|
9555
9569
|
} else {
|
|
9556
9570
|
const fnName = `_ctor${this.nextIds.typeCtor++}`;
|
|
9557
9571
|
const nodeTypeRef = this.referenceType(dirRef);
|
|
9558
|
-
if (!
|
|
9572
|
+
if (!ts37.isTypeReferenceNode(nodeTypeRef)) {
|
|
9559
9573
|
throw new Error(`Expected TypeReferenceNode from reference to ${dirRef.debugName}`);
|
|
9560
9574
|
}
|
|
9561
9575
|
const meta = {
|
|
@@ -9570,7 +9584,7 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
9570
9584
|
const typeParams = this.emitTypeParameters(node);
|
|
9571
9585
|
const typeCtor = generateTypeCtorDeclarationFn(this, meta, nodeTypeRef.typeName, typeParams);
|
|
9572
9586
|
this.typeCtorStatements.push(typeCtor);
|
|
9573
|
-
const fnId =
|
|
9587
|
+
const fnId = ts37.factory.createIdentifier(fnName);
|
|
9574
9588
|
this.typeCtors.set(node, fnId);
|
|
9575
9589
|
return fnId;
|
|
9576
9590
|
}
|
|
@@ -9580,7 +9594,7 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
9580
9594
|
return this.pipeInsts.get(ref.node);
|
|
9581
9595
|
}
|
|
9582
9596
|
const pipeType = this.referenceType(ref);
|
|
9583
|
-
const pipeInstId =
|
|
9597
|
+
const pipeInstId = ts37.factory.createIdentifier(`_pipe${this.nextIds.pipeInst++}`);
|
|
9584
9598
|
this.pipeInstStatements.push(tsDeclareVariable(pipeInstId, pipeType));
|
|
9585
9599
|
this.pipeInsts.set(ref.node, pipeInstId);
|
|
9586
9600
|
return pipeInstId;
|
|
@@ -9599,9 +9613,9 @@ var Environment = class extends ReferenceEmitEnvironment {
|
|
|
9599
9613
|
}
|
|
9600
9614
|
};
|
|
9601
9615
|
|
|
9602
|
-
// bazel-out/
|
|
9616
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/oob.mjs
|
|
9603
9617
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan2, TmplAstElement } from "@angular/compiler";
|
|
9604
|
-
import
|
|
9618
|
+
import ts38 from "typescript";
|
|
9605
9619
|
var OutOfBandDiagnosticRecorderImpl = class {
|
|
9606
9620
|
resolver;
|
|
9607
9621
|
_diagnostics = [];
|
|
@@ -9616,7 +9630,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
9616
9630
|
const mapping = this.resolver.getTemplateSourceMapping(id);
|
|
9617
9631
|
const value = ref.value.trim();
|
|
9618
9632
|
const errorMsg = `No directive found with exportAs '${value}'.`;
|
|
9619
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, ref.valueSpan || ref.sourceSpan,
|
|
9633
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, ref.valueSpan || ref.sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REFERENCE_TARGET), errorMsg));
|
|
9620
9634
|
}
|
|
9621
9635
|
missingPipe(id, ast) {
|
|
9622
9636
|
if (this.recordedPipes.has(ast)) {
|
|
@@ -9628,7 +9642,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
9628
9642
|
if (sourceSpan === null) {
|
|
9629
9643
|
throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
|
|
9630
9644
|
}
|
|
9631
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan,
|
|
9645
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_PIPE), errorMsg));
|
|
9632
9646
|
this.recordedPipes.add(ast);
|
|
9633
9647
|
}
|
|
9634
9648
|
deferredPipeUsedEagerly(id, ast) {
|
|
@@ -9641,7 +9655,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
9641
9655
|
if (sourceSpan === null) {
|
|
9642
9656
|
throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${ast.name}'.`);
|
|
9643
9657
|
}
|
|
9644
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan,
|
|
9658
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_PIPE_USED_EAGERLY), errorMsg));
|
|
9645
9659
|
this.recordedPipes.add(ast);
|
|
9646
9660
|
}
|
|
9647
9661
|
deferredComponentUsedEagerly(id, element) {
|
|
@@ -9653,12 +9667,12 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
9653
9667
|
if (sourceSpan === null) {
|
|
9654
9668
|
throw new Error(`Assertion failure: no SourceLocation found for usage of pipe '${element.name}'.`);
|
|
9655
9669
|
}
|
|
9656
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan,
|
|
9670
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DEFERRED_DIRECTIVE_USED_EAGERLY), errorMsg));
|
|
9657
9671
|
}
|
|
9658
9672
|
duplicateTemplateVar(id, variable, firstDecl) {
|
|
9659
9673
|
const mapping = this.resolver.getTemplateSourceMapping(id);
|
|
9660
9674
|
const errorMsg = `Cannot redeclare variable '${variable.name}' as it was previously declared elsewhere for the same template.`;
|
|
9661
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, variable.sourceSpan,
|
|
9675
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, variable.sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.DUPLICATE_VARIABLE_DECLARATION), errorMsg, [
|
|
9662
9676
|
{
|
|
9663
9677
|
text: `The variable '${firstDecl.name}' was first declared here.`,
|
|
9664
9678
|
start: firstDecl.sourceSpan.start.offset,
|
|
@@ -9699,7 +9713,7 @@ var OutOfBandDiagnosticRecorderImpl = class {
|
|
|
9699
9713
|
const message = `This structural directive supports advanced type inference, but the current compiler configuration prevents its usage. The variable ${varIdentification} will have type 'any' as a result.
|
|
9700
9714
|
|
|
9701
9715
|
Consider enabling the 'strictTemplates' option in your tsconfig.json for better type inference within this template.`;
|
|
9702
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, diagnosticVar.keySpan,
|
|
9716
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, diagnosticVar.keySpan, ts38.DiagnosticCategory.Suggestion, ngErrorCode(ErrorCode.SUGGEST_SUBOPTIMAL_TYPE_INFERENCE), message));
|
|
9703
9717
|
}
|
|
9704
9718
|
splitTwoWayBinding(id, input, output, inputConsumer, outputConsumer) {
|
|
9705
9719
|
const mapping = this.resolver.getTemplateSourceMapping(id);
|
|
@@ -9733,11 +9747,11 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
|
|
|
9733
9747
|
sourceFile: outputConsumer.name.getSourceFile()
|
|
9734
9748
|
});
|
|
9735
9749
|
}
|
|
9736
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, input.keySpan,
|
|
9750
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, input.keySpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.SPLIT_TWO_WAY_BINDING), errorMsg, relatedMessages));
|
|
9737
9751
|
}
|
|
9738
9752
|
missingRequiredInputs(id, element, directiveName, isComponent, inputAliases) {
|
|
9739
9753
|
const message = `Required input${inputAliases.length === 1 ? "" : "s"} ${inputAliases.map((n2) => `'${n2}'`).join(", ")} from ${isComponent ? "component" : "directive"} ${directiveName} must be specified.`;
|
|
9740
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), element.startSourceSpan,
|
|
9754
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), element.startSourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.MISSING_REQUIRED_INPUTS), message));
|
|
9741
9755
|
}
|
|
9742
9756
|
illegalForLoopTrackAccess(id, block, access) {
|
|
9743
9757
|
const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, access.sourceSpan);
|
|
@@ -9746,7 +9760,7 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
|
|
|
9746
9760
|
}
|
|
9747
9761
|
const messageVars = [block.item, ...block.contextVariables.filter((v) => v.value === "$index")].map((v) => `'${v.name}'`).join(", ");
|
|
9748
9762
|
const message = `Cannot access '${access.name}' inside of a track expression. Only ${messageVars} and properties on the containing component are available to this expression.`;
|
|
9749
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan,
|
|
9763
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_FOR_LOOP_TRACK_ACCESS), message));
|
|
9750
9764
|
}
|
|
9751
9765
|
inaccessibleDeferredTriggerElement(id, trigger) {
|
|
9752
9766
|
let message;
|
|
@@ -9757,7 +9771,7 @@ Consider enabling the 'strictTemplates' option in your tsconfig.json for better
|
|
|
9757
9771
|
Check that an element with #${trigger.reference} exists in the same template and it's accessible from the @defer block.
|
|
9758
9772
|
Deferred blocks can only access triggers in same view, a parent embedded view or the root view of the @placeholder block.`;
|
|
9759
9773
|
}
|
|
9760
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), trigger.sourceSpan,
|
|
9774
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), trigger.sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.INACCESSIBLE_DEFERRED_TRIGGER_ELEMENT), message));
|
|
9761
9775
|
}
|
|
9762
9776
|
controlFlowPreventingContentProjection(id, category, projectionNode, componentName, slotSelector, controlFlowNode, preservesWhitespaces) {
|
|
9763
9777
|
const blockName = controlFlowNode.nameSpan.toString().trim();
|
|
@@ -9779,19 +9793,19 @@ Deferred blocks can only access triggers in same view, a parent embedded view or
|
|
|
9779
9793
|
if (sourceSpan === null) {
|
|
9780
9794
|
throw new Error(`Assertion failure: no SourceLocation found for property write.`);
|
|
9781
9795
|
}
|
|
9782
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan,
|
|
9796
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.ILLEGAL_LET_WRITE), `Cannot assign to @let declaration '${target.name}'.`));
|
|
9783
9797
|
}
|
|
9784
9798
|
letUsedBeforeDefinition(id, node, target) {
|
|
9785
9799
|
const sourceSpan = this.resolver.toTemplateParseSourceSpan(id, node.sourceSpan);
|
|
9786
9800
|
if (sourceSpan === null) {
|
|
9787
9801
|
throw new Error(`Assertion failure: no SourceLocation found for property read.`);
|
|
9788
9802
|
}
|
|
9789
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan,
|
|
9803
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, this.resolver.getTemplateSourceMapping(id), sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.LET_USED_BEFORE_DEFINITION), `Cannot read @let declaration '${target.name}' before it has been defined.`));
|
|
9790
9804
|
}
|
|
9791
9805
|
conflictingDeclaration(id, decl) {
|
|
9792
9806
|
const mapping = this.resolver.getTemplateSourceMapping(id);
|
|
9793
9807
|
const errorMsg = `Cannot declare @let called '${decl.name}' as there is another symbol in the template with the same name.`;
|
|
9794
|
-
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, decl.sourceSpan,
|
|
9808
|
+
this._diagnostics.push(makeTemplateDiagnostic(id, mapping, decl.sourceSpan, ts38.DiagnosticCategory.Error, ngErrorCode(ErrorCode.CONFLICTING_LET_DECLARATION), errorMsg));
|
|
9795
9809
|
}
|
|
9796
9810
|
};
|
|
9797
9811
|
function makeInlineDiagnostic(id, code, node, messageText, relatedInformation) {
|
|
@@ -9802,8 +9816,8 @@ function makeInlineDiagnostic(id, code, node, messageText, relatedInformation) {
|
|
|
9802
9816
|
};
|
|
9803
9817
|
}
|
|
9804
9818
|
|
|
9805
|
-
// bazel-out/
|
|
9806
|
-
import
|
|
9819
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/shim.mjs
|
|
9820
|
+
import ts39 from "typescript";
|
|
9807
9821
|
var TypeCheckShimGenerator = class {
|
|
9808
9822
|
extensionPrefix = "ngtypecheck";
|
|
9809
9823
|
shouldEmit = false;
|
|
@@ -9811,25 +9825,25 @@ var TypeCheckShimGenerator = class {
|
|
|
9811
9825
|
if (priorShimSf !== null) {
|
|
9812
9826
|
return priorShimSf;
|
|
9813
9827
|
}
|
|
9814
|
-
return
|
|
9828
|
+
return ts39.createSourceFile(genFilePath, "export const USED_FOR_NG_TYPE_CHECKING = true;", ts39.ScriptTarget.Latest, true, ts39.ScriptKind.TS);
|
|
9815
9829
|
}
|
|
9816
9830
|
static shimFor(fileName) {
|
|
9817
9831
|
return absoluteFrom(fileName.replace(/\.tsx?$/, ".ngtypecheck.ts"));
|
|
9818
9832
|
}
|
|
9819
9833
|
};
|
|
9820
9834
|
|
|
9821
|
-
// bazel-out/
|
|
9835
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
9822
9836
|
import { BindingPipe, BindingType, Call as Call2, createCssSelectorFromNode, CssSelector as CssSelector2, DYNAMIC_TYPE, ImplicitReceiver as ImplicitReceiver2, ParsedEventType, PropertyRead as PropertyRead3, PropertyWrite as PropertyWrite2, R3Identifiers as R3Identifiers4, SafeCall, SafePropertyRead as SafePropertyRead3, SelectorMatcher as SelectorMatcher2, ThisReceiver, TmplAstBoundAttribute, TmplAstBoundText, TmplAstContent, TmplAstDeferredBlock, TmplAstElement as TmplAstElement2, TmplAstForLoopBlock, TmplAstIcu, TmplAstIfBlock, TmplAstIfBlockBranch, TmplAstLetDeclaration as TmplAstLetDeclaration2, TmplAstReference as TmplAstReference2, TmplAstSwitchBlock, TmplAstTemplate, TmplAstText, TmplAstTextAttribute as TmplAstTextAttribute2, TmplAstVariable, TransplantedType } from "@angular/compiler";
|
|
9823
|
-
import
|
|
9837
|
+
import ts42 from "typescript";
|
|
9824
9838
|
|
|
9825
|
-
// bazel-out/
|
|
9839
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/diagnostics.mjs
|
|
9826
9840
|
import { AbsoluteSourceSpan as AbsoluteSourceSpan3 } from "@angular/compiler";
|
|
9827
|
-
import
|
|
9841
|
+
import ts40 from "typescript";
|
|
9828
9842
|
function wrapForDiagnostics(expr) {
|
|
9829
|
-
return
|
|
9843
|
+
return ts40.factory.createParenthesizedExpression(expr);
|
|
9830
9844
|
}
|
|
9831
9845
|
function wrapForTypeChecker(expr) {
|
|
9832
|
-
return
|
|
9846
|
+
return ts40.factory.createParenthesizedExpression(expr);
|
|
9833
9847
|
}
|
|
9834
9848
|
function addParseSpanInfo(node, span) {
|
|
9835
9849
|
let commentText;
|
|
@@ -9838,15 +9852,15 @@ function addParseSpanInfo(node, span) {
|
|
|
9838
9852
|
} else {
|
|
9839
9853
|
commentText = `${span.start.offset},${span.end.offset}`;
|
|
9840
9854
|
}
|
|
9841
|
-
|
|
9855
|
+
ts40.addSyntheticTrailingComment(
|
|
9842
9856
|
node,
|
|
9843
|
-
|
|
9857
|
+
ts40.SyntaxKind.MultiLineCommentTrivia,
|
|
9844
9858
|
commentText,
|
|
9845
9859
|
false
|
|
9846
9860
|
);
|
|
9847
9861
|
}
|
|
9848
9862
|
function addTypeCheckId(tcb, id) {
|
|
9849
|
-
|
|
9863
|
+
ts40.addSyntheticLeadingComment(tcb, ts40.SyntaxKind.MultiLineCommentTrivia, id, true);
|
|
9850
9864
|
}
|
|
9851
9865
|
function shouldReportDiagnostic(diagnostic) {
|
|
9852
9866
|
const { code } = diagnostic;
|
|
@@ -9878,34 +9892,34 @@ function translateDiagnostic(diagnostic, resolver) {
|
|
|
9878
9892
|
return makeTemplateDiagnostic(sourceLocation.id, templateSourceMapping, span, diagnostic.category, diagnostic.code, diagnostic.messageText);
|
|
9879
9893
|
}
|
|
9880
9894
|
|
|
9881
|
-
// bazel-out/
|
|
9895
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/expression.mjs
|
|
9882
9896
|
import { ASTWithSource, Call, EmptyExpr as EmptyExpr2, PropertyRead as PropertyRead2, SafeKeyedRead, SafePropertyRead as SafePropertyRead2 } from "@angular/compiler";
|
|
9883
|
-
import
|
|
9884
|
-
var ANY_EXPRESSION =
|
|
9885
|
-
var UNDEFINED =
|
|
9897
|
+
import ts41 from "typescript";
|
|
9898
|
+
var ANY_EXPRESSION = ts41.factory.createAsExpression(ts41.factory.createNumericLiteral("0"), ts41.factory.createKeywordTypeNode(ts41.SyntaxKind.AnyKeyword));
|
|
9899
|
+
var UNDEFINED = ts41.factory.createIdentifier("undefined");
|
|
9886
9900
|
var UNARY_OPS = /* @__PURE__ */ new Map([
|
|
9887
|
-
["+",
|
|
9888
|
-
["-",
|
|
9901
|
+
["+", ts41.SyntaxKind.PlusToken],
|
|
9902
|
+
["-", ts41.SyntaxKind.MinusToken]
|
|
9889
9903
|
]);
|
|
9890
9904
|
var BINARY_OPS = /* @__PURE__ */ new Map([
|
|
9891
|
-
["+",
|
|
9892
|
-
["-",
|
|
9893
|
-
["<",
|
|
9894
|
-
[">",
|
|
9895
|
-
["<=",
|
|
9896
|
-
[">=",
|
|
9897
|
-
["==",
|
|
9898
|
-
["===",
|
|
9899
|
-
["*",
|
|
9900
|
-
["/",
|
|
9901
|
-
["%",
|
|
9902
|
-
["!=",
|
|
9903
|
-
["!==",
|
|
9904
|
-
["||",
|
|
9905
|
-
["&&",
|
|
9906
|
-
["&",
|
|
9907
|
-
["|",
|
|
9908
|
-
["??",
|
|
9905
|
+
["+", ts41.SyntaxKind.PlusToken],
|
|
9906
|
+
["-", ts41.SyntaxKind.MinusToken],
|
|
9907
|
+
["<", ts41.SyntaxKind.LessThanToken],
|
|
9908
|
+
[">", ts41.SyntaxKind.GreaterThanToken],
|
|
9909
|
+
["<=", ts41.SyntaxKind.LessThanEqualsToken],
|
|
9910
|
+
[">=", ts41.SyntaxKind.GreaterThanEqualsToken],
|
|
9911
|
+
["==", ts41.SyntaxKind.EqualsEqualsToken],
|
|
9912
|
+
["===", ts41.SyntaxKind.EqualsEqualsEqualsToken],
|
|
9913
|
+
["*", ts41.SyntaxKind.AsteriskToken],
|
|
9914
|
+
["/", ts41.SyntaxKind.SlashToken],
|
|
9915
|
+
["%", ts41.SyntaxKind.PercentToken],
|
|
9916
|
+
["!=", ts41.SyntaxKind.ExclamationEqualsToken],
|
|
9917
|
+
["!==", ts41.SyntaxKind.ExclamationEqualsEqualsToken],
|
|
9918
|
+
["||", ts41.SyntaxKind.BarBarToken],
|
|
9919
|
+
["&&", ts41.SyntaxKind.AmpersandAmpersandToken],
|
|
9920
|
+
["&", ts41.SyntaxKind.AmpersandToken],
|
|
9921
|
+
["|", ts41.SyntaxKind.BarToken],
|
|
9922
|
+
["??", ts41.SyntaxKind.QuestionQuestionToken]
|
|
9909
9923
|
]);
|
|
9910
9924
|
function astToTypescript(ast, maybeResolve, config) {
|
|
9911
9925
|
const translator = new AstTranslator(maybeResolve, config);
|
|
@@ -9923,7 +9937,7 @@ var AstTranslator = class {
|
|
|
9923
9937
|
ast = ast.ast;
|
|
9924
9938
|
}
|
|
9925
9939
|
if (ast instanceof EmptyExpr2) {
|
|
9926
|
-
const res =
|
|
9940
|
+
const res = ts41.factory.createIdentifier("undefined");
|
|
9927
9941
|
addParseSpanInfo(res, ast.sourceSpan);
|
|
9928
9942
|
return res;
|
|
9929
9943
|
}
|
|
@@ -9939,7 +9953,7 @@ var AstTranslator = class {
|
|
|
9939
9953
|
if (op === void 0) {
|
|
9940
9954
|
throw new Error(`Unsupported Unary.operator: ${ast.operator}`);
|
|
9941
9955
|
}
|
|
9942
|
-
const node = wrapForDiagnostics(
|
|
9956
|
+
const node = wrapForDiagnostics(ts41.factory.createPrefixUnaryExpression(op, expr));
|
|
9943
9957
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
9944
9958
|
return node;
|
|
9945
9959
|
}
|
|
@@ -9950,13 +9964,13 @@ var AstTranslator = class {
|
|
|
9950
9964
|
if (op === void 0) {
|
|
9951
9965
|
throw new Error(`Unsupported Binary.operation: ${ast.operation}`);
|
|
9952
9966
|
}
|
|
9953
|
-
const node =
|
|
9967
|
+
const node = ts41.factory.createBinaryExpression(lhs, op, rhs);
|
|
9954
9968
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
9955
9969
|
return node;
|
|
9956
9970
|
}
|
|
9957
9971
|
visitChain(ast) {
|
|
9958
9972
|
const elements = ast.expressions.map((expr) => this.translate(expr));
|
|
9959
|
-
const node = wrapForDiagnostics(
|
|
9973
|
+
const node = wrapForDiagnostics(ts41.factory.createCommaListExpression(elements));
|
|
9960
9974
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
9961
9975
|
return node;
|
|
9962
9976
|
}
|
|
@@ -9964,7 +9978,7 @@ var AstTranslator = class {
|
|
|
9964
9978
|
const condExpr = this.translate(ast.condition);
|
|
9965
9979
|
const trueExpr = this.translate(ast.trueExp);
|
|
9966
9980
|
const falseExpr = wrapForTypeChecker(this.translate(ast.falseExp));
|
|
9967
|
-
const node =
|
|
9981
|
+
const node = ts41.factory.createParenthesizedExpression(ts41.factory.createConditionalExpression(condExpr, void 0, trueExpr, void 0, falseExpr));
|
|
9968
9982
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
9969
9983
|
return node;
|
|
9970
9984
|
}
|
|
@@ -9975,26 +9989,26 @@ var AstTranslator = class {
|
|
|
9975
9989
|
throw new Error("Method not implemented.");
|
|
9976
9990
|
}
|
|
9977
9991
|
visitInterpolation(ast) {
|
|
9978
|
-
return ast.expressions.reduce((lhs, ast2) =>
|
|
9992
|
+
return ast.expressions.reduce((lhs, ast2) => ts41.factory.createBinaryExpression(lhs, ts41.SyntaxKind.PlusToken, wrapForTypeChecker(this.translate(ast2))), ts41.factory.createStringLiteral(""));
|
|
9979
9993
|
}
|
|
9980
9994
|
visitKeyedRead(ast) {
|
|
9981
9995
|
const receiver = wrapForDiagnostics(this.translate(ast.receiver));
|
|
9982
9996
|
const key = this.translate(ast.key);
|
|
9983
|
-
const node =
|
|
9997
|
+
const node = ts41.factory.createElementAccessExpression(receiver, key);
|
|
9984
9998
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
9985
9999
|
return node;
|
|
9986
10000
|
}
|
|
9987
10001
|
visitKeyedWrite(ast) {
|
|
9988
10002
|
const receiver = wrapForDiagnostics(this.translate(ast.receiver));
|
|
9989
|
-
const left =
|
|
10003
|
+
const left = ts41.factory.createElementAccessExpression(receiver, this.translate(ast.key));
|
|
9990
10004
|
const right = wrapForTypeChecker(this.translate(ast.value));
|
|
9991
|
-
const node = wrapForDiagnostics(
|
|
10005
|
+
const node = wrapForDiagnostics(ts41.factory.createBinaryExpression(left, ts41.SyntaxKind.EqualsToken, right));
|
|
9992
10006
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
9993
10007
|
return node;
|
|
9994
10008
|
}
|
|
9995
10009
|
visitLiteralArray(ast) {
|
|
9996
10010
|
const elements = ast.expressions.map((expr) => this.translate(expr));
|
|
9997
|
-
const literal3 =
|
|
10011
|
+
const literal3 = ts41.factory.createArrayLiteralExpression(elements);
|
|
9998
10012
|
const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
|
|
9999
10013
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
10000
10014
|
return node;
|
|
@@ -10002,9 +10016,9 @@ var AstTranslator = class {
|
|
|
10002
10016
|
visitLiteralMap(ast) {
|
|
10003
10017
|
const properties = ast.keys.map(({ key }, idx) => {
|
|
10004
10018
|
const value = this.translate(ast.values[idx]);
|
|
10005
|
-
return
|
|
10019
|
+
return ts41.factory.createPropertyAssignment(ts41.factory.createStringLiteral(key), value);
|
|
10006
10020
|
});
|
|
10007
|
-
const literal3 =
|
|
10021
|
+
const literal3 = ts41.factory.createObjectLiteralExpression(properties, true);
|
|
10008
10022
|
const node = this.config.strictLiteralTypes ? literal3 : tsCastToAny(literal3);
|
|
10009
10023
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
10010
10024
|
return node;
|
|
@@ -10012,15 +10026,15 @@ var AstTranslator = class {
|
|
|
10012
10026
|
visitLiteralPrimitive(ast) {
|
|
10013
10027
|
let node;
|
|
10014
10028
|
if (ast.value === void 0) {
|
|
10015
|
-
node =
|
|
10029
|
+
node = ts41.factory.createIdentifier("undefined");
|
|
10016
10030
|
} else if (ast.value === null) {
|
|
10017
|
-
node =
|
|
10031
|
+
node = ts41.factory.createNull();
|
|
10018
10032
|
} else if (typeof ast.value === "string") {
|
|
10019
|
-
node =
|
|
10033
|
+
node = ts41.factory.createStringLiteral(ast.value);
|
|
10020
10034
|
} else if (typeof ast.value === "number") {
|
|
10021
10035
|
node = tsNumericExpression(ast.value);
|
|
10022
10036
|
} else if (typeof ast.value === "boolean") {
|
|
10023
|
-
node = ast.value ?
|
|
10037
|
+
node = ast.value ? ts41.factory.createTrue() : ts41.factory.createFalse();
|
|
10024
10038
|
} else {
|
|
10025
10039
|
throw Error(`Unsupported AST value of type ${typeof ast.value}`);
|
|
10026
10040
|
}
|
|
@@ -10029,7 +10043,7 @@ var AstTranslator = class {
|
|
|
10029
10043
|
}
|
|
10030
10044
|
visitNonNullAssert(ast) {
|
|
10031
10045
|
const expr = wrapForDiagnostics(this.translate(ast.expression));
|
|
10032
|
-
const node =
|
|
10046
|
+
const node = ts41.factory.createNonNullExpression(expr);
|
|
10033
10047
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
10034
10048
|
return node;
|
|
10035
10049
|
}
|
|
@@ -10038,19 +10052,19 @@ var AstTranslator = class {
|
|
|
10038
10052
|
}
|
|
10039
10053
|
visitPrefixNot(ast) {
|
|
10040
10054
|
const expression = wrapForDiagnostics(this.translate(ast.expression));
|
|
10041
|
-
const node =
|
|
10055
|
+
const node = ts41.factory.createLogicalNot(expression);
|
|
10042
10056
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
10043
10057
|
return node;
|
|
10044
10058
|
}
|
|
10045
10059
|
visitTypeofExpression(ast) {
|
|
10046
10060
|
const expression = wrapForDiagnostics(this.translate(ast.expression));
|
|
10047
|
-
const node =
|
|
10061
|
+
const node = ts41.factory.createTypeOfExpression(expression);
|
|
10048
10062
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
10049
10063
|
return node;
|
|
10050
10064
|
}
|
|
10051
10065
|
visitPropertyRead(ast) {
|
|
10052
10066
|
const receiver = wrapForDiagnostics(this.translate(ast.receiver));
|
|
10053
|
-
const name =
|
|
10067
|
+
const name = ts41.factory.createPropertyAccessExpression(receiver, ast.name);
|
|
10054
10068
|
addParseSpanInfo(name, ast.nameSpan);
|
|
10055
10069
|
const node = wrapForDiagnostics(name);
|
|
10056
10070
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
@@ -10058,12 +10072,12 @@ var AstTranslator = class {
|
|
|
10058
10072
|
}
|
|
10059
10073
|
visitPropertyWrite(ast) {
|
|
10060
10074
|
const receiver = wrapForDiagnostics(this.translate(ast.receiver));
|
|
10061
|
-
const left =
|
|
10075
|
+
const left = ts41.factory.createPropertyAccessExpression(receiver, ast.name);
|
|
10062
10076
|
addParseSpanInfo(left, ast.nameSpan);
|
|
10063
10077
|
const leftWithPath = wrapForDiagnostics(left);
|
|
10064
10078
|
addParseSpanInfo(leftWithPath, ast.sourceSpan);
|
|
10065
10079
|
const right = wrapForTypeChecker(this.translate(ast.value));
|
|
10066
|
-
const node = wrapForDiagnostics(
|
|
10080
|
+
const node = wrapForDiagnostics(ts41.factory.createBinaryExpression(leftWithPath, ts41.SyntaxKind.EqualsToken, right));
|
|
10067
10081
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
10068
10082
|
return node;
|
|
10069
10083
|
}
|
|
@@ -10071,13 +10085,13 @@ var AstTranslator = class {
|
|
|
10071
10085
|
let node;
|
|
10072
10086
|
const receiver = wrapForDiagnostics(this.translate(ast.receiver));
|
|
10073
10087
|
if (this.config.strictSafeNavigationTypes) {
|
|
10074
|
-
const expr =
|
|
10088
|
+
const expr = ts41.factory.createPropertyAccessExpression(ts41.factory.createNonNullExpression(receiver), ast.name);
|
|
10075
10089
|
addParseSpanInfo(expr, ast.nameSpan);
|
|
10076
|
-
node =
|
|
10090
|
+
node = ts41.factory.createParenthesizedExpression(ts41.factory.createConditionalExpression(ANY_EXPRESSION, void 0, expr, void 0, UNDEFINED));
|
|
10077
10091
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
10078
|
-
node =
|
|
10092
|
+
node = ts41.factory.createPropertyAccessExpression(tsCastToAny(receiver), ast.name);
|
|
10079
10093
|
} else {
|
|
10080
|
-
const expr =
|
|
10094
|
+
const expr = ts41.factory.createPropertyAccessExpression(ts41.factory.createNonNullExpression(receiver), ast.name);
|
|
10081
10095
|
addParseSpanInfo(expr, ast.nameSpan);
|
|
10082
10096
|
node = tsCastToAny(expr);
|
|
10083
10097
|
}
|
|
@@ -10089,13 +10103,13 @@ var AstTranslator = class {
|
|
|
10089
10103
|
const key = this.translate(ast.key);
|
|
10090
10104
|
let node;
|
|
10091
10105
|
if (this.config.strictSafeNavigationTypes) {
|
|
10092
|
-
const expr =
|
|
10106
|
+
const expr = ts41.factory.createElementAccessExpression(ts41.factory.createNonNullExpression(receiver), key);
|
|
10093
10107
|
addParseSpanInfo(expr, ast.sourceSpan);
|
|
10094
|
-
node =
|
|
10108
|
+
node = ts41.factory.createParenthesizedExpression(ts41.factory.createConditionalExpression(ANY_EXPRESSION, void 0, expr, void 0, UNDEFINED));
|
|
10095
10109
|
} else if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
10096
|
-
node =
|
|
10110
|
+
node = ts41.factory.createElementAccessExpression(tsCastToAny(receiver), key);
|
|
10097
10111
|
} else {
|
|
10098
|
-
const expr =
|
|
10112
|
+
const expr = ts41.factory.createElementAccessExpression(ts41.factory.createNonNullExpression(receiver), key);
|
|
10099
10113
|
addParseSpanInfo(expr, ast.sourceSpan);
|
|
10100
10114
|
node = tsCastToAny(expr);
|
|
10101
10115
|
}
|
|
@@ -10112,7 +10126,7 @@ var AstTranslator = class {
|
|
|
10112
10126
|
expr = resolved;
|
|
10113
10127
|
} else {
|
|
10114
10128
|
const propertyReceiver = wrapForDiagnostics(this.translate(receiver.receiver));
|
|
10115
|
-
expr =
|
|
10129
|
+
expr = ts41.factory.createPropertyAccessExpression(propertyReceiver, receiver.name);
|
|
10116
10130
|
addParseSpanInfo(expr, receiver.nameSpan);
|
|
10117
10131
|
}
|
|
10118
10132
|
} else {
|
|
@@ -10122,7 +10136,7 @@ var AstTranslator = class {
|
|
|
10122
10136
|
if (ast.receiver instanceof SafePropertyRead2 || ast.receiver instanceof SafeKeyedRead) {
|
|
10123
10137
|
node = this.convertToSafeCall(ast, expr, args);
|
|
10124
10138
|
} else {
|
|
10125
|
-
node =
|
|
10139
|
+
node = ts41.factory.createCallExpression(expr, void 0, args);
|
|
10126
10140
|
}
|
|
10127
10141
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
10128
10142
|
return node;
|
|
@@ -10139,18 +10153,18 @@ var AstTranslator = class {
|
|
|
10139
10153
|
const head = ast.elements[0];
|
|
10140
10154
|
let result;
|
|
10141
10155
|
if (length === 1) {
|
|
10142
|
-
result =
|
|
10156
|
+
result = ts41.factory.createNoSubstitutionTemplateLiteral(head.text);
|
|
10143
10157
|
} else {
|
|
10144
10158
|
const spans = [];
|
|
10145
10159
|
const tailIndex = length - 1;
|
|
10146
10160
|
for (let i = 1; i < tailIndex; i++) {
|
|
10147
|
-
const middle =
|
|
10148
|
-
spans.push(
|
|
10161
|
+
const middle = ts41.factory.createTemplateMiddle(ast.elements[i].text);
|
|
10162
|
+
spans.push(ts41.factory.createTemplateSpan(this.translate(ast.expressions[i - 1]), middle));
|
|
10149
10163
|
}
|
|
10150
10164
|
const resolvedExpression = this.translate(ast.expressions[tailIndex - 1]);
|
|
10151
|
-
const templateTail =
|
|
10152
|
-
spans.push(
|
|
10153
|
-
result =
|
|
10165
|
+
const templateTail = ts41.factory.createTemplateTail(ast.elements[tailIndex].text);
|
|
10166
|
+
spans.push(ts41.factory.createTemplateSpan(resolvedExpression, templateTail));
|
|
10167
|
+
result = ts41.factory.createTemplateExpression(ts41.factory.createTemplateHead(head.text), spans);
|
|
10154
10168
|
}
|
|
10155
10169
|
return result;
|
|
10156
10170
|
}
|
|
@@ -10159,13 +10173,13 @@ var AstTranslator = class {
|
|
|
10159
10173
|
}
|
|
10160
10174
|
convertToSafeCall(ast, expr, args) {
|
|
10161
10175
|
if (this.config.strictSafeNavigationTypes) {
|
|
10162
|
-
const call =
|
|
10163
|
-
return
|
|
10176
|
+
const call = ts41.factory.createCallExpression(ts41.factory.createNonNullExpression(expr), void 0, args);
|
|
10177
|
+
return ts41.factory.createParenthesizedExpression(ts41.factory.createConditionalExpression(ANY_EXPRESSION, void 0, call, void 0, UNDEFINED));
|
|
10164
10178
|
}
|
|
10165
10179
|
if (VeSafeLhsInferenceBugDetector.veWillInferAnyFor(ast)) {
|
|
10166
|
-
return
|
|
10180
|
+
return ts41.factory.createCallExpression(tsCastToAny(expr), void 0, args);
|
|
10167
10181
|
}
|
|
10168
|
-
return tsCastToAny(
|
|
10182
|
+
return tsCastToAny(ts41.factory.createCallExpression(ts41.factory.createNonNullExpression(expr), void 0, args));
|
|
10169
10183
|
}
|
|
10170
10184
|
};
|
|
10171
10185
|
var _VeSafeLhsInferenceBugDetector = class {
|
|
@@ -10249,7 +10263,7 @@ var _VeSafeLhsInferenceBugDetector = class {
|
|
|
10249
10263
|
var VeSafeLhsInferenceBugDetector = _VeSafeLhsInferenceBugDetector;
|
|
10250
10264
|
__publicField(VeSafeLhsInferenceBugDetector, "SINGLETON", new _VeSafeLhsInferenceBugDetector());
|
|
10251
10265
|
|
|
10252
|
-
// bazel-out/
|
|
10266
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_block.mjs
|
|
10253
10267
|
var TcbGenericContextBehavior;
|
|
10254
10268
|
(function(TcbGenericContextBehavior2) {
|
|
10255
10269
|
TcbGenericContextBehavior2[TcbGenericContextBehavior2["UseEmitter"] = 0] = "UseEmitter";
|
|
@@ -10260,7 +10274,7 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
|
|
|
10260
10274
|
const tcb = new Context(env, domSchemaChecker, oobRecorder, meta.id, meta.boundTarget, meta.pipes, meta.schemas, meta.isStandalone, meta.preserveWhitespaces);
|
|
10261
10275
|
const scope = Scope.forNodes(tcb, null, null, tcb.boundTarget.target.template, null);
|
|
10262
10276
|
const ctxRawType = env.referenceType(ref);
|
|
10263
|
-
if (!
|
|
10277
|
+
if (!ts42.isTypeReferenceNode(ctxRawType)) {
|
|
10264
10278
|
throw new Error(`Expected TypeReferenceNode when referencing the ctx param for ${ref.debugName}`);
|
|
10265
10279
|
}
|
|
10266
10280
|
let typeParameters = void 0;
|
|
@@ -10272,24 +10286,24 @@ function generateTypeCheckBlock(env, ref, name, meta, domSchemaChecker, oobRecor
|
|
|
10272
10286
|
switch (genericContextBehavior) {
|
|
10273
10287
|
case TcbGenericContextBehavior.UseEmitter:
|
|
10274
10288
|
typeParameters = new TypeParameterEmitter(ref.node.typeParameters, env.reflector).emit((typeRef) => env.referenceType(typeRef));
|
|
10275
|
-
typeArguments = typeParameters.map((param) =>
|
|
10289
|
+
typeArguments = typeParameters.map((param) => ts42.factory.createTypeReferenceNode(param.name));
|
|
10276
10290
|
break;
|
|
10277
10291
|
case TcbGenericContextBehavior.CopyClassNodes:
|
|
10278
10292
|
typeParameters = [...ref.node.typeParameters];
|
|
10279
|
-
typeArguments = typeParameters.map((param) =>
|
|
10293
|
+
typeArguments = typeParameters.map((param) => ts42.factory.createTypeReferenceNode(param.name));
|
|
10280
10294
|
break;
|
|
10281
10295
|
case TcbGenericContextBehavior.FallbackToAny:
|
|
10282
|
-
typeArguments = ref.node.typeParameters.map(() =>
|
|
10296
|
+
typeArguments = ref.node.typeParameters.map(() => ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword));
|
|
10283
10297
|
break;
|
|
10284
10298
|
}
|
|
10285
10299
|
}
|
|
10286
10300
|
const paramList = [tcbThisParam(ctxRawType.typeName, typeArguments)];
|
|
10287
10301
|
const scopeStatements = scope.render();
|
|
10288
|
-
const innerBody =
|
|
10289
|
-
const body =
|
|
10290
|
-
|
|
10302
|
+
const innerBody = ts42.factory.createBlock([...env.getPreludeStatements(), ...scopeStatements]);
|
|
10303
|
+
const body = ts42.factory.createBlock([
|
|
10304
|
+
ts42.factory.createIfStatement(ts42.factory.createTrue(), innerBody, void 0)
|
|
10291
10305
|
]);
|
|
10292
|
-
const fnDecl =
|
|
10306
|
+
const fnDecl = ts42.factory.createFunctionDeclaration(
|
|
10293
10307
|
void 0,
|
|
10294
10308
|
void 0,
|
|
10295
10309
|
name,
|
|
@@ -10345,7 +10359,7 @@ var TcbTemplateVariableOp = class extends TcbOp {
|
|
|
10345
10359
|
execute() {
|
|
10346
10360
|
const ctx = this.scope.resolve(this.template);
|
|
10347
10361
|
const id = this.tcb.allocateId();
|
|
10348
|
-
const initializer =
|
|
10362
|
+
const initializer = ts42.factory.createPropertyAccessExpression(
|
|
10349
10363
|
ctx,
|
|
10350
10364
|
this.variable.value || "$implicit"
|
|
10351
10365
|
);
|
|
@@ -10373,7 +10387,7 @@ var TcbTemplateContextOp = class extends TcbOp {
|
|
|
10373
10387
|
optional = true;
|
|
10374
10388
|
execute() {
|
|
10375
10389
|
const ctx = this.tcb.allocateId();
|
|
10376
|
-
const type =
|
|
10390
|
+
const type = ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword);
|
|
10377
10391
|
this.scope.addStatement(tsDeclareVariable(ctx, type));
|
|
10378
10392
|
return ctx;
|
|
10379
10393
|
}
|
|
@@ -10393,7 +10407,7 @@ var TcbLetDeclarationOp = class extends TcbOp {
|
|
|
10393
10407
|
const id = this.tcb.allocateId();
|
|
10394
10408
|
addParseSpanInfo(id, this.node.nameSpan);
|
|
10395
10409
|
const value = tcbExpression(this.node.value, this.tcb, this.scope);
|
|
10396
|
-
const varStatement = tsCreateVariable(id, wrapForTypeChecker(value),
|
|
10410
|
+
const varStatement = tsCreateVariable(id, wrapForTypeChecker(value), ts42.NodeFlags.Const);
|
|
10397
10411
|
addParseSpanInfo(varStatement.declarationList.declarations[0], this.node.sourceSpan);
|
|
10398
10412
|
this.scope.addStatement(varStatement);
|
|
10399
10413
|
return id;
|
|
@@ -10450,16 +10464,16 @@ var TcbTemplateBodyOp = class extends TcbOp {
|
|
|
10450
10464
|
}
|
|
10451
10465
|
let guard = null;
|
|
10452
10466
|
if (directiveGuards.length > 0) {
|
|
10453
|
-
guard = directiveGuards.reduce((expr, dirGuard) =>
|
|
10467
|
+
guard = directiveGuards.reduce((expr, dirGuard) => ts42.factory.createBinaryExpression(expr, ts42.SyntaxKind.AmpersandAmpersandToken, dirGuard), directiveGuards.pop());
|
|
10454
10468
|
}
|
|
10455
10469
|
const tmplScope = Scope.forNodes(this.tcb, this.scope, this.template, this.template.children, guard);
|
|
10456
10470
|
const statements = tmplScope.render();
|
|
10457
10471
|
if (statements.length === 0) {
|
|
10458
10472
|
return null;
|
|
10459
10473
|
}
|
|
10460
|
-
let tmplBlock =
|
|
10474
|
+
let tmplBlock = ts42.factory.createBlock(statements);
|
|
10461
10475
|
if (guard !== null) {
|
|
10462
|
-
tmplBlock =
|
|
10476
|
+
tmplBlock = ts42.factory.createIfStatement(
|
|
10463
10477
|
guard,
|
|
10464
10478
|
tmplBlock
|
|
10465
10479
|
);
|
|
@@ -10483,7 +10497,7 @@ var TcbExpressionOp = class extends TcbOp {
|
|
|
10483
10497
|
}
|
|
10484
10498
|
execute() {
|
|
10485
10499
|
const expr = tcbExpression(this.expression, this.tcb, this.scope);
|
|
10486
|
-
this.scope.addStatement(
|
|
10500
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(expr));
|
|
10487
10501
|
return null;
|
|
10488
10502
|
}
|
|
10489
10503
|
};
|
|
@@ -10509,11 +10523,11 @@ var TcbDirectiveTypeOpBase = class extends TcbOp {
|
|
|
10509
10523
|
if (this.dir.isGeneric === false || dirRef.node.typeParameters === void 0) {
|
|
10510
10524
|
type = rawType;
|
|
10511
10525
|
} else {
|
|
10512
|
-
if (!
|
|
10526
|
+
if (!ts42.isTypeReferenceNode(rawType)) {
|
|
10513
10527
|
throw new Error(`Expected TypeReferenceNode when referencing the type for ${this.dir.ref.debugName}`);
|
|
10514
10528
|
}
|
|
10515
|
-
const typeArguments = dirRef.node.typeParameters.map(() =>
|
|
10516
|
-
type =
|
|
10529
|
+
const typeArguments = dirRef.node.typeParameters.map(() => ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword));
|
|
10530
|
+
type = ts42.factory.createTypeReferenceNode(rawType.typeName, typeArguments);
|
|
10517
10531
|
}
|
|
10518
10532
|
const id = this.tcb.allocateId();
|
|
10519
10533
|
addExpressionIdentifier(id, ExpressionIdentifier.DIRECTIVE);
|
|
@@ -10559,11 +10573,11 @@ var TcbReferenceOp = class extends TcbOp {
|
|
|
10559
10573
|
const id = this.tcb.allocateId();
|
|
10560
10574
|
let initializer = this.target instanceof TmplAstTemplate || this.target instanceof TmplAstElement2 ? this.scope.resolve(this.target) : this.scope.resolve(this.host, this.target);
|
|
10561
10575
|
if (this.target instanceof TmplAstElement2 && !this.tcb.env.config.checkTypeOfDomReferences || !this.tcb.env.config.checkTypeOfNonDomReferences) {
|
|
10562
|
-
initializer =
|
|
10576
|
+
initializer = ts42.factory.createAsExpression(initializer, ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword));
|
|
10563
10577
|
} else if (this.target instanceof TmplAstTemplate) {
|
|
10564
|
-
initializer =
|
|
10565
|
-
initializer =
|
|
10566
|
-
initializer =
|
|
10578
|
+
initializer = ts42.factory.createAsExpression(initializer, ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword));
|
|
10579
|
+
initializer = ts42.factory.createAsExpression(initializer, this.tcb.env.referenceExternalType("@angular/core", "TemplateRef", [DYNAMIC_TYPE]));
|
|
10580
|
+
initializer = ts42.factory.createParenthesizedExpression(initializer);
|
|
10567
10581
|
}
|
|
10568
10582
|
addParseSpanInfo(initializer, this.node.sourceSpan);
|
|
10569
10583
|
addParseSpanInfo(id, this.node.keySpan);
|
|
@@ -10672,7 +10686,7 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
10672
10686
|
type = this.tcb.env.referenceTransplantedType(new TransplantedType(transformType));
|
|
10673
10687
|
} else {
|
|
10674
10688
|
const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
|
|
10675
|
-
if (!
|
|
10689
|
+
if (!ts42.isTypeReferenceNode(dirTypeRef)) {
|
|
10676
10690
|
throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
|
|
10677
10691
|
}
|
|
10678
10692
|
type = tsCreateTypeQueryForCoercedInput(dirTypeRef.typeName, fieldName);
|
|
@@ -10688,10 +10702,10 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
10688
10702
|
}
|
|
10689
10703
|
const id = this.tcb.allocateId();
|
|
10690
10704
|
const dirTypeRef = this.tcb.env.referenceType(this.dir.ref);
|
|
10691
|
-
if (!
|
|
10705
|
+
if (!ts42.isTypeReferenceNode(dirTypeRef)) {
|
|
10692
10706
|
throw new Error(`Expected TypeReferenceNode from reference to ${this.dir.ref.debugName}`);
|
|
10693
10707
|
}
|
|
10694
|
-
const type =
|
|
10708
|
+
const type = ts42.factory.createIndexedAccessTypeNode(ts42.factory.createTypeQueryNode(dirId), ts42.factory.createLiteralTypeNode(ts42.factory.createStringLiteral(fieldName)));
|
|
10695
10709
|
const temp = tsDeclareVariable(id, type);
|
|
10696
10710
|
this.scope.addStatement(temp);
|
|
10697
10711
|
target = id;
|
|
@@ -10699,14 +10713,14 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
10699
10713
|
if (dirId === null) {
|
|
10700
10714
|
dirId = this.scope.resolve(this.node, this.dir);
|
|
10701
10715
|
}
|
|
10702
|
-
target = this.dir.stringLiteralInputFields.has(fieldName) ?
|
|
10716
|
+
target = this.dir.stringLiteralInputFields.has(fieldName) ? ts42.factory.createElementAccessExpression(dirId, ts42.factory.createStringLiteral(fieldName)) : ts42.factory.createPropertyAccessExpression(dirId, ts42.factory.createIdentifier(fieldName));
|
|
10703
10717
|
}
|
|
10704
10718
|
if (isSignal) {
|
|
10705
10719
|
const inputSignalBrandWriteSymbol = this.tcb.env.referenceExternalSymbol(R3Identifiers4.InputSignalBrandWriteType.moduleName, R3Identifiers4.InputSignalBrandWriteType.name);
|
|
10706
|
-
if (!
|
|
10720
|
+
if (!ts42.isIdentifier(inputSignalBrandWriteSymbol) && !ts42.isPropertyAccessExpression(inputSignalBrandWriteSymbol)) {
|
|
10707
10721
|
throw new Error(`Expected identifier or property access for reference to ${R3Identifiers4.InputSignalBrandWriteType.name}`);
|
|
10708
10722
|
}
|
|
10709
|
-
target =
|
|
10723
|
+
target = ts42.factory.createElementAccessExpression(target, inputSignalBrandWriteSymbol);
|
|
10710
10724
|
}
|
|
10711
10725
|
if (attr.attribute.keySpan !== void 0) {
|
|
10712
10726
|
addParseSpanInfo(target, attr.attribute.keySpan);
|
|
@@ -10714,13 +10728,13 @@ var TcbDirectiveInputsOp = class extends TcbOp {
|
|
|
10714
10728
|
if (isTwoWayBinding && this.tcb.env.config.allowSignalsInTwoWayBindings) {
|
|
10715
10729
|
assignment = unwrapWritableSignal(assignment, this.tcb);
|
|
10716
10730
|
}
|
|
10717
|
-
assignment =
|
|
10731
|
+
assignment = ts42.factory.createBinaryExpression(target, ts42.SyntaxKind.EqualsToken, assignment);
|
|
10718
10732
|
}
|
|
10719
10733
|
addParseSpanInfo(assignment, attr.attribute.sourceSpan);
|
|
10720
10734
|
if (!this.tcb.env.config.checkTypeOfAttributes && attr.attribute instanceof TmplAstTextAttribute2) {
|
|
10721
10735
|
markIgnoreDiagnostics(assignment);
|
|
10722
10736
|
}
|
|
10723
|
-
this.scope.addStatement(
|
|
10737
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(assignment));
|
|
10724
10738
|
}
|
|
10725
10739
|
this.checkRequiredInputs(seenRequiredInputs);
|
|
10726
10740
|
return null;
|
|
@@ -10755,10 +10769,10 @@ var TcbDirectiveCtorCircularFallbackOp = class extends TcbOp {
|
|
|
10755
10769
|
execute() {
|
|
10756
10770
|
const id = this.tcb.allocateId();
|
|
10757
10771
|
const typeCtor = this.tcb.env.typeCtorFor(this.dir);
|
|
10758
|
-
const circularPlaceholder =
|
|
10772
|
+
const circularPlaceholder = ts42.factory.createCallExpression(
|
|
10759
10773
|
typeCtor,
|
|
10760
10774
|
void 0,
|
|
10761
|
-
[
|
|
10775
|
+
[ts42.factory.createNonNullExpression(ts42.factory.createNull())]
|
|
10762
10776
|
);
|
|
10763
10777
|
this.scope.addStatement(tsCreateVariable(id, circularPlaceholder));
|
|
10764
10778
|
return id;
|
|
@@ -10809,7 +10823,7 @@ var TcbControlFlowContentProjectionOp = class extends TcbOp {
|
|
|
10809
10823
|
this.element = element;
|
|
10810
10824
|
this.ngContentSelectors = ngContentSelectors;
|
|
10811
10825
|
this.componentName = componentName;
|
|
10812
|
-
this.category = tcb.env.config.controlFlowPreventingContentProjection === "error" ?
|
|
10826
|
+
this.category = tcb.env.config.controlFlowPreventingContentProjection === "error" ? ts42.DiagnosticCategory.Error : ts42.DiagnosticCategory.Warning;
|
|
10813
10827
|
}
|
|
10814
10828
|
optional = false;
|
|
10815
10829
|
execute() {
|
|
@@ -10913,15 +10927,15 @@ var TcbUnclaimedInputsOp = class extends TcbOp {
|
|
|
10913
10927
|
elId = this.scope.resolve(this.element);
|
|
10914
10928
|
}
|
|
10915
10929
|
const propertyName = (_a = ATTR_TO_PROP.get(binding.name)) != null ? _a : binding.name;
|
|
10916
|
-
const prop =
|
|
10917
|
-
const stmt =
|
|
10930
|
+
const prop = ts42.factory.createElementAccessExpression(elId, ts42.factory.createStringLiteral(propertyName));
|
|
10931
|
+
const stmt = ts42.factory.createBinaryExpression(prop, ts42.SyntaxKind.EqualsToken, wrapForDiagnostics(expr));
|
|
10918
10932
|
addParseSpanInfo(stmt, binding.sourceSpan);
|
|
10919
|
-
this.scope.addStatement(
|
|
10933
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(stmt));
|
|
10920
10934
|
} else {
|
|
10921
|
-
this.scope.addStatement(
|
|
10935
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(expr));
|
|
10922
10936
|
}
|
|
10923
10937
|
} else {
|
|
10924
|
-
this.scope.addStatement(
|
|
10938
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(expr));
|
|
10925
10939
|
}
|
|
10926
10940
|
}
|
|
10927
10941
|
return null;
|
|
@@ -10957,20 +10971,20 @@ var TcbDirectiveOutputsOp = class extends TcbOp {
|
|
|
10957
10971
|
if (dirId === null) {
|
|
10958
10972
|
dirId = this.scope.resolve(this.node, this.dir);
|
|
10959
10973
|
}
|
|
10960
|
-
const outputField =
|
|
10974
|
+
const outputField = ts42.factory.createElementAccessExpression(dirId, ts42.factory.createStringLiteral(field));
|
|
10961
10975
|
addParseSpanInfo(outputField, output.keySpan);
|
|
10962
10976
|
if (this.tcb.env.config.checkTypeOfOutputEvents) {
|
|
10963
10977
|
const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
|
|
10964
|
-
const subscribeFn =
|
|
10965
|
-
const call =
|
|
10978
|
+
const subscribeFn = ts42.factory.createPropertyAccessExpression(outputField, "subscribe");
|
|
10979
|
+
const call = ts42.factory.createCallExpression(subscribeFn, void 0, [
|
|
10966
10980
|
handler
|
|
10967
10981
|
]);
|
|
10968
10982
|
addParseSpanInfo(call, output.sourceSpan);
|
|
10969
|
-
this.scope.addStatement(
|
|
10983
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(call));
|
|
10970
10984
|
} else {
|
|
10971
|
-
this.scope.addStatement(
|
|
10985
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(outputField));
|
|
10972
10986
|
const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
|
|
10973
|
-
this.scope.addStatement(
|
|
10987
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(handler));
|
|
10974
10988
|
}
|
|
10975
10989
|
}
|
|
10976
10990
|
return null;
|
|
@@ -11006,24 +11020,24 @@ var TcbUnclaimedOutputsOp = class extends TcbOp {
|
|
|
11006
11020
|
if (output.type === ParsedEventType.Animation) {
|
|
11007
11021
|
const eventType = this.tcb.env.config.checkTypeOfAnimationEvents ? this.tcb.env.referenceExternalType("@angular/animations", "AnimationEvent") : 1;
|
|
11008
11022
|
const handler = tcbCreateEventHandler(output, this.tcb, this.scope, eventType);
|
|
11009
|
-
this.scope.addStatement(
|
|
11023
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(handler));
|
|
11010
11024
|
} else if (this.tcb.env.config.checkTypeOfDomEvents) {
|
|
11011
11025
|
const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 0);
|
|
11012
11026
|
if (elId === null) {
|
|
11013
11027
|
elId = this.scope.resolve(this.element);
|
|
11014
11028
|
}
|
|
11015
|
-
const propertyAccess =
|
|
11029
|
+
const propertyAccess = ts42.factory.createPropertyAccessExpression(elId, "addEventListener");
|
|
11016
11030
|
addParseSpanInfo(propertyAccess, output.keySpan);
|
|
11017
|
-
const call =
|
|
11031
|
+
const call = ts42.factory.createCallExpression(
|
|
11018
11032
|
propertyAccess,
|
|
11019
11033
|
void 0,
|
|
11020
|
-
[
|
|
11034
|
+
[ts42.factory.createStringLiteral(output.name), handler]
|
|
11021
11035
|
);
|
|
11022
11036
|
addParseSpanInfo(call, output.sourceSpan);
|
|
11023
|
-
this.scope.addStatement(
|
|
11037
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(call));
|
|
11024
11038
|
} else {
|
|
11025
11039
|
const handler = tcbCreateEventHandler(output, this.tcb, this.scope, 1);
|
|
11026
|
-
this.scope.addStatement(
|
|
11040
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(handler));
|
|
11027
11041
|
}
|
|
11028
11042
|
}
|
|
11029
11043
|
return null;
|
|
@@ -11037,11 +11051,11 @@ var TcbComponentContextCompletionOp = class extends TcbOp {
|
|
|
11037
11051
|
}
|
|
11038
11052
|
optional = false;
|
|
11039
11053
|
execute() {
|
|
11040
|
-
const ctx =
|
|
11041
|
-
const ctxDot =
|
|
11054
|
+
const ctx = ts42.factory.createThis();
|
|
11055
|
+
const ctxDot = ts42.factory.createPropertyAccessExpression(ctx, "");
|
|
11042
11056
|
markIgnoreDiagnostics(ctxDot);
|
|
11043
11057
|
addExpressionIdentifier(ctxDot, ExpressionIdentifier.COMPONENT_COMPLETION);
|
|
11044
|
-
this.scope.addStatement(
|
|
11058
|
+
this.scope.addStatement(ts42.factory.createExpressionStatement(ctxDot));
|
|
11045
11059
|
return null;
|
|
11046
11060
|
}
|
|
11047
11061
|
};
|
|
@@ -11117,17 +11131,17 @@ var TcbIfOp = class extends TcbOp {
|
|
|
11117
11131
|
}
|
|
11118
11132
|
if (branch.expression === null) {
|
|
11119
11133
|
const branchScope = this.getBranchScope(this.scope, branch, index);
|
|
11120
|
-
return
|
|
11134
|
+
return ts42.factory.createBlock(branchScope.render());
|
|
11121
11135
|
}
|
|
11122
11136
|
const outerScope = Scope.forNodes(this.tcb, this.scope, branch, [], null);
|
|
11123
11137
|
outerScope.render().forEach((stmt) => this.scope.addStatement(stmt));
|
|
11124
11138
|
this.expressionScopes.set(branch, outerScope);
|
|
11125
11139
|
let expression = tcbExpression(branch.expression, this.tcb, this.scope);
|
|
11126
11140
|
if (branch.expressionAlias !== null) {
|
|
11127
|
-
expression =
|
|
11141
|
+
expression = ts42.factory.createBinaryExpression(ts42.factory.createParenthesizedExpression(expression), ts42.SyntaxKind.AmpersandAmpersandToken, outerScope.resolve(branch.expressionAlias));
|
|
11128
11142
|
}
|
|
11129
11143
|
const bodyScope = this.getBranchScope(outerScope, branch, index);
|
|
11130
|
-
return
|
|
11144
|
+
return ts42.factory.createIfStatement(expression, ts42.factory.createBlock(bodyScope.render()), this.generateBranch(index + 1));
|
|
11131
11145
|
}
|
|
11132
11146
|
getBranchScope(parentScope, branch, index) {
|
|
11133
11147
|
const checkBody = this.tcb.env.config.checkControlFlowBodies;
|
|
@@ -11147,11 +11161,11 @@ var TcbIfOp = class extends TcbOp {
|
|
|
11147
11161
|
let expression;
|
|
11148
11162
|
expression = tcbExpression(branch.expression, this.tcb, expressionScope);
|
|
11149
11163
|
if (branch.expressionAlias !== null) {
|
|
11150
|
-
expression =
|
|
11164
|
+
expression = ts42.factory.createBinaryExpression(ts42.factory.createParenthesizedExpression(expression), ts42.SyntaxKind.AmpersandAmpersandToken, expressionScope.resolve(branch.expressionAlias));
|
|
11151
11165
|
}
|
|
11152
11166
|
markIgnoreDiagnostics(expression);
|
|
11153
|
-
const comparisonExpression = i === index ? expression :
|
|
11154
|
-
guard = guard === null ? comparisonExpression :
|
|
11167
|
+
const comparisonExpression = i === index ? expression : ts42.factory.createPrefixUnaryExpression(ts42.SyntaxKind.ExclamationToken, ts42.factory.createParenthesizedExpression(expression));
|
|
11168
|
+
guard = guard === null ? comparisonExpression : ts42.factory.createBinaryExpression(guard, ts42.SyntaxKind.AmpersandAmpersandToken, comparisonExpression);
|
|
11155
11169
|
}
|
|
11156
11170
|
return guard;
|
|
11157
11171
|
}
|
|
@@ -11174,17 +11188,17 @@ var TcbSwitchOp = class extends TcbOp {
|
|
|
11174
11188
|
const clauses = this.block.cases.map((current) => {
|
|
11175
11189
|
const checkBody = this.tcb.env.config.checkControlFlowBodies;
|
|
11176
11190
|
const clauseScope = Scope.forNodes(this.tcb, this.scope, null, checkBody ? current.children : [], checkBody ? this.generateGuard(current, switchExpression) : null);
|
|
11177
|
-
const statements = [...clauseScope.render(),
|
|
11178
|
-
return current.expression === null ?
|
|
11191
|
+
const statements = [...clauseScope.render(), ts42.factory.createBreakStatement()];
|
|
11192
|
+
return current.expression === null ? ts42.factory.createDefaultClause(statements) : ts42.factory.createCaseClause(tcbExpression(current.expression, this.tcb, clauseScope), statements);
|
|
11179
11193
|
});
|
|
11180
|
-
this.scope.addStatement(
|
|
11194
|
+
this.scope.addStatement(ts42.factory.createSwitchStatement(switchExpression, ts42.factory.createCaseBlock(clauses)));
|
|
11181
11195
|
return null;
|
|
11182
11196
|
}
|
|
11183
11197
|
generateGuard(node, switchValue) {
|
|
11184
11198
|
if (node.expression !== null) {
|
|
11185
11199
|
const expression = tcbExpression(node.expression, this.tcb, this.scope);
|
|
11186
11200
|
markIgnoreDiagnostics(expression);
|
|
11187
|
-
return
|
|
11201
|
+
return ts42.factory.createBinaryExpression(switchValue, ts42.SyntaxKind.EqualsEqualsEqualsToken, expression);
|
|
11188
11202
|
}
|
|
11189
11203
|
let guard = null;
|
|
11190
11204
|
for (const current of this.block.cases) {
|
|
@@ -11193,11 +11207,11 @@ var TcbSwitchOp = class extends TcbOp {
|
|
|
11193
11207
|
}
|
|
11194
11208
|
const expression = tcbExpression(current.expression, this.tcb, this.scope);
|
|
11195
11209
|
markIgnoreDiagnostics(expression);
|
|
11196
|
-
const comparison =
|
|
11210
|
+
const comparison = ts42.factory.createBinaryExpression(switchValue, ts42.SyntaxKind.ExclamationEqualsEqualsToken, expression);
|
|
11197
11211
|
if (guard === null) {
|
|
11198
11212
|
guard = comparison;
|
|
11199
11213
|
} else {
|
|
11200
|
-
guard =
|
|
11214
|
+
guard = ts42.factory.createBinaryExpression(guard, ts42.SyntaxKind.AmpersandAmpersandToken, comparison);
|
|
11201
11215
|
}
|
|
11202
11216
|
}
|
|
11203
11217
|
return guard;
|
|
@@ -11219,23 +11233,23 @@ var TcbForOfOp = class extends TcbOp {
|
|
|
11219
11233
|
execute() {
|
|
11220
11234
|
const loopScope = Scope.forNodes(this.tcb, this.scope, this.block, this.tcb.env.config.checkControlFlowBodies ? this.block.children : [], null);
|
|
11221
11235
|
const initializerId = loopScope.resolve(this.block.item);
|
|
11222
|
-
if (!
|
|
11236
|
+
if (!ts42.isIdentifier(initializerId)) {
|
|
11223
11237
|
throw new Error(`Could not resolve for loop variable ${this.block.item.name} to an identifier`);
|
|
11224
11238
|
}
|
|
11225
|
-
const initializer =
|
|
11239
|
+
const initializer = ts42.factory.createVariableDeclarationList([ts42.factory.createVariableDeclaration(initializerId)], ts42.NodeFlags.Const);
|
|
11226
11240
|
addParseSpanInfo(initializer, this.block.item.keySpan);
|
|
11227
|
-
const expression =
|
|
11241
|
+
const expression = ts42.factory.createNonNullExpression(tcbExpression(this.block.expression, this.tcb, this.scope));
|
|
11228
11242
|
const trackTranslator = new TcbForLoopTrackTranslator(this.tcb, loopScope, this.block);
|
|
11229
11243
|
const trackExpression = trackTranslator.translate(this.block.trackBy);
|
|
11230
11244
|
const statements = [
|
|
11231
11245
|
...loopScope.render(),
|
|
11232
|
-
|
|
11246
|
+
ts42.factory.createExpressionStatement(trackExpression)
|
|
11233
11247
|
];
|
|
11234
|
-
this.scope.addStatement(
|
|
11248
|
+
this.scope.addStatement(ts42.factory.createForOfStatement(void 0, initializer, expression, ts42.factory.createBlock(statements)));
|
|
11235
11249
|
return null;
|
|
11236
11250
|
}
|
|
11237
11251
|
};
|
|
11238
|
-
var INFER_TYPE_FOR_CIRCULAR_OP_EXPR =
|
|
11252
|
+
var INFER_TYPE_FOR_CIRCULAR_OP_EXPR = ts42.factory.createNonNullExpression(ts42.factory.createNull());
|
|
11239
11253
|
var Context = class {
|
|
11240
11254
|
env;
|
|
11241
11255
|
domSchemaChecker;
|
|
@@ -11259,7 +11273,7 @@ var Context = class {
|
|
|
11259
11273
|
this.hostPreserveWhitespaces = hostPreserveWhitespaces;
|
|
11260
11274
|
}
|
|
11261
11275
|
allocateId() {
|
|
11262
|
-
return
|
|
11276
|
+
return ts42.factory.createIdentifier(`_t${this.nextId++}`);
|
|
11263
11277
|
}
|
|
11264
11278
|
getPipeByName(name) {
|
|
11265
11279
|
if (this.pipes === null || !this.pipes.has(name)) {
|
|
@@ -11314,7 +11328,7 @@ var _Scope = class {
|
|
|
11314
11328
|
if (!this.forLoopContextVariableTypes.has(variable.value)) {
|
|
11315
11329
|
throw new Error(`Unrecognized for loop context variable ${variable.name}`);
|
|
11316
11330
|
}
|
|
11317
|
-
const type =
|
|
11331
|
+
const type = ts42.factory.createKeywordTypeNode(this.forLoopContextVariableTypes.get(variable.value));
|
|
11318
11332
|
this.registerVariable(scope, variable, new TcbBlockImplicitVariableOp(tcb, scope, type, variable));
|
|
11319
11333
|
}
|
|
11320
11334
|
}
|
|
@@ -11337,16 +11351,16 @@ var _Scope = class {
|
|
|
11337
11351
|
const res = this.resolveLocal(node, directive);
|
|
11338
11352
|
if (res !== null) {
|
|
11339
11353
|
let clone;
|
|
11340
|
-
if (
|
|
11341
|
-
clone =
|
|
11342
|
-
} else if (
|
|
11343
|
-
clone =
|
|
11354
|
+
if (ts42.isIdentifier(res)) {
|
|
11355
|
+
clone = ts42.factory.createIdentifier(res.text);
|
|
11356
|
+
} else if (ts42.isNonNullExpression(res)) {
|
|
11357
|
+
clone = ts42.factory.createNonNullExpression(res.expression);
|
|
11344
11358
|
} else {
|
|
11345
11359
|
throw new Error(`Could not resolve ${node} to an Identifier or a NonNullExpression`);
|
|
11346
11360
|
}
|
|
11347
|
-
|
|
11361
|
+
ts42.setOriginalNode(clone, res);
|
|
11348
11362
|
clone.parent = clone.parent;
|
|
11349
|
-
return
|
|
11363
|
+
return ts42.setSyntheticTrailingComments(clone, []);
|
|
11350
11364
|
} else if (this.parent !== null) {
|
|
11351
11365
|
return this.parent.resolve(node, directive);
|
|
11352
11366
|
} else {
|
|
@@ -11373,7 +11387,7 @@ var _Scope = class {
|
|
|
11373
11387
|
} else if (parentGuards === null) {
|
|
11374
11388
|
return this.guard;
|
|
11375
11389
|
} else {
|
|
11376
|
-
return
|
|
11390
|
+
return ts42.factory.createBinaryExpression(parentGuards, ts42.SyntaxKind.AmpersandAmpersandToken, this.guard);
|
|
11377
11391
|
}
|
|
11378
11392
|
}
|
|
11379
11393
|
isLocal(node) {
|
|
@@ -11648,20 +11662,20 @@ var _Scope = class {
|
|
|
11648
11662
|
};
|
|
11649
11663
|
var Scope = _Scope;
|
|
11650
11664
|
__publicField(Scope, "forLoopContextVariableTypes", /* @__PURE__ */ new Map([
|
|
11651
|
-
["$first",
|
|
11652
|
-
["$last",
|
|
11653
|
-
["$even",
|
|
11654
|
-
["$odd",
|
|
11655
|
-
["$index",
|
|
11656
|
-
["$count",
|
|
11665
|
+
["$first", ts42.SyntaxKind.BooleanKeyword],
|
|
11666
|
+
["$last", ts42.SyntaxKind.BooleanKeyword],
|
|
11667
|
+
["$even", ts42.SyntaxKind.BooleanKeyword],
|
|
11668
|
+
["$odd", ts42.SyntaxKind.BooleanKeyword],
|
|
11669
|
+
["$index", ts42.SyntaxKind.NumberKeyword],
|
|
11670
|
+
["$count", ts42.SyntaxKind.NumberKeyword]
|
|
11657
11671
|
]));
|
|
11658
11672
|
function tcbThisParam(name, typeArguments) {
|
|
11659
|
-
return
|
|
11673
|
+
return ts42.factory.createParameterDeclaration(
|
|
11660
11674
|
void 0,
|
|
11661
11675
|
void 0,
|
|
11662
11676
|
"this",
|
|
11663
11677
|
void 0,
|
|
11664
|
-
|
|
11678
|
+
ts42.factory.createTypeReferenceNode(name, typeArguments),
|
|
11665
11679
|
void 0
|
|
11666
11680
|
);
|
|
11667
11681
|
}
|
|
@@ -11686,7 +11700,7 @@ var TcbExpressionTranslator = class {
|
|
|
11686
11700
|
if (target instanceof TmplAstLetDeclaration2 && !this.isValidLetDeclarationAccess(target, ast)) {
|
|
11687
11701
|
this.tcb.oobRecorder.letUsedBeforeDefinition(this.tcb.id, ast, target);
|
|
11688
11702
|
if (targetExpression !== null) {
|
|
11689
|
-
return
|
|
11703
|
+
return ts42.factory.createAsExpression(targetExpression, ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword));
|
|
11690
11704
|
}
|
|
11691
11705
|
}
|
|
11692
11706
|
return targetExpression;
|
|
@@ -11697,7 +11711,7 @@ var TcbExpressionTranslator = class {
|
|
|
11697
11711
|
}
|
|
11698
11712
|
const targetExpression = this.getTargetNodeExpression(target, ast);
|
|
11699
11713
|
const expr = this.translate(ast.value);
|
|
11700
|
-
const result =
|
|
11714
|
+
const result = ts42.factory.createParenthesizedExpression(ts42.factory.createBinaryExpression(targetExpression, ts42.SyntaxKind.EqualsToken, expr));
|
|
11701
11715
|
addParseSpanInfo(result, ast.sourceSpan);
|
|
11702
11716
|
if (target instanceof TmplAstLetDeclaration2) {
|
|
11703
11717
|
markIgnoreDiagnostics(result);
|
|
@@ -11705,7 +11719,7 @@ var TcbExpressionTranslator = class {
|
|
|
11705
11719
|
}
|
|
11706
11720
|
return result;
|
|
11707
11721
|
} else if (ast instanceof ImplicitReceiver2) {
|
|
11708
|
-
return
|
|
11722
|
+
return ts42.factory.createThis();
|
|
11709
11723
|
} else if (ast instanceof BindingPipe) {
|
|
11710
11724
|
const expr = this.translate(ast.exp);
|
|
11711
11725
|
const pipeMeta = this.tcb.getPipeByName(ast.name);
|
|
@@ -11720,12 +11734,12 @@ var TcbExpressionTranslator = class {
|
|
|
11720
11734
|
pipe = this.tcb.env.pipeInst(pipeMeta.ref);
|
|
11721
11735
|
}
|
|
11722
11736
|
const args = ast.args.map((arg) => this.translate(arg));
|
|
11723
|
-
let methodAccess =
|
|
11737
|
+
let methodAccess = ts42.factory.createPropertyAccessExpression(pipe, "transform");
|
|
11724
11738
|
addParseSpanInfo(methodAccess, ast.nameSpan);
|
|
11725
11739
|
if (!this.tcb.env.config.checkTypeOfPipes) {
|
|
11726
|
-
methodAccess =
|
|
11740
|
+
methodAccess = ts42.factory.createAsExpression(methodAccess, ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword));
|
|
11727
11741
|
}
|
|
11728
|
-
const result =
|
|
11742
|
+
const result = ts42.factory.createCallExpression(
|
|
11729
11743
|
methodAccess,
|
|
11730
11744
|
void 0,
|
|
11731
11745
|
[expr, ...args]
|
|
@@ -11735,8 +11749,8 @@ var TcbExpressionTranslator = class {
|
|
|
11735
11749
|
} else if ((ast instanceof Call2 || ast instanceof SafeCall) && (ast.receiver instanceof PropertyRead3 || ast.receiver instanceof SafePropertyRead3)) {
|
|
11736
11750
|
if (ast.receiver.receiver instanceof ImplicitReceiver2 && !(ast.receiver.receiver instanceof ThisReceiver) && ast.receiver.name === "$any" && ast.args.length === 1) {
|
|
11737
11751
|
const expr = this.translate(ast.args[0]);
|
|
11738
|
-
const exprAsAny =
|
|
11739
|
-
const result =
|
|
11752
|
+
const exprAsAny = ts42.factory.createAsExpression(expr, ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword));
|
|
11753
|
+
const result = ts42.factory.createParenthesizedExpression(exprAsAny);
|
|
11740
11754
|
addParseSpanInfo(result, ast.sourceSpan);
|
|
11741
11755
|
return result;
|
|
11742
11756
|
}
|
|
@@ -11748,7 +11762,7 @@ var TcbExpressionTranslator = class {
|
|
|
11748
11762
|
const method = wrapForDiagnostics(receiver);
|
|
11749
11763
|
addParseSpanInfo(method, ast.receiver.nameSpan);
|
|
11750
11764
|
const args = ast.args.map((arg) => this.translate(arg));
|
|
11751
|
-
const node =
|
|
11765
|
+
const node = ts42.factory.createCallExpression(method, void 0, args);
|
|
11752
11766
|
addParseSpanInfo(node, ast.sourceSpan);
|
|
11753
11767
|
return node;
|
|
11754
11768
|
} else {
|
|
@@ -11770,23 +11784,23 @@ var TcbExpressionTranslator = class {
|
|
|
11770
11784
|
function tcbCallTypeCtor(dir, tcb, inputs) {
|
|
11771
11785
|
const typeCtor = tcb.env.typeCtorFor(dir);
|
|
11772
11786
|
const members = inputs.map((input) => {
|
|
11773
|
-
const propertyName =
|
|
11787
|
+
const propertyName = ts42.factory.createStringLiteral(input.field);
|
|
11774
11788
|
if (input.type === "binding") {
|
|
11775
11789
|
let expr = widenBinding(input.expression, tcb);
|
|
11776
11790
|
if (input.isTwoWayBinding && tcb.env.config.allowSignalsInTwoWayBindings) {
|
|
11777
11791
|
expr = unwrapWritableSignal(expr, tcb);
|
|
11778
11792
|
}
|
|
11779
|
-
const assignment =
|
|
11793
|
+
const assignment = ts42.factory.createPropertyAssignment(propertyName, wrapForDiagnostics(expr));
|
|
11780
11794
|
addParseSpanInfo(assignment, input.sourceSpan);
|
|
11781
11795
|
return assignment;
|
|
11782
11796
|
} else {
|
|
11783
|
-
return
|
|
11797
|
+
return ts42.factory.createPropertyAssignment(propertyName, ANY_EXPRESSION);
|
|
11784
11798
|
}
|
|
11785
11799
|
});
|
|
11786
|
-
return
|
|
11800
|
+
return ts42.factory.createCallExpression(
|
|
11787
11801
|
typeCtor,
|
|
11788
11802
|
void 0,
|
|
11789
|
-
[
|
|
11803
|
+
[ts42.factory.createObjectLiteralExpression(members)]
|
|
11790
11804
|
);
|
|
11791
11805
|
}
|
|
11792
11806
|
function getBoundAttributes(directive, node) {
|
|
@@ -11823,17 +11837,17 @@ function translateInput(attr, tcb, scope) {
|
|
|
11823
11837
|
if (attr instanceof TmplAstBoundAttribute) {
|
|
11824
11838
|
return tcbExpression(attr.value, tcb, scope);
|
|
11825
11839
|
} else {
|
|
11826
|
-
return
|
|
11840
|
+
return ts42.factory.createStringLiteral(attr.value);
|
|
11827
11841
|
}
|
|
11828
11842
|
}
|
|
11829
11843
|
function widenBinding(expr, tcb) {
|
|
11830
11844
|
if (!tcb.env.config.checkTypeOfInputBindings) {
|
|
11831
11845
|
return tsCastToAny(expr);
|
|
11832
11846
|
} else if (!tcb.env.config.strictNullInputBindings) {
|
|
11833
|
-
if (
|
|
11847
|
+
if (ts42.isObjectLiteralExpression(expr) || ts42.isArrayLiteralExpression(expr)) {
|
|
11834
11848
|
return expr;
|
|
11835
11849
|
} else {
|
|
11836
|
-
return
|
|
11850
|
+
return ts42.factory.createNonNullExpression(expr);
|
|
11837
11851
|
}
|
|
11838
11852
|
} else {
|
|
11839
11853
|
return expr;
|
|
@@ -11841,7 +11855,7 @@ function widenBinding(expr, tcb) {
|
|
|
11841
11855
|
}
|
|
11842
11856
|
function unwrapWritableSignal(expression, tcb) {
|
|
11843
11857
|
const unwrapRef = tcb.env.referenceExternalSymbol(R3Identifiers4.unwrapWritableSignal.moduleName, R3Identifiers4.unwrapWritableSignal.name);
|
|
11844
|
-
return
|
|
11858
|
+
return ts42.factory.createCallExpression(unwrapRef, void 0, [expression]);
|
|
11845
11859
|
}
|
|
11846
11860
|
var EVENT_PARAMETER = "$event";
|
|
11847
11861
|
function tcbCreateEventHandler(event, tcb, scope, eventType) {
|
|
@@ -11849,25 +11863,25 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
|
|
|
11849
11863
|
const statements = [];
|
|
11850
11864
|
if (event.type === ParsedEventType.TwoWay && tcb.env.config.checkTwoWayBoundEvents) {
|
|
11851
11865
|
const target = tcb.allocateId();
|
|
11852
|
-
const assignment =
|
|
11853
|
-
statements.push(tsCreateVariable(target, tcb.env.config.allowSignalsInTwoWayBindings ? unwrapWritableSignal(handler, tcb) : handler),
|
|
11866
|
+
const assignment = ts42.factory.createBinaryExpression(target, ts42.SyntaxKind.EqualsToken, ts42.factory.createIdentifier(EVENT_PARAMETER));
|
|
11867
|
+
statements.push(tsCreateVariable(target, tcb.env.config.allowSignalsInTwoWayBindings ? unwrapWritableSignal(handler, tcb) : handler), ts42.factory.createExpressionStatement(assignment));
|
|
11854
11868
|
} else {
|
|
11855
|
-
statements.push(
|
|
11869
|
+
statements.push(ts42.factory.createExpressionStatement(handler));
|
|
11856
11870
|
}
|
|
11857
11871
|
let eventParamType;
|
|
11858
11872
|
if (eventType === 0) {
|
|
11859
11873
|
eventParamType = void 0;
|
|
11860
11874
|
} else if (eventType === 1) {
|
|
11861
|
-
eventParamType =
|
|
11875
|
+
eventParamType = ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword);
|
|
11862
11876
|
} else {
|
|
11863
11877
|
eventParamType = eventType;
|
|
11864
11878
|
}
|
|
11865
11879
|
const guards = scope.guards();
|
|
11866
|
-
let body =
|
|
11880
|
+
let body = ts42.factory.createBlock(statements);
|
|
11867
11881
|
if (guards !== null) {
|
|
11868
|
-
body =
|
|
11882
|
+
body = ts42.factory.createBlock([ts42.factory.createIfStatement(guards, body)]);
|
|
11869
11883
|
}
|
|
11870
|
-
const eventParam =
|
|
11884
|
+
const eventParam = ts42.factory.createParameterDeclaration(
|
|
11871
11885
|
void 0,
|
|
11872
11886
|
void 0,
|
|
11873
11887
|
EVENT_PARAMETER,
|
|
@@ -11875,11 +11889,11 @@ function tcbCreateEventHandler(event, tcb, scope, eventType) {
|
|
|
11875
11889
|
eventParamType
|
|
11876
11890
|
);
|
|
11877
11891
|
addExpressionIdentifier(eventParam, ExpressionIdentifier.EVENT_PARAMETER);
|
|
11878
|
-
return
|
|
11892
|
+
return ts42.factory.createArrowFunction(
|
|
11879
11893
|
void 0,
|
|
11880
11894
|
void 0,
|
|
11881
11895
|
[eventParam],
|
|
11882
|
-
|
|
11896
|
+
ts42.factory.createKeywordTypeNode(ts42.SyntaxKind.AnyKeyword),
|
|
11883
11897
|
void 0,
|
|
11884
11898
|
body
|
|
11885
11899
|
);
|
|
@@ -11910,7 +11924,7 @@ function checkSplitTwoWayBinding(inputName, output, inputs, tcb) {
|
|
|
11910
11924
|
var TcbEventHandlerTranslator = class extends TcbExpressionTranslator {
|
|
11911
11925
|
resolve(ast) {
|
|
11912
11926
|
if (ast instanceof PropertyRead3 && ast.receiver instanceof ImplicitReceiver2 && !(ast.receiver instanceof ThisReceiver) && ast.name === EVENT_PARAMETER) {
|
|
11913
|
-
const event =
|
|
11927
|
+
const event = ts42.factory.createIdentifier(EVENT_PARAMETER);
|
|
11914
11928
|
addParseSpanInfo(event, ast.nameSpan);
|
|
11915
11929
|
return event;
|
|
11916
11930
|
}
|
|
@@ -11944,8 +11958,8 @@ var TcbForLoopTrackTranslator = class extends TcbExpressionTranslator {
|
|
|
11944
11958
|
}
|
|
11945
11959
|
};
|
|
11946
11960
|
|
|
11947
|
-
// bazel-out/
|
|
11948
|
-
import
|
|
11961
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/type_check_file.mjs
|
|
11962
|
+
import ts43 from "typescript";
|
|
11949
11963
|
var TypeCheckFile = class extends Environment {
|
|
11950
11964
|
fileName;
|
|
11951
11965
|
nextTcbId = 1;
|
|
@@ -11954,11 +11968,11 @@ var TypeCheckFile = class extends Environment {
|
|
|
11954
11968
|
super(config, new ImportManager({
|
|
11955
11969
|
forceGenerateNamespacesForNewImports: true,
|
|
11956
11970
|
shouldUseSingleQuotes: () => true
|
|
11957
|
-
}), refEmitter, reflector,
|
|
11971
|
+
}), refEmitter, reflector, ts43.createSourceFile(compilerHost.getCanonicalFileName(fileName), "", ts43.ScriptTarget.Latest, true));
|
|
11958
11972
|
this.fileName = fileName;
|
|
11959
11973
|
}
|
|
11960
11974
|
addTypeCheckBlock(ref, meta, domSchemaChecker, oobRecorder, genericContextBehavior) {
|
|
11961
|
-
const fnId =
|
|
11975
|
+
const fnId = ts43.factory.createIdentifier(`_tcb${this.nextTcbId++}`);
|
|
11962
11976
|
const fn = generateTypeCheckBlock(this, ref, fnId, meta, domSchemaChecker, oobRecorder, genericContextBehavior);
|
|
11963
11977
|
this.tcbStatements.push(fn);
|
|
11964
11978
|
}
|
|
@@ -11968,22 +11982,22 @@ var TypeCheckFile = class extends Environment {
|
|
|
11968
11982
|
if (importChanges.updatedImports.size > 0) {
|
|
11969
11983
|
throw new Error("AssertionError: Expected no imports to be updated for a new type check file.");
|
|
11970
11984
|
}
|
|
11971
|
-
const printer =
|
|
11985
|
+
const printer = ts43.createPrinter({ removeComments });
|
|
11972
11986
|
let source = "";
|
|
11973
11987
|
const newImports = importChanges.newImports.get(this.contextFile.fileName);
|
|
11974
11988
|
if (newImports !== void 0) {
|
|
11975
|
-
source += newImports.map((i) => printer.printNode(
|
|
11989
|
+
source += newImports.map((i) => printer.printNode(ts43.EmitHint.Unspecified, i, this.contextFile)).join("\n");
|
|
11976
11990
|
}
|
|
11977
11991
|
source += "\n";
|
|
11978
11992
|
for (const stmt of this.pipeInstStatements) {
|
|
11979
|
-
source += printer.printNode(
|
|
11993
|
+
source += printer.printNode(ts43.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
|
|
11980
11994
|
}
|
|
11981
11995
|
for (const stmt of this.typeCtorStatements) {
|
|
11982
|
-
source += printer.printNode(
|
|
11996
|
+
source += printer.printNode(ts43.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
|
|
11983
11997
|
}
|
|
11984
11998
|
source += "\n";
|
|
11985
11999
|
for (const stmt of this.tcbStatements) {
|
|
11986
|
-
source += printer.printNode(
|
|
12000
|
+
source += printer.printNode(ts43.EmitHint.Unspecified, stmt, this.contextFile) + "\n";
|
|
11987
12001
|
}
|
|
11988
12002
|
source += "\nexport const IS_A_MODULE = true;\n";
|
|
11989
12003
|
return source;
|
|
@@ -11993,7 +12007,7 @@ var TypeCheckFile = class extends Environment {
|
|
|
11993
12007
|
}
|
|
11994
12008
|
};
|
|
11995
12009
|
|
|
11996
|
-
// bazel-out/
|
|
12010
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/context.mjs
|
|
11997
12011
|
var InliningMode;
|
|
11998
12012
|
(function(InliningMode2) {
|
|
11999
12013
|
InliningMode2[InliningMode2["InlineOps"] = 0] = "InlineOps";
|
|
@@ -12108,7 +12122,7 @@ var TypeCheckContextImpl = class {
|
|
|
12108
12122
|
if (!this.opMap.has(sf)) {
|
|
12109
12123
|
return null;
|
|
12110
12124
|
}
|
|
12111
|
-
const printer =
|
|
12125
|
+
const printer = ts44.createPrinter({ omitTrailingSemicolon: true });
|
|
12112
12126
|
const importManager = new ImportManager({
|
|
12113
12127
|
forceGenerateNamespacesForNewImports: true,
|
|
12114
12128
|
shouldUseSingleQuotes: () => true
|
|
@@ -12124,7 +12138,7 @@ var TypeCheckContextImpl = class {
|
|
|
12124
12138
|
newImports.get(sf.fileName).forEach((newImport) => {
|
|
12125
12139
|
updates.push({
|
|
12126
12140
|
pos: 0,
|
|
12127
|
-
text: printer.printNode(
|
|
12141
|
+
text: printer.printNode(ts44.EmitHint.Unspecified, newImport, sf)
|
|
12128
12142
|
});
|
|
12129
12143
|
});
|
|
12130
12144
|
}
|
|
@@ -12135,7 +12149,7 @@ var TypeCheckContextImpl = class {
|
|
|
12135
12149
|
updates.push({
|
|
12136
12150
|
pos: oldBindings.getStart(),
|
|
12137
12151
|
deletePos: oldBindings.getEnd(),
|
|
12138
|
-
text: printer.printNode(
|
|
12152
|
+
text: printer.printNode(ts44.EmitHint.Unspecified, newBindings, sf)
|
|
12139
12153
|
});
|
|
12140
12154
|
}
|
|
12141
12155
|
const result = new MagicString(sf.text, { filename: sf.fileName });
|
|
@@ -12219,7 +12233,7 @@ function getTemplateDiagnostics(parseErrors, templateId, sourceMapping) {
|
|
|
12219
12233
|
if (span.start.offset === span.end.offset) {
|
|
12220
12234
|
span.end.offset++;
|
|
12221
12235
|
}
|
|
12222
|
-
return makeTemplateDiagnostic(templateId, sourceMapping, span,
|
|
12236
|
+
return makeTemplateDiagnostic(templateId, sourceMapping, span, ts44.DiagnosticCategory.Error, ngErrorCode(ErrorCode.TEMPLATE_PARSE_ERROR), error.msg);
|
|
12223
12237
|
});
|
|
12224
12238
|
}
|
|
12225
12239
|
var InlineTcbOp = class {
|
|
@@ -12242,9 +12256,9 @@ var InlineTcbOp = class {
|
|
|
12242
12256
|
}
|
|
12243
12257
|
execute(im, sf, refEmitter, printer) {
|
|
12244
12258
|
const env = new Environment(this.config, im, refEmitter, this.reflector, sf);
|
|
12245
|
-
const fnName =
|
|
12259
|
+
const fnName = ts44.factory.createIdentifier(`_tcb_${this.ref.node.pos}`);
|
|
12246
12260
|
const fn = generateTypeCheckBlock(env, this.ref, fnName, this.meta, this.domSchemaChecker, this.oobRecorder, TcbGenericContextBehavior.CopyClassNodes);
|
|
12247
|
-
return printer.printNode(
|
|
12261
|
+
return printer.printNode(ts44.EmitHint.Unspecified, fn, sf);
|
|
12248
12262
|
}
|
|
12249
12263
|
};
|
|
12250
12264
|
var TypeCtorOp = class {
|
|
@@ -12262,14 +12276,14 @@ var TypeCtorOp = class {
|
|
|
12262
12276
|
execute(im, sf, refEmitter, printer) {
|
|
12263
12277
|
const emitEnv = new ReferenceEmitEnvironment(im, refEmitter, this.reflector, sf);
|
|
12264
12278
|
const tcb = generateInlineTypeCtor(emitEnv, this.ref.node, this.meta);
|
|
12265
|
-
return printer.printNode(
|
|
12279
|
+
return printer.printNode(ts44.EmitHint.Unspecified, tcb, sf);
|
|
12266
12280
|
}
|
|
12267
12281
|
};
|
|
12268
12282
|
|
|
12269
|
-
// bazel-out/
|
|
12283
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
12270
12284
|
import { ParseLocation as ParseLocation2, ParseSourceSpan as ParseSourceSpan2 } from "@angular/compiler";
|
|
12271
12285
|
|
|
12272
|
-
// bazel-out/
|
|
12286
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/line_mappings.mjs
|
|
12273
12287
|
var LF_CHAR = 10;
|
|
12274
12288
|
var CR_CHAR = 13;
|
|
12275
12289
|
var LINE_SEP_CHAR = 8232;
|
|
@@ -12310,7 +12324,7 @@ function findClosestLineStartPosition(linesMap, position, low = 0, high = linesM
|
|
|
12310
12324
|
return low - 1;
|
|
12311
12325
|
}
|
|
12312
12326
|
|
|
12313
|
-
// bazel-out/
|
|
12327
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/source.mjs
|
|
12314
12328
|
var TemplateSource = class {
|
|
12315
12329
|
mapping;
|
|
12316
12330
|
file;
|
|
@@ -12359,9 +12373,9 @@ var DirectiveSourceManager = class {
|
|
|
12359
12373
|
}
|
|
12360
12374
|
};
|
|
12361
12375
|
|
|
12362
|
-
// bazel-out/
|
|
12376
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/template_symbol_builder.mjs
|
|
12363
12377
|
import { AST, ASTWithName, ASTWithSource as ASTWithSource2, BindingPipe as BindingPipe2, PropertyRead as PropertyRead4, PropertyWrite as PropertyWrite3, R3Identifiers as R3Identifiers5, SafePropertyRead as SafePropertyRead4, TmplAstBoundAttribute as TmplAstBoundAttribute2, TmplAstBoundEvent, TmplAstElement as TmplAstElement3, TmplAstLetDeclaration as TmplAstLetDeclaration3, TmplAstReference as TmplAstReference3, TmplAstTemplate as TmplAstTemplate2, TmplAstTextAttribute as TmplAstTextAttribute3, TmplAstVariable as TmplAstVariable2 } from "@angular/compiler";
|
|
12364
|
-
import
|
|
12378
|
+
import ts45 from "typescript";
|
|
12365
12379
|
var SymbolBuilder = class {
|
|
12366
12380
|
tcbPath;
|
|
12367
12381
|
tcbIsShim;
|
|
@@ -12415,7 +12429,7 @@ var SymbolBuilder = class {
|
|
|
12415
12429
|
const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
|
|
12416
12430
|
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
12417
12431
|
withSpan: elementSourceSpan,
|
|
12418
|
-
filter:
|
|
12432
|
+
filter: ts45.isVariableDeclaration
|
|
12419
12433
|
});
|
|
12420
12434
|
if (node === null) {
|
|
12421
12435
|
return null;
|
|
@@ -12436,7 +12450,7 @@ var SymbolBuilder = class {
|
|
|
12436
12450
|
var _a;
|
|
12437
12451
|
const elementSourceSpan = (_a = element.startSourceSpan) != null ? _a : element.sourceSpan;
|
|
12438
12452
|
const tcbSourceFile = this.typeCheckBlock.getSourceFile();
|
|
12439
|
-
const isDirectiveDeclaration = (node) => (
|
|
12453
|
+
const isDirectiveDeclaration = (node) => (ts45.isTypeNode(node) || ts45.isIdentifier(node)) && ts45.isVariableDeclaration(node.parent) && hasExpressionIdentifier(tcbSourceFile, node, ExpressionIdentifier.DIRECTIVE);
|
|
12440
12454
|
const nodes = findAllMatchingNodes(this.typeCheckBlock, {
|
|
12441
12455
|
withSpan: elementSourceSpan,
|
|
12442
12456
|
filter: isDirectiveDeclaration
|
|
@@ -12444,7 +12458,7 @@ var SymbolBuilder = class {
|
|
|
12444
12458
|
const symbols = [];
|
|
12445
12459
|
for (const node of nodes) {
|
|
12446
12460
|
const symbol = this.getSymbolOfTsNode(node.parent);
|
|
12447
|
-
if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !
|
|
12461
|
+
if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts45.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
|
|
12448
12462
|
continue;
|
|
12449
12463
|
}
|
|
12450
12464
|
const meta = this.getDirectiveMeta(element, symbol.tsSymbol.valueDeclaration);
|
|
@@ -12475,7 +12489,7 @@ var SymbolBuilder = class {
|
|
|
12475
12489
|
if (!isHostDirectiveMetaForGlobalMode(current)) {
|
|
12476
12490
|
throw new Error("Impossible state: typecheck code path in local compilation mode.");
|
|
12477
12491
|
}
|
|
12478
|
-
if (!
|
|
12492
|
+
if (!ts45.isClassDeclaration(current.directive.node)) {
|
|
12479
12493
|
continue;
|
|
12480
12494
|
}
|
|
12481
12495
|
const symbol = this.getSymbolOfTsNode(current.directive.node);
|
|
@@ -12548,10 +12562,10 @@ var SymbolBuilder = class {
|
|
|
12548
12562
|
if (!isAccessExpression(n2)) {
|
|
12549
12563
|
return false;
|
|
12550
12564
|
}
|
|
12551
|
-
if (
|
|
12565
|
+
if (ts45.isPropertyAccessExpression(n2)) {
|
|
12552
12566
|
return n2.name.getText() === expectedAccess;
|
|
12553
12567
|
} else {
|
|
12554
|
-
return
|
|
12568
|
+
return ts45.isStringLiteral(n2.argumentExpression) && n2.argumentExpression.text === expectedAccess;
|
|
12555
12569
|
}
|
|
12556
12570
|
}
|
|
12557
12571
|
const outputFieldAccesses = findAllMatchingNodes(this.typeCheckBlock, {
|
|
@@ -12561,7 +12575,7 @@ var SymbolBuilder = class {
|
|
|
12561
12575
|
const bindings = [];
|
|
12562
12576
|
for (const outputFieldAccess of outputFieldAccesses) {
|
|
12563
12577
|
if (consumer instanceof TmplAstTemplate2 || consumer instanceof TmplAstElement3) {
|
|
12564
|
-
if (!
|
|
12578
|
+
if (!ts45.isPropertyAccessExpression(outputFieldAccess)) {
|
|
12565
12579
|
continue;
|
|
12566
12580
|
}
|
|
12567
12581
|
const addEventListener = outputFieldAccess.name;
|
|
@@ -12584,7 +12598,7 @@ var SymbolBuilder = class {
|
|
|
12584
12598
|
}
|
|
12585
12599
|
});
|
|
12586
12600
|
} else {
|
|
12587
|
-
if (!
|
|
12601
|
+
if (!ts45.isElementAccessExpression(outputFieldAccess)) {
|
|
12588
12602
|
continue;
|
|
12589
12603
|
}
|
|
12590
12604
|
const tsSymbol = this.getTypeChecker().getSymbolAtLocation(outputFieldAccess.argumentExpression);
|
|
@@ -12637,7 +12651,7 @@ var SymbolBuilder = class {
|
|
|
12637
12651
|
let fieldAccessExpr;
|
|
12638
12652
|
let symbolInfo = null;
|
|
12639
12653
|
if (signalInputAssignment !== null) {
|
|
12640
|
-
if (
|
|
12654
|
+
if (ts45.isIdentifier(signalInputAssignment.fieldExpr)) {
|
|
12641
12655
|
continue;
|
|
12642
12656
|
}
|
|
12643
12657
|
const fieldSymbol = this.getSymbolOfTsNode(signalInputAssignment.fieldExpr);
|
|
@@ -12678,7 +12692,7 @@ var SymbolBuilder = class {
|
|
|
12678
12692
|
return null;
|
|
12679
12693
|
}
|
|
12680
12694
|
const [declaration] = tsSymbol.declarations;
|
|
12681
|
-
if (!
|
|
12695
|
+
if (!ts45.isVariableDeclaration(declaration) || !hasExpressionIdentifier(
|
|
12682
12696
|
declaration.getSourceFile(),
|
|
12683
12697
|
(_a = declaration.type) != null ? _a : declaration.name,
|
|
12684
12698
|
ExpressionIdentifier.DIRECTIVE
|
|
@@ -12686,7 +12700,7 @@ var SymbolBuilder = class {
|
|
|
12686
12700
|
return null;
|
|
12687
12701
|
}
|
|
12688
12702
|
const symbol = this.getSymbolOfTsNode(declaration);
|
|
12689
|
-
if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !
|
|
12703
|
+
if (symbol === null || !isSymbolWithValueDeclaration(symbol.tsSymbol) || !ts45.isClassDeclaration(symbol.tsSymbol.valueDeclaration)) {
|
|
12690
12704
|
return null;
|
|
12691
12705
|
}
|
|
12692
12706
|
const ref = new Reference(symbol.tsSymbol.valueDeclaration);
|
|
@@ -12708,13 +12722,13 @@ var SymbolBuilder = class {
|
|
|
12708
12722
|
getSymbolOfVariable(variable) {
|
|
12709
12723
|
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
12710
12724
|
withSpan: variable.sourceSpan,
|
|
12711
|
-
filter:
|
|
12725
|
+
filter: ts45.isVariableDeclaration
|
|
12712
12726
|
});
|
|
12713
12727
|
if (node === null) {
|
|
12714
12728
|
return null;
|
|
12715
12729
|
}
|
|
12716
12730
|
let nodeValueSymbol = null;
|
|
12717
|
-
if (
|
|
12731
|
+
if (ts45.isForOfStatement(node.parent.parent)) {
|
|
12718
12732
|
nodeValueSymbol = this.getSymbolOfTsNode(node);
|
|
12719
12733
|
} else if (node.initializer !== void 0) {
|
|
12720
12734
|
nodeValueSymbol = this.getSymbolOfTsNode(node.initializer);
|
|
@@ -12739,12 +12753,12 @@ var SymbolBuilder = class {
|
|
|
12739
12753
|
const target = this.typeCheckData.boundTarget.getReferenceTarget(ref);
|
|
12740
12754
|
let node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
12741
12755
|
withSpan: ref.sourceSpan,
|
|
12742
|
-
filter:
|
|
12756
|
+
filter: ts45.isVariableDeclaration
|
|
12743
12757
|
});
|
|
12744
12758
|
if (node === null || target === null || node.initializer === void 0) {
|
|
12745
12759
|
return null;
|
|
12746
12760
|
}
|
|
12747
|
-
const originalDeclaration =
|
|
12761
|
+
const originalDeclaration = ts45.isParenthesizedExpression(node.initializer) && ts45.isAsExpression(node.initializer.expression) ? this.getTypeChecker().getSymbolAtLocation(node.name) : this.getTypeChecker().getSymbolAtLocation(node.initializer);
|
|
12748
12762
|
if (originalDeclaration === void 0 || originalDeclaration.valueDeclaration === void 0) {
|
|
12749
12763
|
return null;
|
|
12750
12764
|
}
|
|
@@ -12768,7 +12782,7 @@ var SymbolBuilder = class {
|
|
|
12768
12782
|
referenceVarLocation: referenceVarTcbLocation
|
|
12769
12783
|
};
|
|
12770
12784
|
} else {
|
|
12771
|
-
if (!
|
|
12785
|
+
if (!ts45.isClassDeclaration(target.directive.ref.node)) {
|
|
12772
12786
|
return null;
|
|
12773
12787
|
}
|
|
12774
12788
|
return {
|
|
@@ -12785,7 +12799,7 @@ var SymbolBuilder = class {
|
|
|
12785
12799
|
getSymbolOfLetDeclaration(decl) {
|
|
12786
12800
|
const node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
12787
12801
|
withSpan: decl.sourceSpan,
|
|
12788
|
-
filter:
|
|
12802
|
+
filter: ts45.isVariableDeclaration
|
|
12789
12803
|
});
|
|
12790
12804
|
if (node === null) {
|
|
12791
12805
|
return null;
|
|
@@ -12810,7 +12824,7 @@ var SymbolBuilder = class {
|
|
|
12810
12824
|
getSymbolOfPipe(expression) {
|
|
12811
12825
|
const methodAccess = findFirstMatchingNode(this.typeCheckBlock, {
|
|
12812
12826
|
withSpan: expression.nameSpan,
|
|
12813
|
-
filter:
|
|
12827
|
+
filter: ts45.isPropertyAccessExpression
|
|
12814
12828
|
});
|
|
12815
12829
|
if (methodAccess === null) {
|
|
12816
12830
|
return null;
|
|
@@ -12853,7 +12867,7 @@ var SymbolBuilder = class {
|
|
|
12853
12867
|
if (expression instanceof PropertyRead4) {
|
|
12854
12868
|
node = findFirstMatchingNode(this.typeCheckBlock, {
|
|
12855
12869
|
withSpan,
|
|
12856
|
-
filter:
|
|
12870
|
+
filter: ts45.isPropertyAccessExpression
|
|
12857
12871
|
});
|
|
12858
12872
|
}
|
|
12859
12873
|
if (node === null) {
|
|
@@ -12862,10 +12876,10 @@ var SymbolBuilder = class {
|
|
|
12862
12876
|
if (node === null) {
|
|
12863
12877
|
return null;
|
|
12864
12878
|
}
|
|
12865
|
-
while (
|
|
12879
|
+
while (ts45.isParenthesizedExpression(node)) {
|
|
12866
12880
|
node = node.expression;
|
|
12867
12881
|
}
|
|
12868
|
-
if (expression instanceof SafePropertyRead4 &&
|
|
12882
|
+
if (expression instanceof SafePropertyRead4 && ts45.isConditionalExpression(node)) {
|
|
12869
12883
|
const whenTrueSymbol = this.getSymbolOfTsNode(node.whenTrue);
|
|
12870
12884
|
if (whenTrueSymbol === null) {
|
|
12871
12885
|
return null;
|
|
@@ -12882,13 +12896,13 @@ var SymbolBuilder = class {
|
|
|
12882
12896
|
}
|
|
12883
12897
|
getSymbolOfTsNode(node) {
|
|
12884
12898
|
var _a;
|
|
12885
|
-
while (
|
|
12899
|
+
while (ts45.isParenthesizedExpression(node)) {
|
|
12886
12900
|
node = node.expression;
|
|
12887
12901
|
}
|
|
12888
12902
|
let tsSymbol;
|
|
12889
|
-
if (
|
|
12903
|
+
if (ts45.isPropertyAccessExpression(node)) {
|
|
12890
12904
|
tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
|
|
12891
|
-
} else if (
|
|
12905
|
+
} else if (ts45.isCallExpression(node)) {
|
|
12892
12906
|
tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.expression);
|
|
12893
12907
|
} else {
|
|
12894
12908
|
tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
|
|
@@ -12906,13 +12920,13 @@ var SymbolBuilder = class {
|
|
|
12906
12920
|
};
|
|
12907
12921
|
}
|
|
12908
12922
|
getTcbPositionForNode(node) {
|
|
12909
|
-
if (
|
|
12923
|
+
if (ts45.isTypeReferenceNode(node)) {
|
|
12910
12924
|
return this.getTcbPositionForNode(node.typeName);
|
|
12911
|
-
} else if (
|
|
12925
|
+
} else if (ts45.isQualifiedName(node)) {
|
|
12912
12926
|
return node.right.getStart();
|
|
12913
|
-
} else if (
|
|
12927
|
+
} else if (ts45.isPropertyAccessExpression(node)) {
|
|
12914
12928
|
return node.name.getStart();
|
|
12915
|
-
} else if (
|
|
12929
|
+
} else if (ts45.isElementAccessExpression(node)) {
|
|
12916
12930
|
return node.argumentExpression.getStart();
|
|
12917
12931
|
} else {
|
|
12918
12932
|
return node.getStart();
|
|
@@ -12926,13 +12940,13 @@ function sourceSpanEqual(a, b) {
|
|
|
12926
12940
|
return a.start.offset === b.start.offset && a.end.offset === b.end.offset;
|
|
12927
12941
|
}
|
|
12928
12942
|
function unwrapSignalInputWriteTAccessor(expr) {
|
|
12929
|
-
if (!
|
|
12943
|
+
if (!ts45.isElementAccessExpression(expr) || !ts45.isPropertyAccessExpression(expr.argumentExpression)) {
|
|
12930
12944
|
return null;
|
|
12931
12945
|
}
|
|
12932
|
-
if (!
|
|
12946
|
+
if (!ts45.isIdentifier(expr.argumentExpression.name) || expr.argumentExpression.name.text !== R3Identifiers5.InputSignalBrandWriteType.name) {
|
|
12933
12947
|
return null;
|
|
12934
12948
|
}
|
|
12935
|
-
if (!
|
|
12949
|
+
if (!ts45.isPropertyAccessExpression(expr.expression) && !ts45.isElementAccessExpression(expr.expression) && !ts45.isIdentifier(expr.expression)) {
|
|
12936
12950
|
throw new Error("Unexpected expression for signal input write type.");
|
|
12937
12951
|
}
|
|
12938
12952
|
return {
|
|
@@ -12941,7 +12955,7 @@ function unwrapSignalInputWriteTAccessor(expr) {
|
|
|
12941
12955
|
};
|
|
12942
12956
|
}
|
|
12943
12957
|
|
|
12944
|
-
// bazel-out/
|
|
12958
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/src/checker.mjs
|
|
12945
12959
|
var REGISTRY2 = new DomElementSchemaRegistry2();
|
|
12946
12960
|
var TemplateTypeCheckerImpl = class {
|
|
12947
12961
|
originalProgram;
|
|
@@ -13665,17 +13679,17 @@ var SingleShimTypeCheckingHost = class extends SingleFileTypeCheckingHost {
|
|
|
13665
13679
|
}
|
|
13666
13680
|
};
|
|
13667
13681
|
|
|
13668
|
-
// bazel-out/
|
|
13682
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
|
|
13669
13683
|
import { outputAst as o3 } from "@angular/compiler";
|
|
13670
13684
|
|
|
13671
|
-
// bazel-out/
|
|
13685
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/extract_dependencies.mjs
|
|
13672
13686
|
import { outputAst as o2 } from "@angular/compiler";
|
|
13673
|
-
import
|
|
13687
|
+
import ts46 from "typescript";
|
|
13674
13688
|
function extractHmrDependencies(node, definition, factory, deferBlockMetadata, classMetadata, debugInfo, reflection, evaluator) {
|
|
13675
13689
|
var _a, _b;
|
|
13676
|
-
const name =
|
|
13690
|
+
const name = ts46.isClassDeclaration(node) && node.name ? node.name.text : null;
|
|
13677
13691
|
const visitor = new PotentialTopLevelReadsVisitor();
|
|
13678
|
-
const sourceFile =
|
|
13692
|
+
const sourceFile = ts46.getOriginalNode(node).getSourceFile();
|
|
13679
13693
|
definition.expression.visitExpression(visitor, null);
|
|
13680
13694
|
definition.statements.forEach((statement) => statement.visitStatement(visitor, null));
|
|
13681
13695
|
(_a = factory.initializer) == null ? void 0 : _a.visitExpression(visitor, null);
|
|
@@ -13736,19 +13750,19 @@ function getRuntimeRepresentation(node, reflection, evaluator) {
|
|
|
13736
13750
|
function getTopLevelDeclarationNames(sourceFile) {
|
|
13737
13751
|
const results = /* @__PURE__ */ new Set();
|
|
13738
13752
|
for (const node of sourceFile.statements) {
|
|
13739
|
-
if (
|
|
13753
|
+
if (ts46.isClassDeclaration(node) || ts46.isFunctionDeclaration(node) || ts46.isEnumDeclaration(node)) {
|
|
13740
13754
|
if (node.name) {
|
|
13741
13755
|
results.add(node.name.text);
|
|
13742
13756
|
}
|
|
13743
13757
|
continue;
|
|
13744
13758
|
}
|
|
13745
|
-
if (
|
|
13759
|
+
if (ts46.isVariableStatement(node)) {
|
|
13746
13760
|
for (const decl of node.declarationList.declarations) {
|
|
13747
13761
|
trackBindingName(decl.name, results);
|
|
13748
13762
|
}
|
|
13749
13763
|
continue;
|
|
13750
13764
|
}
|
|
13751
|
-
if (
|
|
13765
|
+
if (ts46.isImportDeclaration(node) && node.importClause) {
|
|
13752
13766
|
const importClause = node.importClause;
|
|
13753
13767
|
if (importClause.isTypeOnly) {
|
|
13754
13768
|
continue;
|
|
@@ -13758,7 +13772,7 @@ function getTopLevelDeclarationNames(sourceFile) {
|
|
|
13758
13772
|
}
|
|
13759
13773
|
if (importClause.namedBindings) {
|
|
13760
13774
|
const namedBindings = importClause.namedBindings;
|
|
13761
|
-
if (
|
|
13775
|
+
if (ts46.isNamespaceImport(namedBindings)) {
|
|
13762
13776
|
results.add(namedBindings.name.text);
|
|
13763
13777
|
} else {
|
|
13764
13778
|
namedBindings.elements.forEach((el) => {
|
|
@@ -13774,11 +13788,11 @@ function getTopLevelDeclarationNames(sourceFile) {
|
|
|
13774
13788
|
return results;
|
|
13775
13789
|
}
|
|
13776
13790
|
function trackBindingName(node, results) {
|
|
13777
|
-
if (
|
|
13791
|
+
if (ts46.isIdentifier(node)) {
|
|
13778
13792
|
results.add(node.text);
|
|
13779
13793
|
} else {
|
|
13780
13794
|
for (const el of node.elements) {
|
|
13781
|
-
if (!
|
|
13795
|
+
if (!ts46.isOmittedExpression(el)) {
|
|
13782
13796
|
trackBindingName(el.name, results);
|
|
13783
13797
|
}
|
|
13784
13798
|
}
|
|
@@ -13804,10 +13818,10 @@ var PotentialTopLevelReadsVisitor = class extends o2.RecursiveAstVisitor {
|
|
|
13804
13818
|
super.visitWrappedNodeExpr(ast, context);
|
|
13805
13819
|
}
|
|
13806
13820
|
addAllTopLevelIdentifiers = (node) => {
|
|
13807
|
-
if (
|
|
13821
|
+
if (ts46.isIdentifier(node) && this.isTopLevelIdentifierReference(node)) {
|
|
13808
13822
|
this.allReads.add(node);
|
|
13809
13823
|
} else {
|
|
13810
|
-
|
|
13824
|
+
ts46.forEachChild(node, this.addAllTopLevelIdentifiers);
|
|
13811
13825
|
}
|
|
13812
13826
|
};
|
|
13813
13827
|
isTopLevelIdentifierReference(identifier) {
|
|
@@ -13816,52 +13830,52 @@ var PotentialTopLevelReadsVisitor = class extends o2.RecursiveAstVisitor {
|
|
|
13816
13830
|
if (!parent) {
|
|
13817
13831
|
return false;
|
|
13818
13832
|
}
|
|
13819
|
-
if (
|
|
13820
|
-
while (parent &&
|
|
13833
|
+
if (ts46.isParenthesizedExpression(parent) && parent.expression === node) {
|
|
13834
|
+
while (parent && ts46.isParenthesizedExpression(parent)) {
|
|
13821
13835
|
node = parent;
|
|
13822
13836
|
parent = parent.parent;
|
|
13823
13837
|
}
|
|
13824
13838
|
}
|
|
13825
|
-
if (
|
|
13839
|
+
if (ts46.isSourceFile(parent)) {
|
|
13826
13840
|
return true;
|
|
13827
13841
|
}
|
|
13828
|
-
if (
|
|
13842
|
+
if (ts46.isCallExpression(parent)) {
|
|
13829
13843
|
return parent.expression === node || parent.arguments.includes(node);
|
|
13830
13844
|
}
|
|
13831
|
-
if (
|
|
13845
|
+
if (ts46.isExpressionStatement(parent) || ts46.isPropertyAccessExpression(parent) || ts46.isComputedPropertyName(parent) || ts46.isTemplateSpan(parent) || ts46.isSpreadAssignment(parent) || ts46.isSpreadElement(parent) || ts46.isAwaitExpression(parent) || ts46.isNonNullExpression(parent) || ts46.isIfStatement(parent) || ts46.isDoStatement(parent) || ts46.isWhileStatement(parent) || ts46.isSwitchStatement(parent) || ts46.isCaseClause(parent) || ts46.isThrowStatement(parent) || ts46.isNewExpression(parent)) {
|
|
13832
13846
|
return parent.expression === node;
|
|
13833
13847
|
}
|
|
13834
|
-
if (
|
|
13848
|
+
if (ts46.isArrayLiteralExpression(parent)) {
|
|
13835
13849
|
return parent.elements.includes(node);
|
|
13836
13850
|
}
|
|
13837
|
-
if (
|
|
13851
|
+
if (ts46.isPropertyAssignment(parent) || ts46.isParameter(parent) || ts46.isBindingElement(parent) || ts46.isPropertyDeclaration(parent) || ts46.isEnumMember(parent)) {
|
|
13838
13852
|
return parent.initializer === node;
|
|
13839
13853
|
}
|
|
13840
|
-
if (
|
|
13854
|
+
if (ts46.isVariableDeclaration(parent)) {
|
|
13841
13855
|
return parent.name === node || parent.initializer === node;
|
|
13842
13856
|
}
|
|
13843
|
-
if (
|
|
13857
|
+
if (ts46.isClassDeclaration(parent) || ts46.isFunctionDeclaration(parent) || ts46.isShorthandPropertyAssignment(parent)) {
|
|
13844
13858
|
return parent.name === node;
|
|
13845
13859
|
}
|
|
13846
|
-
if (
|
|
13860
|
+
if (ts46.isElementAccessExpression(parent)) {
|
|
13847
13861
|
return parent.expression === node || parent.argumentExpression === node;
|
|
13848
13862
|
}
|
|
13849
|
-
if (
|
|
13863
|
+
if (ts46.isBinaryExpression(parent)) {
|
|
13850
13864
|
return parent.left === node || parent.right === node;
|
|
13851
13865
|
}
|
|
13852
|
-
if (
|
|
13866
|
+
if (ts46.isForInStatement(parent) || ts46.isForOfStatement(parent)) {
|
|
13853
13867
|
return parent.expression === node || parent.initializer === node;
|
|
13854
13868
|
}
|
|
13855
|
-
if (
|
|
13869
|
+
if (ts46.isForStatement(parent)) {
|
|
13856
13870
|
return parent.condition === node || parent.initializer === node || parent.incrementor === node;
|
|
13857
13871
|
}
|
|
13858
|
-
if (
|
|
13872
|
+
if (ts46.isArrowFunction(parent)) {
|
|
13859
13873
|
return parent.body === node;
|
|
13860
13874
|
}
|
|
13861
|
-
if (
|
|
13875
|
+
if (ts46.isImportSpecifier(parent) || ts46.isExportSpecifier(parent)) {
|
|
13862
13876
|
return (parent.propertyName || parent.name) === node;
|
|
13863
13877
|
}
|
|
13864
|
-
if (
|
|
13878
|
+
if (ts46.isConditionalExpression(parent)) {
|
|
13865
13879
|
return parent.condition === node || parent.whenFalse === node || parent.whenTrue === node;
|
|
13866
13880
|
}
|
|
13867
13881
|
return false;
|
|
@@ -13873,20 +13887,20 @@ var PotentialTopLevelReadsVisitor = class extends o2.RecursiveAstVisitor {
|
|
|
13873
13887
|
function isConstEnumReference(node, reflection) {
|
|
13874
13888
|
var _a;
|
|
13875
13889
|
const parent = node.parent;
|
|
13876
|
-
if (!parent || !
|
|
13890
|
+
if (!parent || !ts46.isPropertyAccessExpression(parent) || parent.expression !== node || !ts46.isIdentifier(parent.name)) {
|
|
13877
13891
|
return false;
|
|
13878
13892
|
}
|
|
13879
13893
|
const declaration = reflection.getDeclarationOfIdentifier(node);
|
|
13880
|
-
return declaration !== null &&
|
|
13894
|
+
return declaration !== null && ts46.isEnumDeclaration(declaration.node) && !!((_a = declaration.node.modifiers) == null ? void 0 : _a.some((m) => m.kind === ts46.SyntaxKind.ConstKeyword));
|
|
13881
13895
|
}
|
|
13882
13896
|
|
|
13883
|
-
// bazel-out/
|
|
13884
|
-
import
|
|
13897
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/metadata.mjs
|
|
13898
|
+
import ts47 from "typescript";
|
|
13885
13899
|
function extractHmrMetatadata(clazz, reflection, evaluator, compilerHost, rootDirs, definition, factory, deferBlockMetadata, classMetadata, debugInfo) {
|
|
13886
13900
|
if (!reflection.isClass(clazz)) {
|
|
13887
13901
|
return null;
|
|
13888
13902
|
}
|
|
13889
|
-
const sourceFile =
|
|
13903
|
+
const sourceFile = ts47.getOriginalNode(clazz).getSourceFile();
|
|
13890
13904
|
const filePath = getProjectRelativePath(sourceFile.fileName, rootDirs, compilerHost) || compilerHost.getCanonicalFileName(sourceFile.fileName);
|
|
13891
13905
|
const dependencies = extractHmrDependencies(clazz, definition, factory, deferBlockMetadata, classMetadata, debugInfo, reflection, evaluator);
|
|
13892
13906
|
if (dependencies === null) {
|
|
@@ -13902,9 +13916,9 @@ function extractHmrMetatadata(clazz, reflection, evaluator, compilerHost, rootDi
|
|
|
13902
13916
|
return meta;
|
|
13903
13917
|
}
|
|
13904
13918
|
|
|
13905
|
-
// bazel-out/
|
|
13919
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/hmr/src/update_declaration.mjs
|
|
13906
13920
|
import { compileHmrUpdateCallback } from "@angular/compiler";
|
|
13907
|
-
import
|
|
13921
|
+
import ts48 from "typescript";
|
|
13908
13922
|
function getHmrUpdateDeclaration(compilationResults, constantStatements, meta, declaration) {
|
|
13909
13923
|
const namespaceSpecifiers = meta.namespaceDependencies.reduce((result, current) => {
|
|
13910
13924
|
result.set(current.moduleName, current.assignedName);
|
|
@@ -13916,11 +13930,11 @@ function getHmrUpdateDeclaration(compilationResults, constantStatements, meta, d
|
|
|
13916
13930
|
rewriter: importRewriter
|
|
13917
13931
|
});
|
|
13918
13932
|
const callback = compileHmrUpdateCallback(compilationResults, constantStatements, meta);
|
|
13919
|
-
const sourceFile =
|
|
13933
|
+
const sourceFile = ts48.getOriginalNode(declaration).getSourceFile();
|
|
13920
13934
|
const node = translateStatement(sourceFile, callback, importManager);
|
|
13921
|
-
return
|
|
13922
|
-
|
|
13923
|
-
|
|
13935
|
+
return ts48.factory.updateFunctionDeclaration(node, [
|
|
13936
|
+
ts48.factory.createToken(ts48.SyntaxKind.ExportKeyword),
|
|
13937
|
+
ts48.factory.createToken(ts48.SyntaxKind.DefaultKeyword)
|
|
13924
13938
|
], node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body);
|
|
13925
13939
|
}
|
|
13926
13940
|
var HmrModuleImportRewriter = class {
|
|
@@ -13939,7 +13953,7 @@ var HmrModuleImportRewriter = class {
|
|
|
13939
13953
|
}
|
|
13940
13954
|
};
|
|
13941
13955
|
|
|
13942
|
-
// bazel-out/
|
|
13956
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
13943
13957
|
var EMPTY_ARRAY2 = [];
|
|
13944
13958
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
13945
13959
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -14264,7 +14278,7 @@ var ComponentDecoratorHandler = class {
|
|
|
14264
14278
|
path: absoluteFrom(template.declaration.resolvedTemplateUrl),
|
|
14265
14279
|
expression: template.sourceMapping.node
|
|
14266
14280
|
};
|
|
14267
|
-
const relativeTemplatePath = getProjectRelativePath((_d = templateResource.path) != null ? _d :
|
|
14281
|
+
const relativeTemplatePath = getProjectRelativePath((_d = templateResource.path) != null ? _d : ts49.getOriginalNode(node).getSourceFile().fileName, this.rootDirs, this.compilerHost);
|
|
14268
14282
|
let styles = [];
|
|
14269
14283
|
const externalStyles = [];
|
|
14270
14284
|
const styleResources = extractInlineStyleResources(component);
|
|
@@ -14279,7 +14293,7 @@ var ComponentDecoratorHandler = class {
|
|
|
14279
14293
|
externalStyles.push(resourceUrl);
|
|
14280
14294
|
continue;
|
|
14281
14295
|
}
|
|
14282
|
-
if (styleUrl.source === 2 &&
|
|
14296
|
+
if (styleUrl.source === 2 && ts49.isStringLiteralLike(styleUrl.expression)) {
|
|
14283
14297
|
styleResources.add({
|
|
14284
14298
|
path: absoluteFrom(resourceUrl),
|
|
14285
14299
|
expression: styleUrl.expression
|
|
@@ -14482,7 +14496,7 @@ var ComponentDecoratorHandler = class {
|
|
|
14482
14496
|
}
|
|
14483
14497
|
typeCheck(ctx, node, meta) {
|
|
14484
14498
|
var _a;
|
|
14485
|
-
if (this.typeCheckScopeRegistry === null || !
|
|
14499
|
+
if (this.typeCheckScopeRegistry === null || !ts49.isClassDeclaration(node)) {
|
|
14486
14500
|
return;
|
|
14487
14501
|
}
|
|
14488
14502
|
if (meta.isPoisoned && !this.usePoisonedData) {
|
|
@@ -14916,12 +14930,12 @@ var ComponentDecoratorHandler = class {
|
|
|
14916
14930
|
}
|
|
14917
14931
|
collectExplicitlyDeferredSymbols(rawDeferredImports) {
|
|
14918
14932
|
const deferredTypes = /* @__PURE__ */ new Map();
|
|
14919
|
-
if (!
|
|
14933
|
+
if (!ts49.isArrayLiteralExpression(rawDeferredImports)) {
|
|
14920
14934
|
return deferredTypes;
|
|
14921
14935
|
}
|
|
14922
14936
|
for (const element of rawDeferredImports.elements) {
|
|
14923
14937
|
const node = tryUnwrapForwardRef(element, this.reflector) || element;
|
|
14924
|
-
if (!
|
|
14938
|
+
if (!ts49.isIdentifier(node)) {
|
|
14925
14939
|
continue;
|
|
14926
14940
|
}
|
|
14927
14941
|
const imp = this.reflector.getImportOfIdentifier(node);
|
|
@@ -14988,12 +15002,12 @@ var ComponentDecoratorHandler = class {
|
|
|
14988
15002
|
}
|
|
14989
15003
|
}
|
|
14990
15004
|
registerDeferrableCandidates(componentClassDecl, importsExpr, isDeferredImport, allDeferredDecls, eagerlyUsedDecls, resolutionData) {
|
|
14991
|
-
if (!
|
|
15005
|
+
if (!ts49.isArrayLiteralExpression(importsExpr)) {
|
|
14992
15006
|
return;
|
|
14993
15007
|
}
|
|
14994
15008
|
for (const element of importsExpr.elements) {
|
|
14995
15009
|
const node = tryUnwrapForwardRef(element, this.reflector) || element;
|
|
14996
|
-
if (!
|
|
15010
|
+
if (!ts49.isIdentifier(node)) {
|
|
14997
15011
|
continue;
|
|
14998
15012
|
}
|
|
14999
15013
|
const imp = this.reflector.getImportOfIdentifier(node);
|
|
@@ -15125,9 +15139,9 @@ function isDefaultImport(node) {
|
|
|
15125
15139
|
return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
|
|
15126
15140
|
}
|
|
15127
15141
|
|
|
15128
|
-
// bazel-out/
|
|
15142
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
15129
15143
|
import { compileClassMetadata as compileClassMetadata3, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression3, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr10 } from "@angular/compiler";
|
|
15130
|
-
import
|
|
15144
|
+
import ts50 from "typescript";
|
|
15131
15145
|
var InjectableDecoratorHandler = class {
|
|
15132
15146
|
reflector;
|
|
15133
15147
|
evaluator;
|
|
@@ -15256,7 +15270,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
15256
15270
|
};
|
|
15257
15271
|
} else if (decorator.args.length === 1) {
|
|
15258
15272
|
const metaNode = decorator.args[0];
|
|
15259
|
-
if (!
|
|
15273
|
+
if (!ts50.isObjectLiteralExpression(metaNode)) {
|
|
15260
15274
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
|
|
15261
15275
|
}
|
|
15262
15276
|
const meta = reflectObjectLiteral(metaNode);
|
|
@@ -15264,7 +15278,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
15264
15278
|
let deps = void 0;
|
|
15265
15279
|
if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
|
|
15266
15280
|
const depsExpr = meta.get("deps");
|
|
15267
|
-
if (!
|
|
15281
|
+
if (!ts50.isArrayLiteralExpression(depsExpr)) {
|
|
15268
15282
|
throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
|
|
15269
15283
|
}
|
|
15270
15284
|
deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
|
|
@@ -15349,12 +15363,12 @@ function getDep(dep, reflector) {
|
|
|
15349
15363
|
}
|
|
15350
15364
|
return true;
|
|
15351
15365
|
}
|
|
15352
|
-
if (
|
|
15366
|
+
if (ts50.isArrayLiteralExpression(dep)) {
|
|
15353
15367
|
dep.elements.forEach((el) => {
|
|
15354
15368
|
let isDecorator = false;
|
|
15355
|
-
if (
|
|
15369
|
+
if (ts50.isIdentifier(el)) {
|
|
15356
15370
|
isDecorator = maybeUpdateDecorator(el, reflector);
|
|
15357
|
-
} else if (
|
|
15371
|
+
} else if (ts50.isNewExpression(el) && ts50.isIdentifier(el.expression)) {
|
|
15358
15372
|
const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
|
|
15359
15373
|
isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
|
|
15360
15374
|
}
|
|
@@ -15366,9 +15380,9 @@ function getDep(dep, reflector) {
|
|
|
15366
15380
|
return meta;
|
|
15367
15381
|
}
|
|
15368
15382
|
|
|
15369
|
-
// bazel-out/
|
|
15383
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
15370
15384
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
15371
|
-
import
|
|
15385
|
+
import ts51 from "typescript";
|
|
15372
15386
|
var PipeSymbol = class extends SemanticSymbol {
|
|
15373
15387
|
name;
|
|
15374
15388
|
constructor(decl, name) {
|
|
@@ -15441,7 +15455,7 @@ var PipeDecoratorHandler = class {
|
|
|
15441
15455
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, "@Pipe must have exactly one argument");
|
|
15442
15456
|
}
|
|
15443
15457
|
const meta = unwrapExpression(decorator.args[0]);
|
|
15444
|
-
if (!
|
|
15458
|
+
if (!ts51.isObjectLiteralExpression(meta)) {
|
|
15445
15459
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
|
|
15446
15460
|
}
|
|
15447
15461
|
const pipe = reflectObjectLiteral(meta);
|
|
@@ -15614,4 +15628,4 @@ export {
|
|
|
15614
15628
|
* Use of this source code is governed by an MIT-style license that can be
|
|
15615
15629
|
* found in the LICENSE file at https://angular.dev/license
|
|
15616
15630
|
*/
|
|
15617
|
-
//# sourceMappingURL=chunk-
|
|
15631
|
+
//# sourceMappingURL=chunk-YNWO773W.js.map
|