@angular/compiler-cli 18.0.0-next.5 → 18.0.0-rc.0
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-IEQXFDXI.js → chunk-3UXY73FR.js} +31 -31
- package/bundles/chunk-3UXY73FR.js.map +6 -0
- package/bundles/{chunk-75YFKYUJ.js → chunk-3W345P4E.js} +7 -7
- package/bundles/chunk-3W345P4E.js.map +6 -0
- package/bundles/{chunk-QT2OXMUI.js → chunk-3ZM5BFEI.js} +188 -123
- package/bundles/chunk-3ZM5BFEI.js.map +6 -0
- package/bundles/{chunk-DZJYWOMD.js → chunk-5DY7CLVW.js} +16 -14
- package/bundles/chunk-5DY7CLVW.js.map +6 -0
- package/bundles/{chunk-QFI3O2MX.js → chunk-BAS2AOWB.js} +40 -19
- package/bundles/chunk-BAS2AOWB.js.map +6 -0
- package/bundles/{chunk-GWZTRBUN.js → chunk-CFIOLJL4.js} +59 -51
- package/bundles/chunk-CFIOLJL4.js.map +6 -0
- package/bundles/{chunk-R4KQI5XI.js → chunk-JZQHA4E7.js} +5 -5
- package/bundles/{chunk-R4KQI5XI.js.map → chunk-JZQHA4E7.js.map} +1 -1
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-WCD6LVCP.js → chunk-QYV344EV.js} +11 -8
- package/bundles/chunk-QYV344EV.js.map +6 -0
- package/bundles/{chunk-AO7Q5KNS.js → chunk-XAPDG6EU.js} +248 -176
- package/bundles/chunk-XAPDG6EU.js.map +6 -0
- package/bundles/{chunk-YUMIYLNL.js → chunk-ZX6BKV7T.js} +5 -5
- package/bundles/{chunk-YUMIYLNL.js.map → chunk-ZX6BKV7T.js.map} +1 -1
- package/bundles/index.js +12 -12
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +15 -13
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +1 -1
- package/bundles/ngcc/index.js.map +1 -1
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +5 -5
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/private/migrations.d.ts +2 -2
- package/src/ngtsc/annotations/common/src/util.d.ts +2 -2
- package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +2 -2
- package/src/ngtsc/annotations/index.d.ts +2 -2
- package/src/ngtsc/annotations/ng_module/index.d.ts +1 -1
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +2 -2
- package/src/ngtsc/diagnostics/index.d.ts +1 -1
- package/src/ngtsc/file_system/index.d.ts +2 -2
- package/src/ngtsc/imports/index.d.ts +4 -4
- package/src/ngtsc/incremental/index.d.ts +1 -1
- package/src/ngtsc/incremental/semantic_graph/index.d.ts +1 -1
- package/src/ngtsc/metadata/index.d.ts +3 -3
- package/src/ngtsc/partial_evaluator/index.d.ts +1 -1
- package/src/ngtsc/reflection/index.d.ts +2 -2
- package/src/ngtsc/scope/index.d.ts +1 -1
- package/src/ngtsc/shims/index.d.ts +1 -1
- package/src/ngtsc/transform/index.d.ts +2 -2
- package/src/ngtsc/translator/index.d.ts +4 -4
- package/src/ngtsc/typecheck/api/api.d.ts +4 -0
- package/src/ngtsc/typecheck/src/expression.d.ts +1 -1
- package/src/perform_compile.d.ts +1 -1
- package/src/transformers/compiler_host.d.ts +1 -1
- package/src/transformers/program.d.ts +1 -1
- package/bundles/chunk-75YFKYUJ.js.map +0 -6
- package/bundles/chunk-AO7Q5KNS.js.map +0 -6
- package/bundles/chunk-DZJYWOMD.js.map +0 -6
- package/bundles/chunk-GWZTRBUN.js.map +0 -6
- package/bundles/chunk-IEQXFDXI.js.map +0 -6
- package/bundles/chunk-QFI3O2MX.js.map +0 -6
- package/bundles/chunk-QT2OXMUI.js.map +0 -6
- package/bundles/chunk-WCD6LVCP.js.map +0 -6
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
|
@@ -34,18 +34,18 @@ import {
|
|
|
34
34
|
translateStatement,
|
|
35
35
|
translateType,
|
|
36
36
|
typeNodeToValueExpr
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-CFIOLJL4.js";
|
|
38
38
|
import {
|
|
39
39
|
PerfEvent,
|
|
40
40
|
PerfPhase
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-JZQHA4E7.js";
|
|
42
42
|
import {
|
|
43
43
|
absoluteFrom,
|
|
44
44
|
absoluteFromSourceFile,
|
|
45
45
|
relative
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-3W345P4E.js";
|
|
47
47
|
|
|
48
|
-
// bazel-out/
|
|
48
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
49
49
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
50
50
|
import ts from "typescript";
|
|
51
51
|
var CORE_MODULE = "@angular/core";
|
|
@@ -59,7 +59,10 @@ function valueReferenceToExpression(valueRef) {
|
|
|
59
59
|
}
|
|
60
60
|
return expr;
|
|
61
61
|
} else {
|
|
62
|
-
let importExpr = new ExternalExpr({
|
|
62
|
+
let importExpr = new ExternalExpr({
|
|
63
|
+
moduleName: valueRef.moduleName,
|
|
64
|
+
name: valueRef.importedName
|
|
65
|
+
});
|
|
63
66
|
if (valueRef.nestedPath !== null) {
|
|
64
67
|
for (const property of valueRef.nestedPath) {
|
|
65
68
|
importExpr = new ReadPropExpr(importExpr, property);
|
|
@@ -301,7 +304,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
301
304
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
302
305
|
}
|
|
303
306
|
|
|
304
|
-
// bazel-out/
|
|
307
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
305
308
|
var DynamicValue = class {
|
|
306
309
|
constructor(node, reason, code) {
|
|
307
310
|
this.node = node;
|
|
@@ -391,10 +394,10 @@ var DynamicValue = class {
|
|
|
391
394
|
}
|
|
392
395
|
};
|
|
393
396
|
|
|
394
|
-
// bazel-out/
|
|
397
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
395
398
|
import ts2 from "typescript";
|
|
396
399
|
|
|
397
|
-
// bazel-out/
|
|
400
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
398
401
|
var ResolvedModule = class {
|
|
399
402
|
constructor(exports, evaluate) {
|
|
400
403
|
this.exports = exports;
|
|
@@ -424,7 +427,7 @@ var EnumValue = class {
|
|
|
424
427
|
var KnownFn = class {
|
|
425
428
|
};
|
|
426
429
|
|
|
427
|
-
// bazel-out/
|
|
430
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
428
431
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
429
432
|
constructor(lhs) {
|
|
430
433
|
super();
|
|
@@ -476,14 +479,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
476
479
|
}
|
|
477
480
|
};
|
|
478
481
|
|
|
479
|
-
// bazel-out/
|
|
482
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
480
483
|
var SyntheticValue = class {
|
|
481
484
|
constructor(value) {
|
|
482
485
|
this.value = value;
|
|
483
486
|
}
|
|
484
487
|
};
|
|
485
488
|
|
|
486
|
-
// bazel-out/
|
|
489
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
487
490
|
function literalBinaryOp(op) {
|
|
488
491
|
return { op, literal: true };
|
|
489
492
|
}
|
|
@@ -1061,7 +1064,7 @@ function owningModule(context, override = null) {
|
|
|
1061
1064
|
}
|
|
1062
1065
|
}
|
|
1063
1066
|
|
|
1064
|
-
// bazel-out/
|
|
1067
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1065
1068
|
var PartialEvaluator = class {
|
|
1066
1069
|
constructor(host, checker, dependencyTracker) {
|
|
1067
1070
|
this.host = host;
|
|
@@ -1081,7 +1084,7 @@ var PartialEvaluator = class {
|
|
|
1081
1084
|
}
|
|
1082
1085
|
};
|
|
1083
1086
|
|
|
1084
|
-
// bazel-out/
|
|
1087
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1085
1088
|
import ts3 from "typescript";
|
|
1086
1089
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1087
1090
|
var _a, _b;
|
|
@@ -1145,12 +1148,16 @@ var TraceDynamicValueVisitor = class {
|
|
|
1145
1148
|
return [makeRelatedInformation(value.node, "Unable to evaluate this expression further.")];
|
|
1146
1149
|
}
|
|
1147
1150
|
visitDynamicString(value) {
|
|
1148
|
-
return [
|
|
1151
|
+
return [
|
|
1152
|
+
makeRelatedInformation(value.node, "A string value could not be determined statically.")
|
|
1153
|
+
];
|
|
1149
1154
|
}
|
|
1150
1155
|
visitExternalReference(value) {
|
|
1151
1156
|
const name = value.reason.debugName;
|
|
1152
1157
|
const description = name !== null ? `'${name}'` : "an anonymous declaration";
|
|
1153
|
-
return [
|
|
1158
|
+
return [
|
|
1159
|
+
makeRelatedInformation(value.node, `A value for ${description} cannot be determined statically, as it is an external declaration.`)
|
|
1160
|
+
];
|
|
1154
1161
|
}
|
|
1155
1162
|
visitComplexFunctionCall(value) {
|
|
1156
1163
|
return [
|
|
@@ -1211,7 +1218,7 @@ function getContainerNode(node) {
|
|
|
1211
1218
|
return node.getSourceFile();
|
|
1212
1219
|
}
|
|
1213
1220
|
|
|
1214
|
-
// bazel-out/
|
|
1221
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1215
1222
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1216
1223
|
import ts4 from "typescript";
|
|
1217
1224
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1346,19 +1353,21 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1346
1353
|
messageText: `No suitable injection token for parameter '${param.name || index}' of class '${clazz.name.text}'.`,
|
|
1347
1354
|
category: ts4.DiagnosticCategory.Error,
|
|
1348
1355
|
code: 0,
|
|
1349
|
-
next: [
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1356
|
+
next: [
|
|
1357
|
+
{
|
|
1358
|
+
messageText: chainMessage,
|
|
1359
|
+
category: ts4.DiagnosticCategory.Message,
|
|
1360
|
+
code: 0
|
|
1361
|
+
}
|
|
1362
|
+
]
|
|
1354
1363
|
};
|
|
1355
1364
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1356
1365
|
}
|
|
1357
1366
|
|
|
1358
|
-
// bazel-out/
|
|
1367
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1359
1368
|
import ts12 from "typescript";
|
|
1360
1369
|
|
|
1361
|
-
// bazel-out/
|
|
1370
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1362
1371
|
var MetaKind;
|
|
1363
1372
|
(function(MetaKind2) {
|
|
1364
1373
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1371,10 +1380,10 @@ var MatchSource;
|
|
|
1371
1380
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1372
1381
|
})(MatchSource || (MatchSource = {}));
|
|
1373
1382
|
|
|
1374
|
-
// bazel-out/
|
|
1383
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1375
1384
|
import ts6 from "typescript";
|
|
1376
1385
|
|
|
1377
|
-
// bazel-out/
|
|
1386
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1378
1387
|
var ClassPropertyMapping = class {
|
|
1379
1388
|
constructor(forwardMap) {
|
|
1380
1389
|
this.forwardMap = forwardMap;
|
|
@@ -1454,7 +1463,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1454
1463
|
return reverseMap;
|
|
1455
1464
|
}
|
|
1456
1465
|
|
|
1457
|
-
// bazel-out/
|
|
1466
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1458
1467
|
import ts5 from "typescript";
|
|
1459
1468
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1460
1469
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1474,7 +1483,10 @@ function extraReferenceFromTypeQuery(checker, typeNode, origin, bestGuessOwningM
|
|
|
1474
1483
|
throw new Error(`Expected named ClassDeclaration: ${nodeDebugInfo(node)}`);
|
|
1475
1484
|
}
|
|
1476
1485
|
if (from !== null && !from.startsWith(".")) {
|
|
1477
|
-
return new Reference(node, {
|
|
1486
|
+
return new Reference(node, {
|
|
1487
|
+
specifier: from,
|
|
1488
|
+
resolutionContext: origin.getSourceFile().fileName
|
|
1489
|
+
});
|
|
1478
1490
|
}
|
|
1479
1491
|
return new Reference(node, bestGuessOwningModule);
|
|
1480
1492
|
}
|
|
@@ -1647,7 +1659,7 @@ function isHostDirectiveMetaForGlobalMode(hostDirectiveMeta) {
|
|
|
1647
1659
|
return hostDirectiveMeta.directive instanceof Reference;
|
|
1648
1660
|
}
|
|
1649
1661
|
|
|
1650
|
-
// bazel-out/
|
|
1662
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1651
1663
|
var DtsMetadataReader = class {
|
|
1652
1664
|
constructor(checker, reflector) {
|
|
1653
1665
|
this.checker = checker;
|
|
@@ -1830,7 +1842,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1830
1842
|
return result.length > 0 ? result : null;
|
|
1831
1843
|
}
|
|
1832
1844
|
|
|
1833
|
-
// bazel-out/
|
|
1845
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1834
1846
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1835
1847
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1836
1848
|
if (topMeta === null) {
|
|
@@ -1894,7 +1906,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
1894
1906
|
};
|
|
1895
1907
|
}
|
|
1896
1908
|
|
|
1897
|
-
// bazel-out/
|
|
1909
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
1898
1910
|
var LocalMetadataRegistry = class {
|
|
1899
1911
|
constructor() {
|
|
1900
1912
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -1951,7 +1963,7 @@ var CompoundMetadataRegistry = class {
|
|
|
1951
1963
|
}
|
|
1952
1964
|
};
|
|
1953
1965
|
|
|
1954
|
-
// bazel-out/
|
|
1966
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
1955
1967
|
var ResourceRegistry = class {
|
|
1956
1968
|
constructor() {
|
|
1957
1969
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -2016,7 +2028,7 @@ var ResourceRegistry = class {
|
|
|
2016
2028
|
}
|
|
2017
2029
|
};
|
|
2018
2030
|
|
|
2019
|
-
// bazel-out/
|
|
2031
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
2020
2032
|
var ExportedProviderStatusResolver = class {
|
|
2021
2033
|
constructor(metaReader) {
|
|
2022
2034
|
this.metaReader = metaReader;
|
|
@@ -2060,7 +2072,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
2060
2072
|
}
|
|
2061
2073
|
};
|
|
2062
2074
|
|
|
2063
|
-
// bazel-out/
|
|
2075
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2064
2076
|
var EMPTY_ARRAY = [];
|
|
2065
2077
|
var HostDirectivesResolver = class {
|
|
2066
2078
|
constructor(metaReader) {
|
|
@@ -2126,7 +2138,7 @@ function resolveOutput(bindingName) {
|
|
|
2126
2138
|
return bindingName;
|
|
2127
2139
|
}
|
|
2128
2140
|
|
|
2129
|
-
// bazel-out/
|
|
2141
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
2130
2142
|
var CompilationMode;
|
|
2131
2143
|
(function(CompilationMode2) {
|
|
2132
2144
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -2140,7 +2152,7 @@ var HandlerPrecedence;
|
|
|
2140
2152
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
2141
2153
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
2142
2154
|
|
|
2143
|
-
// bazel-out/
|
|
2155
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
2144
2156
|
import ts7 from "typescript";
|
|
2145
2157
|
function aliasTransformFactory(exportStatements) {
|
|
2146
2158
|
return () => {
|
|
@@ -2153,7 +2165,9 @@ function aliasTransformFactory(exportStatements) {
|
|
|
2153
2165
|
const stmt = ts7.factory.createExportDeclaration(
|
|
2154
2166
|
void 0,
|
|
2155
2167
|
false,
|
|
2156
|
-
ts7.factory.createNamedExports([
|
|
2168
|
+
ts7.factory.createNamedExports([
|
|
2169
|
+
ts7.factory.createExportSpecifier(false, symbolName, aliasName)
|
|
2170
|
+
]),
|
|
2157
2171
|
ts7.factory.createStringLiteral(moduleName)
|
|
2158
2172
|
);
|
|
2159
2173
|
statements.push(stmt);
|
|
@@ -2163,10 +2177,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
2163
2177
|
};
|
|
2164
2178
|
}
|
|
2165
2179
|
|
|
2166
|
-
// bazel-out/
|
|
2180
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2167
2181
|
import ts8 from "typescript";
|
|
2168
2182
|
|
|
2169
|
-
// bazel-out/
|
|
2183
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
2170
2184
|
var TraitState;
|
|
2171
2185
|
(function(TraitState2) {
|
|
2172
2186
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -2223,7 +2237,7 @@ var TraitImpl = class {
|
|
|
2223
2237
|
}
|
|
2224
2238
|
};
|
|
2225
2239
|
|
|
2226
|
-
// bazel-out/
|
|
2240
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2227
2241
|
var TraitCompiler = class {
|
|
2228
2242
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
2229
2243
|
this.handlers = handlers;
|
|
@@ -2379,14 +2393,16 @@ var TraitCompiler = class {
|
|
|
2379
2393
|
continue;
|
|
2380
2394
|
}
|
|
2381
2395
|
if (isPrimaryHandler && record.hasPrimaryHandler) {
|
|
2382
|
-
record.metaDiagnostics = [
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2396
|
+
record.metaDiagnostics = [
|
|
2397
|
+
{
|
|
2398
|
+
category: ts8.DiagnosticCategory.Error,
|
|
2399
|
+
code: Number("-99" + ErrorCode.DECORATOR_COLLISION),
|
|
2400
|
+
file: getSourceFile(clazz),
|
|
2401
|
+
start: clazz.getStart(void 0, false),
|
|
2402
|
+
length: clazz.getWidth(),
|
|
2403
|
+
messageText: "Two incompatible decorators on class"
|
|
2404
|
+
}
|
|
2405
|
+
];
|
|
2390
2406
|
record.traits = foundTraits = [];
|
|
2391
2407
|
break;
|
|
2392
2408
|
}
|
|
@@ -2680,7 +2696,7 @@ function containsErrors(diagnostics) {
|
|
|
2680
2696
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts8.DiagnosticCategory.Error);
|
|
2681
2697
|
}
|
|
2682
2698
|
|
|
2683
|
-
// bazel-out/
|
|
2699
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
2684
2700
|
import ts9 from "typescript";
|
|
2685
2701
|
var DtsTransformRegistry = class {
|
|
2686
2702
|
constructor() {
|
|
@@ -2728,7 +2744,10 @@ var DtsTransformer = class {
|
|
|
2728
2744
|
this.importRewriter = importRewriter;
|
|
2729
2745
|
}
|
|
2730
2746
|
transform(sf, transforms) {
|
|
2731
|
-
const imports = new ImportManager({
|
|
2747
|
+
const imports = new ImportManager({
|
|
2748
|
+
...presetImportManagerForceNamespaceImports,
|
|
2749
|
+
rewriter: this.importRewriter
|
|
2750
|
+
});
|
|
2732
2751
|
const visitor = (node) => {
|
|
2733
2752
|
if (ts9.isClassDeclaration(node)) {
|
|
2734
2753
|
return this.transformClassDeclaration(node, transforms, imports);
|
|
@@ -2827,11 +2846,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
2827
2846
|
ts9.forEachChild(node, markForEmitAsSingleLine);
|
|
2828
2847
|
}
|
|
2829
2848
|
|
|
2830
|
-
// bazel-out/
|
|
2849
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
2831
2850
|
import { ConstantPool } from "@angular/compiler";
|
|
2832
2851
|
import ts11 from "typescript";
|
|
2833
2852
|
|
|
2834
|
-
// bazel-out/
|
|
2853
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
2835
2854
|
import ts10 from "typescript";
|
|
2836
2855
|
function visit(node, visitor, context) {
|
|
2837
2856
|
return visitor._visit(node, context);
|
|
@@ -2892,7 +2911,7 @@ var Visitor = class {
|
|
|
2892
2911
|
}
|
|
2893
2912
|
};
|
|
2894
2913
|
|
|
2895
|
-
// bazel-out/
|
|
2914
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
2896
2915
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
2897
2916
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
2898
2917
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, localCompilationExtraImportsTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3038,7 +3057,10 @@ var IvyTransformationVisitor = class extends Visitor {
|
|
|
3038
3057
|
};
|
|
3039
3058
|
function transformIvySourceFile(compilation, context, reflector, importRewriter, localCompilationExtraImportsTracker, file, isCore, isClosureCompilerEnabled, recordWrappedNode) {
|
|
3040
3059
|
const constantPool = new ConstantPool(isClosureCompilerEnabled);
|
|
3041
|
-
const importManager = new ImportManager({
|
|
3060
|
+
const importManager = new ImportManager({
|
|
3061
|
+
...presetImportManagerForceNamespaceImports,
|
|
3062
|
+
rewriter: importRewriter
|
|
3063
|
+
});
|
|
3042
3064
|
const compilationVisitor = new IvyCompilationVisitor(compilation, constantPool);
|
|
3043
3065
|
visit(file, compilationVisitor, context);
|
|
3044
3066
|
const transformationVisitor = new IvyTransformationVisitor(compilation, compilationVisitor.classCompilationMap, reflector, importManager, recordWrappedNode, isClosureCompilerEnabled, isCore, compilationVisitor.deferrableImports);
|
|
@@ -3125,7 +3147,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
3125
3147
|
return array;
|
|
3126
3148
|
}
|
|
3127
3149
|
|
|
3128
|
-
// bazel-out/
|
|
3150
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
3129
3151
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
3130
3152
|
const context = [];
|
|
3131
3153
|
for (const decl of data) {
|
|
@@ -3156,11 +3178,13 @@ function createValueHasWrongTypeError(node, value, messageText) {
|
|
|
3156
3178
|
messageText,
|
|
3157
3179
|
category: ts12.DiagnosticCategory.Error,
|
|
3158
3180
|
code: 0,
|
|
3159
|
-
next: [
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3181
|
+
next: [
|
|
3182
|
+
{
|
|
3183
|
+
messageText: chainedMessage,
|
|
3184
|
+
category: ts12.DiagnosticCategory.Message,
|
|
3185
|
+
code: 0
|
|
3186
|
+
}
|
|
3187
|
+
]
|
|
3164
3188
|
};
|
|
3165
3189
|
return new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, node, chain, relatedInformation);
|
|
3166
3190
|
}
|
|
@@ -3332,7 +3356,7 @@ function assertLocalCompilationUnresolvedConst(compilationMode, value, nodeToHig
|
|
|
3332
3356
|
}
|
|
3333
3357
|
}
|
|
3334
3358
|
|
|
3335
|
-
// bazel-out/
|
|
3359
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
3336
3360
|
import { ViewEncapsulation } from "@angular/compiler";
|
|
3337
3361
|
import ts13 from "typescript";
|
|
3338
3362
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
@@ -3383,7 +3407,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
3383
3407
|
return meta;
|
|
3384
3408
|
}
|
|
3385
3409
|
|
|
3386
|
-
// bazel-out/
|
|
3410
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
3387
3411
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
3388
3412
|
function compileNgFactoryDefField(metadata) {
|
|
3389
3413
|
const res = compileFactoryFunction(metadata);
|
|
@@ -3406,7 +3430,7 @@ function compileDeclareFactory(metadata) {
|
|
|
3406
3430
|
};
|
|
3407
3431
|
}
|
|
3408
3432
|
|
|
3409
|
-
// bazel-out/
|
|
3433
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
3410
3434
|
var InjectableClassRegistry = class {
|
|
3411
3435
|
constructor(host, isCore) {
|
|
3412
3436
|
this.host = host;
|
|
@@ -3432,7 +3456,7 @@ var InjectableClassRegistry = class {
|
|
|
3432
3456
|
}
|
|
3433
3457
|
};
|
|
3434
3458
|
|
|
3435
|
-
// bazel-out/
|
|
3459
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
3436
3460
|
import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
3437
3461
|
import ts14 from "typescript";
|
|
3438
3462
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -3511,13 +3535,15 @@ function isAngularDecorator2(decorator, isCore) {
|
|
|
3511
3535
|
return isCore || decorator.import !== null && decorator.import.from === "@angular/core";
|
|
3512
3536
|
}
|
|
3513
3537
|
function removeIdentifierReferences(node, names) {
|
|
3514
|
-
const result = ts14.transform(node, [
|
|
3515
|
-
|
|
3516
|
-
|
|
3538
|
+
const result = ts14.transform(node, [
|
|
3539
|
+
(context) => (root) => ts14.visitNode(root, function walk(current) {
|
|
3540
|
+
return ts14.isIdentifier(current) && (typeof names === "string" ? current.text === names : names.has(current.text)) ? ts14.factory.createIdentifier(current.text) : ts14.visitEachChild(current, walk, context);
|
|
3541
|
+
})
|
|
3542
|
+
]);
|
|
3517
3543
|
return result.transformed[0];
|
|
3518
3544
|
}
|
|
3519
3545
|
|
|
3520
|
-
// bazel-out/
|
|
3546
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
3521
3547
|
import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3522
3548
|
import * as path from "path";
|
|
3523
3549
|
function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
|
|
@@ -3544,13 +3570,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
|
|
|
3544
3570
|
return null;
|
|
3545
3571
|
}
|
|
3546
3572
|
|
|
3547
|
-
// bazel-out/
|
|
3573
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
3548
3574
|
var NoopReferencesRegistry = class {
|
|
3549
3575
|
add(source, ...references) {
|
|
3550
3576
|
}
|
|
3551
3577
|
};
|
|
3552
3578
|
|
|
3553
|
-
// bazel-out/
|
|
3579
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
3554
3580
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
3555
3581
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
3556
3582
|
const schemas = [];
|
|
@@ -3580,7 +3606,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
3580
3606
|
return schemas;
|
|
3581
3607
|
}
|
|
3582
3608
|
|
|
3583
|
-
// bazel-out/
|
|
3609
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
3584
3610
|
import { outputAst } from "@angular/compiler";
|
|
3585
3611
|
function compileInputTransformFields(inputs) {
|
|
3586
3612
|
const extraFields = [];
|
|
@@ -3598,11 +3624,11 @@ function compileInputTransformFields(inputs) {
|
|
|
3598
3624
|
return extraFields;
|
|
3599
3625
|
}
|
|
3600
3626
|
|
|
3601
|
-
// bazel-out/
|
|
3627
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
3602
3628
|
import { compileClassDebugInfo, compileComponentClassMetadata, compileComponentDeclareClassMetadata, compileComponentFromMetadata, compileDeclareComponentFromMetadata, compileDeferResolverFunction, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, ExternalExpr as ExternalExpr6, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, outputAst as o2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation as ViewEncapsulation2 } from "@angular/compiler";
|
|
3603
3629
|
import ts26 from "typescript";
|
|
3604
3630
|
|
|
3605
|
-
// bazel-out/
|
|
3631
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
3606
3632
|
import ts15 from "typescript";
|
|
3607
3633
|
var SemanticSymbol = class {
|
|
3608
3634
|
constructor(decl) {
|
|
@@ -3618,7 +3644,7 @@ function getSymbolIdentifier(decl) {
|
|
|
3618
3644
|
return decl.name.text;
|
|
3619
3645
|
}
|
|
3620
3646
|
|
|
3621
|
-
// bazel-out/
|
|
3647
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
3622
3648
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
3623
3649
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
3624
3650
|
isPublicApiAffected() {
|
|
@@ -3761,10 +3787,10 @@ function getImportPath(expr) {
|
|
|
3761
3787
|
}
|
|
3762
3788
|
}
|
|
3763
3789
|
|
|
3764
|
-
// bazel-out/
|
|
3790
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
3765
3791
|
import ts16 from "typescript";
|
|
3766
3792
|
|
|
3767
|
-
// bazel-out/
|
|
3793
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
3768
3794
|
function isSymbolEqual(a, b) {
|
|
3769
3795
|
if (a.decl === b.decl) {
|
|
3770
3796
|
return true;
|
|
@@ -3814,12 +3840,14 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
3814
3840
|
return true;
|
|
3815
3841
|
}
|
|
3816
3842
|
|
|
3817
|
-
// bazel-out/
|
|
3843
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
3818
3844
|
function extractSemanticTypeParameters(node) {
|
|
3819
3845
|
if (!ts16.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
3820
3846
|
return null;
|
|
3821
3847
|
}
|
|
3822
|
-
return node.typeParameters.map((typeParam) => ({
|
|
3848
|
+
return node.typeParameters.map((typeParam) => ({
|
|
3849
|
+
hasGenericTypeBound: typeParam.constraint !== void 0
|
|
3850
|
+
}));
|
|
3823
3851
|
}
|
|
3824
3852
|
function areTypeParametersEqual(current, previous) {
|
|
3825
3853
|
if (!isArrayEqual(current, previous, isTypeParameterEqual)) {
|
|
@@ -3834,14 +3862,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
3834
3862
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
3835
3863
|
}
|
|
3836
3864
|
|
|
3837
|
-
// bazel-out/
|
|
3865
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
3838
3866
|
var ComponentScopeKind;
|
|
3839
3867
|
(function(ComponentScopeKind2) {
|
|
3840
3868
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
3841
3869
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
3842
3870
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
3843
3871
|
|
|
3844
|
-
// bazel-out/
|
|
3872
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
3845
3873
|
var CompoundComponentScopeReader = class {
|
|
3846
3874
|
constructor(readers) {
|
|
3847
3875
|
this.readers = readers;
|
|
@@ -3866,7 +3894,7 @@ var CompoundComponentScopeReader = class {
|
|
|
3866
3894
|
}
|
|
3867
3895
|
};
|
|
3868
3896
|
|
|
3869
|
-
// bazel-out/
|
|
3897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
3870
3898
|
var MetadataDtsModuleScopeResolver = class {
|
|
3871
3899
|
constructor(dtsMetaReader, aliasingHost) {
|
|
3872
3900
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -3942,11 +3970,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
3942
3970
|
}
|
|
3943
3971
|
};
|
|
3944
3972
|
|
|
3945
|
-
// bazel-out/
|
|
3973
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
3946
3974
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
3947
3975
|
import ts17 from "typescript";
|
|
3948
3976
|
|
|
3949
|
-
// bazel-out/
|
|
3977
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
3950
3978
|
function getDiagnosticNode(ref, rawExpr) {
|
|
3951
3979
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
3952
3980
|
}
|
|
@@ -3972,7 +4000,7 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
|
|
|
3972
4000
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
|
|
3973
4001
|
}
|
|
3974
4002
|
|
|
3975
|
-
// bazel-out/
|
|
4003
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
3976
4004
|
var LocalModuleScopeRegistry = class {
|
|
3977
4005
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
3978
4006
|
this.localReader = localReader;
|
|
@@ -4280,7 +4308,9 @@ function invalidRef(decl, rawExpr, type) {
|
|
|
4280
4308
|
} else {
|
|
4281
4309
|
relatedMessage = `This likely means that the dependency${library} which declares ${decl.debugName} is not compatible with Angular Ivy.`;
|
|
4282
4310
|
}
|
|
4283
|
-
return makeDiagnostic(code, getDiagnosticNode(decl, rawExpr), message, [
|
|
4311
|
+
return makeDiagnostic(code, getDiagnosticNode(decl, rawExpr), message, [
|
|
4312
|
+
makeRelatedInformation(decl.node.name, relatedMessage)
|
|
4313
|
+
]);
|
|
4284
4314
|
}
|
|
4285
4315
|
function invalidTransitiveNgModuleRef(decl, rawExpr, type) {
|
|
4286
4316
|
const code = type === "import" ? ErrorCode.NGMODULE_INVALID_IMPORT : ErrorCode.NGMODULE_INVALID_EXPORT;
|
|
@@ -4311,7 +4341,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
4311
4341
|
]);
|
|
4312
4342
|
}
|
|
4313
4343
|
|
|
4314
|
-
// bazel-out/
|
|
4344
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
4315
4345
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
4316
4346
|
import ts18 from "typescript";
|
|
4317
4347
|
var TypeCheckScopeRegistry = class {
|
|
@@ -4353,7 +4383,10 @@ var TypeCheckScopeRegistry = class {
|
|
|
4353
4383
|
continue;
|
|
4354
4384
|
}
|
|
4355
4385
|
const directiveMeta = this.applyExplicitlyDeferredFlag(extMeta, meta.isExplicitlyDeferred);
|
|
4356
|
-
matcher.addSelectables(CssSelector.parse(meta.selector), [
|
|
4386
|
+
matcher.addSelectables(CssSelector.parse(meta.selector), [
|
|
4387
|
+
...this.hostDirectivesResolver.resolve(directiveMeta),
|
|
4388
|
+
directiveMeta
|
|
4389
|
+
]);
|
|
4357
4390
|
directives.push(directiveMeta);
|
|
4358
4391
|
} else if (meta.kind === MetaKind.Pipe) {
|
|
4359
4392
|
if (!ts18.isClassDeclaration(meta.ref.node)) {
|
|
@@ -4389,21 +4422,23 @@ var TypeCheckScopeRegistry = class {
|
|
|
4389
4422
|
}
|
|
4390
4423
|
};
|
|
4391
4424
|
|
|
4392
|
-
// bazel-out/
|
|
4425
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4393
4426
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4394
4427
|
|
|
4395
|
-
// bazel-out/
|
|
4428
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4396
4429
|
import { createMayBeForwardRefExpression as createMayBeForwardRefExpression2, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4397
4430
|
import ts22 from "typescript";
|
|
4398
4431
|
|
|
4399
|
-
// bazel-out/
|
|
4432
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
|
|
4400
4433
|
function validateAccessOfInitializerApiMember({ api, call }, member) {
|
|
4401
4434
|
if (!api.allowedAccessLevels.includes(member.accessLevel)) {
|
|
4402
|
-
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)}.`, [
|
|
4435
|
+
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)}.`, [
|
|
4436
|
+
makeDiagnosticChain(`Update the class field to be either: ` + api.allowedAccessLevels.map((l) => classMemberAccessLevelToString(l)).join(", "))
|
|
4437
|
+
]));
|
|
4403
4438
|
}
|
|
4404
4439
|
}
|
|
4405
4440
|
|
|
4406
|
-
// bazel-out/
|
|
4441
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
|
|
4407
4442
|
import ts19 from "typescript";
|
|
4408
4443
|
function tryParseInitializerApi(functions, expression, reflector, importTracker) {
|
|
4409
4444
|
if (!ts19.isCallExpression(expression)) {
|
|
@@ -4472,7 +4507,7 @@ function parseTopLevelCallFromNamespace(call, functions, importTracker) {
|
|
|
4472
4507
|
return { api: matchingApi, apiReference, isRequired };
|
|
4473
4508
|
}
|
|
4474
4509
|
|
|
4475
|
-
// bazel-out/
|
|
4510
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
|
|
4476
4511
|
import ts20 from "typescript";
|
|
4477
4512
|
function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
4478
4513
|
if (!ts20.isObjectLiteralExpression(optionsNode)) {
|
|
@@ -4490,7 +4525,7 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
|
4490
4525
|
return { alias };
|
|
4491
4526
|
}
|
|
4492
4527
|
|
|
4493
|
-
// bazel-out/
|
|
4528
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
|
|
4494
4529
|
var INPUT_INITIALIZER_FN = {
|
|
4495
4530
|
functionName: "input",
|
|
4496
4531
|
owningModule: "@angular/core",
|
|
@@ -4522,7 +4557,7 @@ function tryParseSignalInputMapping(member, reflector, importTracker) {
|
|
|
4522
4557
|
};
|
|
4523
4558
|
}
|
|
4524
4559
|
|
|
4525
|
-
// bazel-out/
|
|
4560
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
|
|
4526
4561
|
var MODEL_INITIALIZER_FN = {
|
|
4527
4562
|
functionName: "model",
|
|
4528
4563
|
owningModule: "@angular/core",
|
|
@@ -4563,7 +4598,7 @@ function tryParseSignalModelMapping(member, reflector, importTracker) {
|
|
|
4563
4598
|
};
|
|
4564
4599
|
}
|
|
4565
4600
|
|
|
4566
|
-
// bazel-out/
|
|
4601
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
|
|
4567
4602
|
var allowedAccessLevels = [
|
|
4568
4603
|
ClassMemberAccessLevel.PublicWritable,
|
|
4569
4604
|
ClassMemberAccessLevel.PublicReadonly,
|
|
@@ -4607,10 +4642,15 @@ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
|
|
|
4607
4642
|
};
|
|
4608
4643
|
}
|
|
4609
4644
|
|
|
4610
|
-
// bazel-out/
|
|
4645
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
|
|
4611
4646
|
import { createMayBeForwardRefExpression, outputAst as o } from "@angular/compiler";
|
|
4612
4647
|
import ts21 from "typescript";
|
|
4613
|
-
var queryFunctionNames = [
|
|
4648
|
+
var queryFunctionNames = [
|
|
4649
|
+
"viewChild",
|
|
4650
|
+
"viewChildren",
|
|
4651
|
+
"contentChild",
|
|
4652
|
+
"contentChildren"
|
|
4653
|
+
];
|
|
4614
4654
|
var QUERY_INITIALIZER_FNS = queryFunctionNames.map((fnName) => ({
|
|
4615
4655
|
functionName: fnName,
|
|
4616
4656
|
owningModule: "@angular/core",
|
|
@@ -4687,9 +4727,14 @@ function parseDescendantsOption(value) {
|
|
|
4687
4727
|
throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
|
|
4688
4728
|
}
|
|
4689
4729
|
|
|
4690
|
-
// bazel-out/
|
|
4730
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4691
4731
|
var EMPTY_OBJECT = {};
|
|
4692
|
-
var queryDecoratorNames = [
|
|
4732
|
+
var queryDecoratorNames = [
|
|
4733
|
+
"ViewChild",
|
|
4734
|
+
"ViewChildren",
|
|
4735
|
+
"ContentChild",
|
|
4736
|
+
"ContentChildren"
|
|
4737
|
+
];
|
|
4693
4738
|
var QUERY_TYPES = new Set(queryDecoratorNames);
|
|
4694
4739
|
function extractDirectiveMetadata(clazz, decorator, reflector, importTracker, evaluator, refEmitter, referencesRegistry, isCore, annotateForClosureCompiler, compilationMode, defaultSelector) {
|
|
4695
4740
|
let directive;
|
|
@@ -5482,7 +5527,7 @@ function toR3InputMetadata(mapping) {
|
|
|
5482
5527
|
};
|
|
5483
5528
|
}
|
|
5484
5529
|
|
|
5485
|
-
// bazel-out/
|
|
5530
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
5486
5531
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
5487
5532
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
5488
5533
|
super(decl);
|
|
@@ -5562,7 +5607,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
5562
5607
|
return isSymbolEqual(current, previous);
|
|
5563
5608
|
}
|
|
5564
5609
|
|
|
5565
|
-
// bazel-out/
|
|
5610
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
5566
5611
|
var FIELD_DECORATORS = [
|
|
5567
5612
|
"Input",
|
|
5568
5613
|
"Output",
|
|
@@ -5755,11 +5800,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
5755
5800
|
}
|
|
5756
5801
|
};
|
|
5757
5802
|
|
|
5758
|
-
// bazel-out/
|
|
5803
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5759
5804
|
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";
|
|
5760
5805
|
import ts24 from "typescript";
|
|
5761
5806
|
|
|
5762
|
-
// bazel-out/
|
|
5807
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
5763
5808
|
import ts23 from "typescript";
|
|
5764
5809
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
5765
5810
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -5831,7 +5876,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
5831
5876
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
5832
5877
|
}
|
|
5833
5878
|
|
|
5834
|
-
// bazel-out/
|
|
5879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5835
5880
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
5836
5881
|
constructor(decl, hasProviders) {
|
|
5837
5882
|
super(decl);
|
|
@@ -6340,7 +6385,11 @@ var NgModuleDecoratorHandler = class {
|
|
|
6340
6385
|
assertSuccessfulReferenceEmit(componentType, node, "component");
|
|
6341
6386
|
const declExpr = componentType.expression;
|
|
6342
6387
|
const setComponentScope = new ExternalExpr5(R3Identifiers.setComponentScope);
|
|
6343
|
-
const callExpr = new InvokeFunctionExpr(setComponentScope, [
|
|
6388
|
+
const callExpr = new InvokeFunctionExpr(setComponentScope, [
|
|
6389
|
+
declExpr,
|
|
6390
|
+
directiveExpr,
|
|
6391
|
+
pipesExpr
|
|
6392
|
+
]);
|
|
6344
6393
|
ngModuleStatements.push(callExpr.toStmt());
|
|
6345
6394
|
}
|
|
6346
6395
|
}
|
|
@@ -6435,14 +6484,16 @@ function isModuleIdExpression(expr) {
|
|
|
6435
6484
|
function makeStandaloneBootstrapDiagnostic(ngModuleClass, bootstrappedClassRef, rawBootstrapExpr) {
|
|
6436
6485
|
const componentClassName = bootstrappedClassRef.node.name.text;
|
|
6437
6486
|
const message = `The \`${componentClassName}\` class is a standalone component, which can not be used in the \`@NgModule.bootstrap\` array. Use the \`bootstrapApplication\` function for bootstrap instead.`;
|
|
6438
|
-
const relatedInformation = [
|
|
6487
|
+
const relatedInformation = [
|
|
6488
|
+
makeRelatedInformation(ngModuleClass, `The 'bootstrap' array is present on this NgModule.`)
|
|
6489
|
+
];
|
|
6439
6490
|
return makeDiagnostic(ErrorCode.NGMODULE_BOOTSTRAP_IS_STANDALONE, getDiagnosticNode(bootstrappedClassRef, rawBootstrapExpr), message, relatedInformation);
|
|
6440
6491
|
}
|
|
6441
6492
|
function isSyntheticReference(ref) {
|
|
6442
6493
|
return ref.synthetic;
|
|
6443
6494
|
}
|
|
6444
6495
|
|
|
6445
|
-
// bazel-out/
|
|
6496
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
6446
6497
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
6447
6498
|
const name = ref.debugName || "(unknown)";
|
|
6448
6499
|
const path2 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -6465,7 +6516,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
6465
6516
|
return null;
|
|
6466
6517
|
}
|
|
6467
6518
|
|
|
6468
|
-
// bazel-out/
|
|
6519
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
6469
6520
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
6470
6521
|
import ts25 from "typescript";
|
|
6471
6522
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -6630,7 +6681,10 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
|
|
|
6630
6681
|
}
|
|
6631
6682
|
try {
|
|
6632
6683
|
const resourceUrl = resourceLoader.resolve(templateUrl, containingFile);
|
|
6633
|
-
const templatePromise = resourceLoader.preload(resourceUrl, {
|
|
6684
|
+
const templatePromise = resourceLoader.preload(resourceUrl, {
|
|
6685
|
+
type: "template",
|
|
6686
|
+
containingFile
|
|
6687
|
+
});
|
|
6634
6688
|
if (templatePromise !== void 0) {
|
|
6635
6689
|
return templatePromise.then(() => {
|
|
6636
6690
|
const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces);
|
|
@@ -6727,11 +6781,13 @@ function extractComponentStyleUrls(evaluator, component) {
|
|
|
6727
6781
|
if (typeof styleUrl !== "string") {
|
|
6728
6782
|
throw createValueHasWrongTypeError(styleUrlExpr, styleUrl, "styleUrl must be a string");
|
|
6729
6783
|
}
|
|
6730
|
-
return [
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
|
|
6734
|
-
|
|
6784
|
+
return [
|
|
6785
|
+
{
|
|
6786
|
+
url: styleUrl,
|
|
6787
|
+
source: 2,
|
|
6788
|
+
nodeForError: styleUrlExpr
|
|
6789
|
+
}
|
|
6790
|
+
];
|
|
6735
6791
|
}
|
|
6736
6792
|
return [];
|
|
6737
6793
|
}
|
|
@@ -6813,10 +6869,14 @@ function _extractTemplateStyleUrls(template) {
|
|
|
6813
6869
|
return [];
|
|
6814
6870
|
}
|
|
6815
6871
|
const nodeForError = getTemplateDeclarationNodeForError(template.declaration);
|
|
6816
|
-
return template.styleUrls.map((url) => ({
|
|
6872
|
+
return template.styleUrls.map((url) => ({
|
|
6873
|
+
url,
|
|
6874
|
+
source: 1,
|
|
6875
|
+
nodeForError
|
|
6876
|
+
}));
|
|
6817
6877
|
}
|
|
6818
6878
|
|
|
6819
|
-
// bazel-out/
|
|
6879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
6820
6880
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
6821
6881
|
constructor() {
|
|
6822
6882
|
super(...arguments);
|
|
@@ -6851,7 +6911,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
6851
6911
|
}
|
|
6852
6912
|
};
|
|
6853
6913
|
|
|
6854
|
-
// bazel-out/
|
|
6914
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
6855
6915
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
6856
6916
|
if (value instanceof Map) {
|
|
6857
6917
|
const name = value.get("name");
|
|
@@ -6928,7 +6988,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
6928
6988
|
return false;
|
|
6929
6989
|
}
|
|
6930
6990
|
|
|
6931
|
-
// bazel-out/
|
|
6991
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
6932
6992
|
var EMPTY_ARRAY2 = [];
|
|
6933
6993
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
6934
6994
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -7095,7 +7155,9 @@ var ComponentDecoratorHandler = class {
|
|
|
7095
7155
|
diagnostics = [];
|
|
7096
7156
|
}
|
|
7097
7157
|
const importsField = rawImports ? "imports" : "deferredImports";
|
|
7098
|
-
diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_NOT_STANDALONE, component.get(importsField), `'${importsField}' is only valid on a component that is standalone.`, [
|
|
7158
|
+
diagnostics.push(makeDiagnostic(ErrorCode.COMPONENT_NOT_STANDALONE, component.get(importsField), `'${importsField}' is only valid on a component that is standalone.`, [
|
|
7159
|
+
makeRelatedInformation(node.name, `Did you forget to add 'standalone: true' to this @Component?`)
|
|
7160
|
+
]));
|
|
7099
7161
|
isPoisoned = true;
|
|
7100
7162
|
} else if (this.compilationMode !== CompilationMode.LOCAL && (rawImports || rawDeferredImports)) {
|
|
7101
7163
|
const importResolvers = combineResolvers([
|
|
@@ -7330,7 +7392,10 @@ var ComponentDecoratorHandler = class {
|
|
|
7330
7392
|
}
|
|
7331
7393
|
for (const dep of dependencies) {
|
|
7332
7394
|
if (dep.kind === MetaKind.Directive && dep.selector !== null) {
|
|
7333
|
-
matcher.addSelectables(CssSelector2.parse(dep.selector), [
|
|
7395
|
+
matcher.addSelectables(CssSelector2.parse(dep.selector), [
|
|
7396
|
+
...this.hostDirectivesResolver.resolve(dep),
|
|
7397
|
+
dep
|
|
7398
|
+
]);
|
|
7334
7399
|
}
|
|
7335
7400
|
}
|
|
7336
7401
|
}
|
|
@@ -7936,7 +8001,7 @@ function isDefaultImport(node) {
|
|
|
7936
8001
|
return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
|
|
7937
8002
|
}
|
|
7938
8003
|
|
|
7939
|
-
// bazel-out/
|
|
8004
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
7940
8005
|
import { compileClassMetadata as compileClassMetadata3, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression3, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
7941
8006
|
import ts27 from "typescript";
|
|
7942
8007
|
var InjectableDecoratorHandler = class {
|
|
@@ -8168,7 +8233,7 @@ function getDep(dep, reflector) {
|
|
|
8168
8233
|
return meta;
|
|
8169
8234
|
}
|
|
8170
8235
|
|
|
8171
|
-
// bazel-out/
|
|
8236
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
8172
8237
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
8173
8238
|
import ts28 from "typescript";
|
|
8174
8239
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -8385,4 +8450,4 @@ export {
|
|
|
8385
8450
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8386
8451
|
* found in the LICENSE file at https://angular.io/license
|
|
8387
8452
|
*/
|
|
8388
|
-
//# sourceMappingURL=chunk-
|
|
8453
|
+
//# sourceMappingURL=chunk-3ZM5BFEI.js.map
|