@angular/compiler-cli 17.1.0-next.3 → 17.1.0-next.5
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-ZH5AJH3B.js → chunk-BLWWEEEL.js} +5 -5
- package/bundles/{chunk-EVIA54WP.js → chunk-EFMKZSXJ.js} +59 -33
- package/bundles/chunk-EFMKZSXJ.js.map +6 -0
- package/bundles/{chunk-XI2N3MV4.js → chunk-MFE4YVWE.js} +15 -14
- package/bundles/chunk-MFE4YVWE.js.map +6 -0
- package/bundles/{chunk-DV5CKGO6.js → chunk-N5SJSJNW.js} +230 -158
- package/bundles/chunk-N5SJSJNW.js.map +6 -0
- package/bundles/{chunk-5ASJ74IM.js → chunk-OZXTEOXW.js} +34 -32
- package/bundles/chunk-OZXTEOXW.js.map +6 -0
- package/bundles/{chunk-I3M5LXMW.js → chunk-QPMYDNZG.js} +7 -7
- package/bundles/{chunk-JOIB3454.js → chunk-R4KQI5XI.js} +5 -5
- package/bundles/{chunk-CF2CT7RQ.js → chunk-SBDNBITT.js} +3 -3
- package/bundles/{chunk-LJKJD6DP.js → chunk-U4EFDEE4.js} +290 -166
- package/bundles/chunk-U4EFDEE4.js.map +6 -0
- package/bundles/{chunk-WMUBJYYX.js → chunk-WCD6LVCP.js} +7 -7
- package/bundles/{chunk-5JRMFWYO.js → chunk-YGXKICXB.js} +4 -4
- package/bundles/index.js +12 -13
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +18 -18
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +5 -5
- 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 +5 -6
- package/bundles/private/tooling.js +3 -4
- package/bundles/src/bin/ng_xi18n.js +10 -11
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +8 -9
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/linker/babel/src/ast/babel_ast_factory.d.ts +0 -1
- package/linker/babel/src/ast/babel_ast_host.d.ts +0 -1
- package/linker/babel/src/babel_declaration_scope.d.ts +2 -5
- package/linker/babel/src/babel_plugin.d.ts +0 -1
- package/linker/babel/src/es2015_linker_plugin.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +2 -2
- package/private/babel.d.ts +6 -20
- package/src/ngtsc/annotations/directive/src/input_function.d.ts +23 -0
- package/src/ngtsc/annotations/directive/src/shared.d.ts +15 -3
- package/src/ngtsc/imports/src/emitter.d.ts +5 -1
- package/src/ngtsc/imports/src/references.d.ts +3 -1
- package/src/ngtsc/metadata/src/api.d.ts +25 -3
- package/src/ngtsc/metadata/src/property_mapping.d.ts +3 -1
- package/src/ngtsc/reflection/src/host.d.ts +6 -1
- package/src/ngtsc/reflection/src/typescript.d.ts +1 -0
- package/src/ngtsc/typecheck/src/environment.d.ts +2 -27
- package/src/ngtsc/typecheck/src/oob.d.ts +3 -3
- package/src/ngtsc/typecheck/src/reference_emit_environment.d.ts +50 -0
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +7 -8
- package/src/ngtsc/typecheck/src/type_constructor.d.ts +3 -3
- package/bundles/chunk-3O3O4L34.js +0 -12
- package/bundles/chunk-3O3O4L34.js.map +0 -6
- package/bundles/chunk-5ASJ74IM.js.map +0 -6
- package/bundles/chunk-DV5CKGO6.js.map +0 -6
- package/bundles/chunk-EVIA54WP.js.map +0 -6
- package/bundles/chunk-LJKJD6DP.js.map +0 -6
- package/bundles/chunk-XI2N3MV4.js.map +0 -6
- /package/bundles/{chunk-ZH5AJH3B.js.map → chunk-BLWWEEEL.js.map} +0 -0
- /package/bundles/{chunk-I3M5LXMW.js.map → chunk-QPMYDNZG.js.map} +0 -0
- /package/bundles/{chunk-JOIB3454.js.map → chunk-R4KQI5XI.js.map} +0 -0
- /package/bundles/{chunk-CF2CT7RQ.js.map → chunk-SBDNBITT.js.map} +0 -0
- /package/bundles/{chunk-WMUBJYYX.js.map → chunk-WCD6LVCP.js.map} +0 -0
- /package/bundles/{chunk-5JRMFWYO.js.map → chunk-YGXKICXB.js.map} +0 -0
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
translateExpression,
|
|
8
8
|
translateStatement,
|
|
9
9
|
translateType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-MFE4YVWE.js";
|
|
11
11
|
import {
|
|
12
|
+
AmbientImport,
|
|
12
13
|
ClassMemberKind,
|
|
13
14
|
ErrorCode,
|
|
14
15
|
FatalDiagnosticError,
|
|
@@ -30,18 +31,18 @@ import {
|
|
|
30
31
|
reflectObjectLiteral,
|
|
31
32
|
reflectTypeEntityToDeclaration,
|
|
32
33
|
typeNodeToValueExpr
|
|
33
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-EFMKZSXJ.js";
|
|
34
35
|
import {
|
|
35
36
|
PerfEvent,
|
|
36
37
|
PerfPhase
|
|
37
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-R4KQI5XI.js";
|
|
38
39
|
import {
|
|
39
40
|
absoluteFrom,
|
|
40
41
|
absoluteFromSourceFile,
|
|
41
42
|
relative
|
|
42
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-QPMYDNZG.js";
|
|
43
44
|
|
|
44
|
-
// bazel-out/
|
|
45
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
45
46
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
46
47
|
import ts from "typescript";
|
|
47
48
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -286,7 +287,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
286
287
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
287
288
|
}
|
|
288
289
|
|
|
289
|
-
// bazel-out/
|
|
290
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
290
291
|
var DynamicValue = class {
|
|
291
292
|
constructor(node, reason, code) {
|
|
292
293
|
this.node = node;
|
|
@@ -376,10 +377,10 @@ var DynamicValue = class {
|
|
|
376
377
|
}
|
|
377
378
|
};
|
|
378
379
|
|
|
379
|
-
// bazel-out/
|
|
380
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
380
381
|
import ts2 from "typescript";
|
|
381
382
|
|
|
382
|
-
// bazel-out/
|
|
383
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
383
384
|
var ResolvedModule = class {
|
|
384
385
|
constructor(exports, evaluate) {
|
|
385
386
|
this.exports = exports;
|
|
@@ -409,7 +410,7 @@ var EnumValue = class {
|
|
|
409
410
|
var KnownFn = class {
|
|
410
411
|
};
|
|
411
412
|
|
|
412
|
-
// bazel-out/
|
|
413
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
413
414
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
414
415
|
constructor(lhs) {
|
|
415
416
|
super();
|
|
@@ -461,14 +462,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
461
462
|
}
|
|
462
463
|
};
|
|
463
464
|
|
|
464
|
-
// bazel-out/
|
|
465
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
465
466
|
var SyntheticValue = class {
|
|
466
467
|
constructor(value) {
|
|
467
468
|
this.value = value;
|
|
468
469
|
}
|
|
469
470
|
};
|
|
470
471
|
|
|
471
|
-
// bazel-out/
|
|
472
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
472
473
|
function literalBinaryOp(op) {
|
|
473
474
|
return { op, literal: true };
|
|
474
475
|
}
|
|
@@ -1022,7 +1023,7 @@ function isVariableDeclarationDeclared(node) {
|
|
|
1022
1023
|
}
|
|
1023
1024
|
var EMPTY = {};
|
|
1024
1025
|
function joinModuleContext(existing, node, decl) {
|
|
1025
|
-
if (decl.viaModule
|
|
1026
|
+
if (typeof decl.viaModule === "string" && decl.viaModule !== existing.absoluteModuleName) {
|
|
1026
1027
|
return {
|
|
1027
1028
|
absoluteModuleName: decl.viaModule,
|
|
1028
1029
|
resolutionContext: node.getSourceFile().fileName
|
|
@@ -1046,7 +1047,7 @@ function owningModule(context, override = null) {
|
|
|
1046
1047
|
}
|
|
1047
1048
|
}
|
|
1048
1049
|
|
|
1049
|
-
// bazel-out/
|
|
1050
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1050
1051
|
var PartialEvaluator = class {
|
|
1051
1052
|
constructor(host, checker, dependencyTracker) {
|
|
1052
1053
|
this.host = host;
|
|
@@ -1066,7 +1067,7 @@ var PartialEvaluator = class {
|
|
|
1066
1067
|
}
|
|
1067
1068
|
};
|
|
1068
1069
|
|
|
1069
|
-
// bazel-out/
|
|
1070
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1070
1071
|
import ts3 from "typescript";
|
|
1071
1072
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1072
1073
|
var _a, _b;
|
|
@@ -1196,7 +1197,7 @@ function getContainerNode(node) {
|
|
|
1196
1197
|
return node.getSourceFile();
|
|
1197
1198
|
}
|
|
1198
1199
|
|
|
1199
|
-
// bazel-out/
|
|
1200
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1200
1201
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1201
1202
|
import ts4 from "typescript";
|
|
1202
1203
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1340,10 +1341,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1340
1341
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1341
1342
|
}
|
|
1342
1343
|
|
|
1343
|
-
// bazel-out/
|
|
1344
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1344
1345
|
import ts7 from "typescript";
|
|
1345
1346
|
|
|
1346
|
-
// bazel-out/
|
|
1347
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1347
1348
|
var MetaKind;
|
|
1348
1349
|
(function(MetaKind2) {
|
|
1349
1350
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1356,10 +1357,10 @@ var MatchSource;
|
|
|
1356
1357
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1357
1358
|
})(MatchSource || (MatchSource = {}));
|
|
1358
1359
|
|
|
1359
|
-
// bazel-out/
|
|
1360
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1360
1361
|
import ts6 from "typescript";
|
|
1361
1362
|
|
|
1362
|
-
// bazel-out/
|
|
1363
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1363
1364
|
var ClassPropertyMapping = class {
|
|
1364
1365
|
constructor(forwardMap) {
|
|
1365
1366
|
this.forwardMap = forwardMap;
|
|
@@ -1374,9 +1375,11 @@ var ClassPropertyMapping = class {
|
|
|
1374
1375
|
const value = obj[classPropertyName];
|
|
1375
1376
|
let inputOrOutput;
|
|
1376
1377
|
if (typeof value === "string") {
|
|
1377
|
-
inputOrOutput = {
|
|
1378
|
-
|
|
1379
|
-
|
|
1378
|
+
inputOrOutput = {
|
|
1379
|
+
classPropertyName,
|
|
1380
|
+
bindingPropertyName: value,
|
|
1381
|
+
isSignal: false
|
|
1382
|
+
};
|
|
1380
1383
|
} else {
|
|
1381
1384
|
inputOrOutput = value;
|
|
1382
1385
|
}
|
|
@@ -1437,7 +1440,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1437
1440
|
return reverseMap;
|
|
1438
1441
|
}
|
|
1439
1442
|
|
|
1440
|
-
// bazel-out/
|
|
1443
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1441
1444
|
import ts5 from "typescript";
|
|
1442
1445
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1443
1446
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1514,7 +1517,13 @@ function extractDirectiveTypeCheckMeta(node, inputs, reflector) {
|
|
|
1514
1517
|
const staticMembers = members.filter((member) => member.isStatic);
|
|
1515
1518
|
const ngTemplateGuards = staticMembers.map(extractTemplateGuard).filter((guard) => guard !== null);
|
|
1516
1519
|
const hasNgTemplateContextGuard = staticMembers.some((member) => member.kind === ClassMemberKind.Method && member.name === "ngTemplateContextGuard");
|
|
1517
|
-
const coercedInputFields = new Set(staticMembers.map(extractCoercedInput).filter((inputName) =>
|
|
1520
|
+
const coercedInputFields = new Set(staticMembers.map(extractCoercedInput).filter((inputName) => {
|
|
1521
|
+
var _a;
|
|
1522
|
+
if (inputName === null || ((_a = inputs.getByClassPropertyName(inputName)) == null ? void 0 : _a.isSignal)) {
|
|
1523
|
+
return false;
|
|
1524
|
+
}
|
|
1525
|
+
return true;
|
|
1526
|
+
}));
|
|
1518
1527
|
const restrictedInputFields = /* @__PURE__ */ new Set();
|
|
1519
1528
|
const stringLiteralInputFields = /* @__PURE__ */ new Set();
|
|
1520
1529
|
const undeclaredInputFields = /* @__PURE__ */ new Set();
|
|
@@ -1621,7 +1630,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
1621
1630
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
1622
1631
|
}
|
|
1623
1632
|
|
|
1624
|
-
// bazel-out/
|
|
1633
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1625
1634
|
var DtsMetadataReader = class {
|
|
1626
1635
|
constructor(checker, reflector) {
|
|
1627
1636
|
this.checker = checker;
|
|
@@ -1735,6 +1744,7 @@ function readInputsType(type) {
|
|
|
1735
1744
|
bindingPropertyName: stringValue,
|
|
1736
1745
|
classPropertyName,
|
|
1737
1746
|
required: false,
|
|
1747
|
+
isSignal: false,
|
|
1738
1748
|
transform: null
|
|
1739
1749
|
};
|
|
1740
1750
|
} else {
|
|
@@ -1746,6 +1756,7 @@ function readInputsType(type) {
|
|
|
1746
1756
|
classPropertyName,
|
|
1747
1757
|
bindingPropertyName: config.alias,
|
|
1748
1758
|
required: config.required,
|
|
1759
|
+
isSignal: !!config.isSignal,
|
|
1749
1760
|
transform: null
|
|
1750
1761
|
};
|
|
1751
1762
|
}
|
|
@@ -1799,7 +1810,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1799
1810
|
return result.length > 0 ? result : null;
|
|
1800
1811
|
}
|
|
1801
1812
|
|
|
1802
|
-
// bazel-out/
|
|
1813
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1803
1814
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1804
1815
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1805
1816
|
if (topMeta === null) {
|
|
@@ -1863,7 +1874,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
1863
1874
|
};
|
|
1864
1875
|
}
|
|
1865
1876
|
|
|
1866
|
-
// bazel-out/
|
|
1877
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
1867
1878
|
var LocalMetadataRegistry = class {
|
|
1868
1879
|
constructor() {
|
|
1869
1880
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -1920,7 +1931,7 @@ var CompoundMetadataRegistry = class {
|
|
|
1920
1931
|
}
|
|
1921
1932
|
};
|
|
1922
1933
|
|
|
1923
|
-
// bazel-out/
|
|
1934
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
1924
1935
|
var ResourceRegistry = class {
|
|
1925
1936
|
constructor() {
|
|
1926
1937
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -1985,7 +1996,7 @@ var ResourceRegistry = class {
|
|
|
1985
1996
|
}
|
|
1986
1997
|
};
|
|
1987
1998
|
|
|
1988
|
-
// bazel-out/
|
|
1999
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
1989
2000
|
var ExportedProviderStatusResolver = class {
|
|
1990
2001
|
constructor(metaReader) {
|
|
1991
2002
|
this.metaReader = metaReader;
|
|
@@ -2029,7 +2040,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
2029
2040
|
}
|
|
2030
2041
|
};
|
|
2031
2042
|
|
|
2032
|
-
// bazel-out/
|
|
2043
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2033
2044
|
var EMPTY_ARRAY = [];
|
|
2034
2045
|
var HostDirectivesResolver = class {
|
|
2035
2046
|
constructor(metaReader) {
|
|
@@ -2084,14 +2095,15 @@ function resolveInput(bindingName, binding) {
|
|
|
2084
2095
|
bindingPropertyName: bindingName,
|
|
2085
2096
|
classPropertyName: binding.classPropertyName,
|
|
2086
2097
|
required: binding.required,
|
|
2087
|
-
transform: binding.transform
|
|
2098
|
+
transform: binding.transform,
|
|
2099
|
+
isSignal: binding.isSignal
|
|
2088
2100
|
};
|
|
2089
2101
|
}
|
|
2090
2102
|
function resolveOutput(bindingName) {
|
|
2091
2103
|
return bindingName;
|
|
2092
2104
|
}
|
|
2093
2105
|
|
|
2094
|
-
// bazel-out/
|
|
2106
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
2095
2107
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
2096
2108
|
const context = [];
|
|
2097
2109
|
for (const decl of data) {
|
|
@@ -2287,7 +2299,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
|
|
|
2287
2299
|
return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
|
|
2288
2300
|
}
|
|
2289
2301
|
|
|
2290
|
-
// bazel-out/
|
|
2302
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
2291
2303
|
import { ViewEncapsulation } from "@angular/compiler";
|
|
2292
2304
|
import ts8 from "typescript";
|
|
2293
2305
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
@@ -2338,7 +2350,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
2338
2350
|
return meta;
|
|
2339
2351
|
}
|
|
2340
2352
|
|
|
2341
|
-
// bazel-out/
|
|
2353
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
2342
2354
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
2343
2355
|
function compileNgFactoryDefField(metadata) {
|
|
2344
2356
|
const res = compileFactoryFunction(metadata);
|
|
@@ -2361,7 +2373,7 @@ function compileDeclareFactory(metadata) {
|
|
|
2361
2373
|
};
|
|
2362
2374
|
}
|
|
2363
2375
|
|
|
2364
|
-
// bazel-out/
|
|
2376
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
2365
2377
|
var InjectableClassRegistry = class {
|
|
2366
2378
|
constructor(host, isCore) {
|
|
2367
2379
|
this.host = host;
|
|
@@ -2387,7 +2399,7 @@ var InjectableClassRegistry = class {
|
|
|
2387
2399
|
}
|
|
2388
2400
|
};
|
|
2389
2401
|
|
|
2390
|
-
// bazel-out/
|
|
2402
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
2391
2403
|
import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
2392
2404
|
import ts9 from "typescript";
|
|
2393
2405
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -2472,7 +2484,7 @@ function removeIdentifierReferences(node, names) {
|
|
|
2472
2484
|
return result.transformed[0];
|
|
2473
2485
|
}
|
|
2474
2486
|
|
|
2475
|
-
// bazel-out/
|
|
2487
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
2476
2488
|
import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
2477
2489
|
import * as path from "path";
|
|
2478
2490
|
function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
|
|
@@ -2499,13 +2511,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
|
|
|
2499
2511
|
return null;
|
|
2500
2512
|
}
|
|
2501
2513
|
|
|
2502
|
-
// bazel-out/
|
|
2514
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
2503
2515
|
var NoopReferencesRegistry = class {
|
|
2504
2516
|
add(source, ...references) {
|
|
2505
2517
|
}
|
|
2506
2518
|
};
|
|
2507
2519
|
|
|
2508
|
-
// bazel-out/
|
|
2520
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
2509
2521
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
2510
2522
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
2511
2523
|
const schemas = [];
|
|
@@ -2535,7 +2547,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
2535
2547
|
return schemas;
|
|
2536
2548
|
}
|
|
2537
2549
|
|
|
2538
|
-
// bazel-out/
|
|
2550
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
2539
2551
|
import { outputAst } from "@angular/compiler";
|
|
2540
2552
|
function compileInputTransformFields(inputs) {
|
|
2541
2553
|
const extraFields = [];
|
|
@@ -2553,11 +2565,11 @@ function compileInputTransformFields(inputs) {
|
|
|
2553
2565
|
return extraFields;
|
|
2554
2566
|
}
|
|
2555
2567
|
|
|
2556
|
-
// bazel-out/
|
|
2568
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
2557
2569
|
import { compileClassDebugInfo, compileClassMetadata as compileClassMetadata3, compileComponentClassMetadata, compileComponentFromMetadata, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareComponentFromMetadata, CssSelector as CssSelector2, DEFAULT_INTERPOLATION_CONFIG as DEFAULT_INTERPOLATION_CONFIG2, DomElementSchemaRegistry, FactoryTarget as FactoryTarget3, makeBindingParser as makeBindingParser2, R3TargetBinder, R3TemplateDependencyKind, SelectorMatcher as SelectorMatcher2, ViewEncapsulation as ViewEncapsulation2, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
2558
|
-
import
|
|
2570
|
+
import ts25 from "typescript";
|
|
2559
2571
|
|
|
2560
|
-
// bazel-out/
|
|
2572
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
2561
2573
|
import ts10 from "typescript";
|
|
2562
2574
|
var SemanticSymbol = class {
|
|
2563
2575
|
constructor(decl) {
|
|
@@ -2573,7 +2585,7 @@ function getSymbolIdentifier(decl) {
|
|
|
2573
2585
|
return decl.name.text;
|
|
2574
2586
|
}
|
|
2575
2587
|
|
|
2576
|
-
// bazel-out/
|
|
2588
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
2577
2589
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
2578
2590
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
2579
2591
|
isPublicApiAffected() {
|
|
@@ -2716,10 +2728,10 @@ function getImportPath(expr) {
|
|
|
2716
2728
|
}
|
|
2717
2729
|
}
|
|
2718
2730
|
|
|
2719
|
-
// bazel-out/
|
|
2731
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2720
2732
|
import ts11 from "typescript";
|
|
2721
2733
|
|
|
2722
|
-
// bazel-out/
|
|
2734
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
2723
2735
|
function isSymbolEqual(a, b) {
|
|
2724
2736
|
if (a.decl === b.decl) {
|
|
2725
2737
|
return true;
|
|
@@ -2769,7 +2781,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
2769
2781
|
return true;
|
|
2770
2782
|
}
|
|
2771
2783
|
|
|
2772
|
-
// bazel-out/
|
|
2784
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
2773
2785
|
function extractSemanticTypeParameters(node) {
|
|
2774
2786
|
if (!ts11.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
2775
2787
|
return null;
|
|
@@ -2789,14 +2801,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
2789
2801
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
2790
2802
|
}
|
|
2791
2803
|
|
|
2792
|
-
// bazel-out/
|
|
2804
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2793
2805
|
var ComponentScopeKind;
|
|
2794
2806
|
(function(ComponentScopeKind2) {
|
|
2795
2807
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2796
2808
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2797
2809
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2798
2810
|
|
|
2799
|
-
// bazel-out/
|
|
2811
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2800
2812
|
var CompoundComponentScopeReader = class {
|
|
2801
2813
|
constructor(readers) {
|
|
2802
2814
|
this.readers = readers;
|
|
@@ -2821,7 +2833,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2821
2833
|
}
|
|
2822
2834
|
};
|
|
2823
2835
|
|
|
2824
|
-
// bazel-out/
|
|
2836
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2825
2837
|
var MetadataDtsModuleScopeResolver = class {
|
|
2826
2838
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2827
2839
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2897,11 +2909,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2897
2909
|
}
|
|
2898
2910
|
};
|
|
2899
2911
|
|
|
2900
|
-
// bazel-out/
|
|
2912
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2901
2913
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2902
2914
|
import ts12 from "typescript";
|
|
2903
2915
|
|
|
2904
|
-
// bazel-out/
|
|
2916
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2905
2917
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2906
2918
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2907
2919
|
}
|
|
@@ -2924,7 +2936,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2924
2936
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2925
2937
|
}
|
|
2926
2938
|
|
|
2927
|
-
// bazel-out/
|
|
2939
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2928
2940
|
var LocalModuleScopeRegistry = class {
|
|
2929
2941
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2930
2942
|
this.localReader = localReader;
|
|
@@ -3263,7 +3275,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
3263
3275
|
]);
|
|
3264
3276
|
}
|
|
3265
3277
|
|
|
3266
|
-
// bazel-out/
|
|
3278
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
3267
3279
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
3268
3280
|
import ts13 from "typescript";
|
|
3269
3281
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3332,7 +3344,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3332
3344
|
}
|
|
3333
3345
|
};
|
|
3334
3346
|
|
|
3335
|
-
// bazel-out/
|
|
3347
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3336
3348
|
var CompilationMode;
|
|
3337
3349
|
(function(CompilationMode2) {
|
|
3338
3350
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3346,7 +3358,7 @@ var HandlerPrecedence;
|
|
|
3346
3358
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
3347
3359
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
3348
3360
|
|
|
3349
|
-
// bazel-out/
|
|
3361
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3350
3362
|
import ts14 from "typescript";
|
|
3351
3363
|
function aliasTransformFactory(exportStatements) {
|
|
3352
3364
|
return () => {
|
|
@@ -3369,10 +3381,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3369
3381
|
};
|
|
3370
3382
|
}
|
|
3371
3383
|
|
|
3372
|
-
// bazel-out/
|
|
3384
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3373
3385
|
import ts15 from "typescript";
|
|
3374
3386
|
|
|
3375
|
-
// bazel-out/
|
|
3387
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3376
3388
|
var TraitState;
|
|
3377
3389
|
(function(TraitState2) {
|
|
3378
3390
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3429,7 +3441,7 @@ var TraitImpl = class {
|
|
|
3429
3441
|
}
|
|
3430
3442
|
};
|
|
3431
3443
|
|
|
3432
|
-
// bazel-out/
|
|
3444
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3433
3445
|
var TraitCompiler = class {
|
|
3434
3446
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3435
3447
|
this.handlers = handlers;
|
|
@@ -3877,10 +3889,10 @@ function containsErrors(diagnostics) {
|
|
|
3877
3889
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3878
3890
|
}
|
|
3879
3891
|
|
|
3880
|
-
// bazel-out/
|
|
3892
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3881
3893
|
import ts17 from "typescript";
|
|
3882
3894
|
|
|
3883
|
-
// bazel-out/
|
|
3895
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3884
3896
|
import ts16 from "typescript";
|
|
3885
3897
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3886
3898
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3916,7 +3928,7 @@ function isImportStatement(stmt) {
|
|
|
3916
3928
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3917
3929
|
}
|
|
3918
3930
|
|
|
3919
|
-
// bazel-out/
|
|
3931
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3920
3932
|
var DtsTransformRegistry = class {
|
|
3921
3933
|
constructor() {
|
|
3922
3934
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -4063,11 +4075,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
4063
4075
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
4064
4076
|
}
|
|
4065
4077
|
|
|
4066
|
-
// bazel-out/
|
|
4078
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
4067
4079
|
import { ConstantPool } from "@angular/compiler";
|
|
4068
4080
|
import ts19 from "typescript";
|
|
4069
4081
|
|
|
4070
|
-
// bazel-out/
|
|
4082
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
4071
4083
|
import ts18 from "typescript";
|
|
4072
4084
|
function visit(node, visitor, context) {
|
|
4073
4085
|
return visitor._visit(node, context);
|
|
@@ -4128,7 +4140,7 @@ var Visitor = class {
|
|
|
4128
4140
|
}
|
|
4129
4141
|
};
|
|
4130
4142
|
|
|
4131
|
-
// bazel-out/
|
|
4143
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
4132
4144
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
4133
4145
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
4134
4146
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -4352,12 +4364,66 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
4352
4364
|
return array;
|
|
4353
4365
|
}
|
|
4354
4366
|
|
|
4355
|
-
// bazel-out/
|
|
4367
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4356
4368
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4357
4369
|
|
|
4358
|
-
// bazel-out/
|
|
4370
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4359
4371
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4372
|
+
import ts21 from "typescript";
|
|
4373
|
+
|
|
4374
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
|
|
4360
4375
|
import ts20 from "typescript";
|
|
4376
|
+
function tryParseInputInitializerAndOptions(member, reflector, coreModule) {
|
|
4377
|
+
if (member.value === null || !ts20.isCallExpression(member.value)) {
|
|
4378
|
+
return null;
|
|
4379
|
+
}
|
|
4380
|
+
const call = member.value;
|
|
4381
|
+
let target = extractPropertyTarget(call.expression);
|
|
4382
|
+
if (target === null) {
|
|
4383
|
+
return null;
|
|
4384
|
+
}
|
|
4385
|
+
if (target.text === "input" || target.text === "\u0275input") {
|
|
4386
|
+
if (!isReferenceToInputFunction(target, coreModule, reflector)) {
|
|
4387
|
+
return null;
|
|
4388
|
+
}
|
|
4389
|
+
const optionsNode2 = call.arguments[1];
|
|
4390
|
+
return { inputCall: call, optionsNode: optionsNode2, isRequired: false };
|
|
4391
|
+
}
|
|
4392
|
+
if (target.text !== "required" || !ts20.isPropertyAccessExpression(call.expression)) {
|
|
4393
|
+
return null;
|
|
4394
|
+
}
|
|
4395
|
+
const inputCall = call.expression;
|
|
4396
|
+
target = extractPropertyTarget(inputCall.expression);
|
|
4397
|
+
if (target === null || !isReferenceToInputFunction(target, coreModule, reflector)) {
|
|
4398
|
+
return null;
|
|
4399
|
+
}
|
|
4400
|
+
const optionsNode = call.arguments[0];
|
|
4401
|
+
return {
|
|
4402
|
+
inputCall: call,
|
|
4403
|
+
optionsNode,
|
|
4404
|
+
isRequired: true
|
|
4405
|
+
};
|
|
4406
|
+
}
|
|
4407
|
+
function extractPropertyTarget(node) {
|
|
4408
|
+
if (ts20.isPropertyAccessExpression(node) && ts20.isIdentifier(node.name)) {
|
|
4409
|
+
return node.name;
|
|
4410
|
+
} else if (ts20.isIdentifier(node)) {
|
|
4411
|
+
return node;
|
|
4412
|
+
}
|
|
4413
|
+
return null;
|
|
4414
|
+
}
|
|
4415
|
+
function isReferenceToInputFunction(target, coreModule, reflector) {
|
|
4416
|
+
const decl = reflector.getDeclarationOfIdentifier(target);
|
|
4417
|
+
if (decl === null || !ts20.isVariableDeclaration(decl.node) || decl.node.name === void 0 || !ts20.isIdentifier(decl.node.name)) {
|
|
4418
|
+
return false;
|
|
4419
|
+
}
|
|
4420
|
+
if (coreModule !== void 0 && decl.viaModule !== coreModule) {
|
|
4421
|
+
return false;
|
|
4422
|
+
}
|
|
4423
|
+
return decl.node.name.text === "input" || decl.node.name.text === "\u0275input";
|
|
4424
|
+
}
|
|
4425
|
+
|
|
4426
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4361
4427
|
var EMPTY_OBJECT = {};
|
|
4362
4428
|
var QUERY_TYPES = /* @__PURE__ */ new Set([
|
|
4363
4429
|
"ContentChild",
|
|
@@ -4373,7 +4439,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
4373
4439
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `Incorrect number of arguments to @${decorator.name} decorator`);
|
|
4374
4440
|
} else {
|
|
4375
4441
|
const meta = unwrapExpression(decorator.args[0]);
|
|
4376
|
-
if (!
|
|
4442
|
+
if (!ts21.isObjectLiteralExpression(meta)) {
|
|
4377
4443
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, `@${decorator.name} argument must be an object literal`);
|
|
4378
4444
|
}
|
|
4379
4445
|
directive = reflectObjectLiteral(meta);
|
|
@@ -4385,7 +4451,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
|
|
|
4385
4451
|
const decoratedElements = members.filter((member) => !member.isStatic && member.decorators !== null);
|
|
4386
4452
|
const coreModule = isCore ? void 0 : "@angular/core";
|
|
4387
4453
|
const inputsFromMeta = parseInputsArray(clazz, directive, evaluator, reflector, refEmitter);
|
|
4388
|
-
const inputsFromFields = parseInputFields(clazz,
|
|
4454
|
+
const inputsFromFields = parseInputFields(clazz, members, evaluator, reflector, refEmitter, coreModule);
|
|
4389
4455
|
const inputs = ClassPropertyMapping.fromMappedObject({ ...inputsFromMeta, ...inputsFromFields });
|
|
4390
4456
|
const outputsFromMeta = parseOutputsArray(directive, evaluator);
|
|
4391
4457
|
const outputsFromFields = parseOutputFields(filterToMembersWithDecorator(decoratedElements, "Output", coreModule), evaluator);
|
|
@@ -4511,7 +4577,7 @@ function extractQueryMetadata(exprNode, name, args, propertyName, reflector, eva
|
|
|
4511
4577
|
let emitDistinctChangesOnly = emitDistinctChangesOnlyDefaultValue;
|
|
4512
4578
|
if (args.length === 2) {
|
|
4513
4579
|
const optionsExpr = unwrapExpression(args[1]);
|
|
4514
|
-
if (!
|
|
4580
|
+
if (!ts21.isObjectLiteralExpression(optionsExpr)) {
|
|
4515
4581
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, optionsExpr, `@${name} options must be an object literal`);
|
|
4516
4582
|
}
|
|
4517
4583
|
const options = reflectObjectLiteral(optionsExpr);
|
|
@@ -4606,16 +4672,16 @@ function extractHostBindings(members, evaluator, coreModule, metadata) {
|
|
|
4606
4672
|
}
|
|
4607
4673
|
function extractQueriesFromDecorator(queryData, reflector, evaluator, isCore) {
|
|
4608
4674
|
const content = [], view = [];
|
|
4609
|
-
if (!
|
|
4675
|
+
if (!ts21.isObjectLiteralExpression(queryData)) {
|
|
4610
4676
|
throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, queryData, "Decorator queries metadata must be an object literal");
|
|
4611
4677
|
}
|
|
4612
4678
|
reflectObjectLiteral(queryData).forEach((queryExpr, propertyName) => {
|
|
4613
4679
|
queryExpr = unwrapExpression(queryExpr);
|
|
4614
|
-
if (!
|
|
4680
|
+
if (!ts21.isNewExpression(queryExpr)) {
|
|
4615
4681
|
throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, queryData, "Decorator query metadata must be an instance of a query type");
|
|
4616
4682
|
}
|
|
4617
|
-
const queryType =
|
|
4618
|
-
if (!
|
|
4683
|
+
const queryType = ts21.isPropertyAccessExpression(queryExpr.expression) ? queryExpr.expression.name : queryExpr.expression;
|
|
4684
|
+
if (!ts21.isIdentifier(queryType)) {
|
|
4619
4685
|
throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, queryData, "Decorator query metadata must be an instance of a query type");
|
|
4620
4686
|
}
|
|
4621
4687
|
const type = reflector.getImportOfIdentifier(queryType);
|
|
@@ -4644,7 +4710,7 @@ function parseDirectiveStyles(directive, evaluator, compilationMode) {
|
|
|
4644
4710
|
const relatedInformation = traceDynamicValue(expression, entry);
|
|
4645
4711
|
const chain = {
|
|
4646
4712
|
messageText: `Unknown identifier used as styles string: ${entry.node.getText()} (did you import this string from another file? This is not allowed in local compilation mode. Please either inline it or move it to a separate file and include it using 'styleUrl')`,
|
|
4647
|
-
category:
|
|
4713
|
+
category: ts21.DiagnosticCategory.Error,
|
|
4648
4714
|
code: 0
|
|
4649
4715
|
};
|
|
4650
4716
|
throw new FatalDiagnosticError(ErrorCode.LOCAL_COMPILATION_IMPORTED_STYLES_STRING, expression, chain, relatedInformation);
|
|
@@ -4740,7 +4806,8 @@ function parseInputsArray(clazz, decoratorMetadata, evaluator, reflector, refEmi
|
|
|
4740
4806
|
bindingPropertyName,
|
|
4741
4807
|
classPropertyName,
|
|
4742
4808
|
required: false,
|
|
4743
|
-
transform: null
|
|
4809
|
+
transform: null,
|
|
4810
|
+
isSignal: false
|
|
4744
4811
|
};
|
|
4745
4812
|
} else if (value instanceof Map) {
|
|
4746
4813
|
const name = value.get("name");
|
|
@@ -4755,12 +4822,13 @@ function parseInputsArray(clazz, decoratorMetadata, evaluator, reflector, refEmi
|
|
|
4755
4822
|
if (!(transformValue instanceof DynamicValue) && !(transformValue instanceof Reference)) {
|
|
4756
4823
|
throw createValueHasWrongTypeError(inputsField, transformValue, `Transform of value at position ${i} of @Directive.inputs array must be a function`);
|
|
4757
4824
|
}
|
|
4758
|
-
transform =
|
|
4825
|
+
transform = parseDecoratorInputTransformFunction(clazz, name, transformValue, reflector, refEmitter);
|
|
4759
4826
|
}
|
|
4760
4827
|
inputs[name] = {
|
|
4761
4828
|
classPropertyName: name,
|
|
4762
4829
|
bindingPropertyName: typeof alias === "string" ? alias : name,
|
|
4763
4830
|
required: required === true,
|
|
4831
|
+
isSignal: false,
|
|
4764
4832
|
transform
|
|
4765
4833
|
};
|
|
4766
4834
|
} else {
|
|
@@ -4769,35 +4837,90 @@ function parseInputsArray(clazz, decoratorMetadata, evaluator, reflector, refEmi
|
|
|
4769
4837
|
}
|
|
4770
4838
|
return inputs;
|
|
4771
4839
|
}
|
|
4772
|
-
function
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4840
|
+
function tryGetDecoratorOnMember(member, decoratorName, coreModule) {
|
|
4841
|
+
if (member.decorators === null) {
|
|
4842
|
+
return null;
|
|
4843
|
+
}
|
|
4844
|
+
for (const decorator of member.decorators) {
|
|
4845
|
+
if (decorator.import === null || decorator.import.name !== decoratorName) {
|
|
4846
|
+
continue;
|
|
4847
|
+
}
|
|
4848
|
+
if (coreModule !== void 0 && decorator.import.from !== coreModule) {
|
|
4849
|
+
continue;
|
|
4850
|
+
}
|
|
4851
|
+
return decorator;
|
|
4852
|
+
}
|
|
4853
|
+
return null;
|
|
4854
|
+
}
|
|
4855
|
+
function tryParseInputFieldMapping(clazz, member, evaluator, reflector, coreModule, refEmitter) {
|
|
4856
|
+
const classPropertyName = member.name;
|
|
4857
|
+
const decorator = tryGetDecoratorOnMember(member, "Input", coreModule);
|
|
4858
|
+
if (decorator !== null) {
|
|
4859
|
+
if (decorator.args !== null && decorator.args.length > 1) {
|
|
4860
|
+
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `@${decorator.name} can have at most one argument, got ${decorator.args.length} argument(s)`);
|
|
4861
|
+
}
|
|
4862
|
+
const optionsNode = decorator.args !== null && decorator.args.length === 1 ? decorator.args[0] : void 0;
|
|
4863
|
+
const options = optionsNode !== void 0 ? evaluator.evaluate(optionsNode) : null;
|
|
4864
|
+
const required = options instanceof Map ? options.get("required") === true : false;
|
|
4865
|
+
if (options !== null && typeof options !== "string" && !(options instanceof Map)) {
|
|
4866
|
+
throw createValueHasWrongTypeError(decorator.node, options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
|
|
4867
|
+
}
|
|
4868
|
+
let alias = null;
|
|
4869
|
+
if (typeof options === "string") {
|
|
4870
|
+
alias = options;
|
|
4871
|
+
} else if (options instanceof Map && typeof options.get("alias") === "string") {
|
|
4872
|
+
alias = options.get("alias");
|
|
4873
|
+
}
|
|
4874
|
+
const publicInputName = alias != null ? alias : classPropertyName;
|
|
4777
4875
|
let transform = null;
|
|
4778
|
-
if (options
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
} else if (options instanceof Map) {
|
|
4783
|
-
const aliasInConfig = options.get("alias");
|
|
4784
|
-
bindingPropertyName = typeof aliasInConfig === "string" ? aliasInConfig : classPropertyName;
|
|
4785
|
-
required = options.get("required") === true;
|
|
4786
|
-
if (options.has("transform")) {
|
|
4787
|
-
const transformValue = options.get("transform");
|
|
4788
|
-
if (!(transformValue instanceof DynamicValue) && !(transformValue instanceof Reference)) {
|
|
4789
|
-
throw createValueHasWrongTypeError(decorator.node, transformValue, `Input transform must be a function`);
|
|
4790
|
-
}
|
|
4791
|
-
transform = parseInputTransformFunction(clazz, classPropertyName, transformValue, reflector, refEmitter);
|
|
4876
|
+
if (options instanceof Map && options.has("transform")) {
|
|
4877
|
+
const transformValue = options.get("transform");
|
|
4878
|
+
if (!(transformValue instanceof DynamicValue) && !(transformValue instanceof Reference)) {
|
|
4879
|
+
throw createValueHasWrongTypeError(optionsNode, transformValue, `Input transform must be a function`);
|
|
4792
4880
|
}
|
|
4793
|
-
|
|
4794
|
-
throw createValueHasWrongTypeError(decorator.node, options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
|
|
4881
|
+
transform = parseDecoratorInputTransformFunction(clazz, classPropertyName, transformValue, reflector, refEmitter);
|
|
4795
4882
|
}
|
|
4796
|
-
|
|
4797
|
-
|
|
4883
|
+
return {
|
|
4884
|
+
isSignal: false,
|
|
4885
|
+
classPropertyName,
|
|
4886
|
+
bindingPropertyName: publicInputName,
|
|
4887
|
+
transform,
|
|
4888
|
+
required
|
|
4889
|
+
};
|
|
4890
|
+
}
|
|
4891
|
+
const signalInput = tryParseInputInitializerAndOptions(member, reflector, coreModule);
|
|
4892
|
+
if (signalInput !== null) {
|
|
4893
|
+
const optionsNode = signalInput.optionsNode;
|
|
4894
|
+
const options = optionsNode !== void 0 ? evaluator.evaluate(optionsNode) : null;
|
|
4895
|
+
let bindingPropertyName = classPropertyName;
|
|
4896
|
+
if (options instanceof Map && typeof options.get("alias") === "string") {
|
|
4897
|
+
bindingPropertyName = options.get("alias");
|
|
4898
|
+
}
|
|
4899
|
+
return {
|
|
4900
|
+
isSignal: true,
|
|
4901
|
+
classPropertyName,
|
|
4902
|
+
bindingPropertyName,
|
|
4903
|
+
required: signalInput.isRequired,
|
|
4904
|
+
transform: null
|
|
4905
|
+
};
|
|
4906
|
+
}
|
|
4907
|
+
return null;
|
|
4908
|
+
}
|
|
4909
|
+
function parseInputFields(clazz, members, evaluator, reflector, refEmitter, coreModule) {
|
|
4910
|
+
const inputs = {};
|
|
4911
|
+
for (const member of members) {
|
|
4912
|
+
if (member.isStatic) {
|
|
4913
|
+
continue;
|
|
4914
|
+
}
|
|
4915
|
+
const classPropertyName = member.name;
|
|
4916
|
+
const inputMapping = tryParseInputFieldMapping(clazz, member, evaluator, reflector, coreModule, refEmitter);
|
|
4917
|
+
if (inputMapping !== null) {
|
|
4918
|
+
inputs[classPropertyName] = inputMapping;
|
|
4919
|
+
}
|
|
4920
|
+
}
|
|
4798
4921
|
return inputs;
|
|
4799
4922
|
}
|
|
4800
|
-
function
|
|
4923
|
+
function parseDecoratorInputTransformFunction(clazz, classPropertyName, value, reflector, refEmitter) {
|
|
4801
4924
|
var _a;
|
|
4802
4925
|
const definition = reflector.getDefinitionOfFunction(value.node);
|
|
4803
4926
|
if (definition === null) {
|
|
@@ -4824,7 +4947,7 @@ function parseInputTransformFunction(clazz, classPropertyName, value, reflector,
|
|
|
4824
4947
|
if (!firstParam) {
|
|
4825
4948
|
return {
|
|
4826
4949
|
node,
|
|
4827
|
-
type: new Reference(
|
|
4950
|
+
type: new Reference(ts21.factory.createKeywordTypeNode(ts21.SyntaxKind.UnknownKeyword))
|
|
4828
4951
|
};
|
|
4829
4952
|
}
|
|
4830
4953
|
if (!firstParam.type) {
|
|
@@ -4839,11 +4962,11 @@ function parseInputTransformFunction(clazz, classPropertyName, value, reflector,
|
|
|
4839
4962
|
}
|
|
4840
4963
|
function assertEmittableInputType(type, contextFile, reflector, refEmitter) {
|
|
4841
4964
|
(function walk(node) {
|
|
4842
|
-
if (
|
|
4965
|
+
if (ts21.isTypeReferenceNode(node) && ts21.isIdentifier(node.typeName)) {
|
|
4843
4966
|
const declaration = reflector.getDeclarationOfIdentifier(node.typeName);
|
|
4844
4967
|
if (declaration !== null) {
|
|
4845
4968
|
if (declaration.node.getSourceFile() !== contextFile) {
|
|
4846
|
-
const emittedType = refEmitter.emit(new Reference(declaration.node), contextFile, ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports);
|
|
4969
|
+
const emittedType = refEmitter.emit(new Reference(declaration.node, declaration.viaModule === AmbientImport ? AmbientImport : null), contextFile, ImportFlags.NoAliasing | ImportFlags.AllowTypeImports | ImportFlags.AllowRelativeDtsImports | ImportFlags.AllowAmbientReferences);
|
|
4847
4970
|
assertSuccessfulReferenceEmit(emittedType, node, "type");
|
|
4848
4971
|
} else if (!reflector.isStaticallyExported(declaration.node)) {
|
|
4849
4972
|
throw new FatalDiagnosticError(ErrorCode.SYMBOL_NOT_EXPORTED, type, `Symbol must be exported in order to be used as the type of an Input transform function`, [makeRelatedInformation(declaration.node, `The symbol is declared here.`)]);
|
|
@@ -4944,11 +5067,12 @@ function toR3InputMetadata(mapping) {
|
|
|
4944
5067
|
classPropertyName: mapping.classPropertyName,
|
|
4945
5068
|
bindingPropertyName: mapping.bindingPropertyName,
|
|
4946
5069
|
required: mapping.required,
|
|
4947
|
-
transformFunction: mapping.transform !== null ? new WrappedNodeExpr5(mapping.transform.node) : null
|
|
5070
|
+
transformFunction: mapping.transform !== null ? new WrappedNodeExpr5(mapping.transform.node) : null,
|
|
5071
|
+
isSignal: mapping.isSignal
|
|
4948
5072
|
};
|
|
4949
5073
|
}
|
|
4950
5074
|
|
|
4951
|
-
// bazel-out/
|
|
5075
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4952
5076
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4953
5077
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4954
5078
|
super(decl);
|
|
@@ -4992,7 +5116,7 @@ function isInputMappingEqual(current, previous) {
|
|
|
4992
5116
|
return isInputOrOutputEqual(current, previous) && current.required === previous.required;
|
|
4993
5117
|
}
|
|
4994
5118
|
function isInputOrOutputEqual(current, previous) {
|
|
4995
|
-
return current.classPropertyName === previous.classPropertyName && current.bindingPropertyName === previous.bindingPropertyName;
|
|
5119
|
+
return current.classPropertyName === previous.classPropertyName && current.bindingPropertyName === previous.bindingPropertyName && current.isSignal === previous.isSignal;
|
|
4996
5120
|
}
|
|
4997
5121
|
function isTypeCheckMetaEqual(current, previous) {
|
|
4998
5122
|
if (current.hasNgTemplateContextGuard !== previous.hasNgTemplateContextGuard) {
|
|
@@ -5028,7 +5152,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
5028
5152
|
return isSymbolEqual(current, previous);
|
|
5029
5153
|
}
|
|
5030
5154
|
|
|
5031
|
-
// bazel-out/
|
|
5155
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
5032
5156
|
var FIELD_DECORATORS = [
|
|
5033
5157
|
"Input",
|
|
5034
5158
|
"Output",
|
|
@@ -5202,18 +5326,18 @@ var DirectiveDecoratorHandler = class {
|
|
|
5202
5326
|
}
|
|
5203
5327
|
};
|
|
5204
5328
|
|
|
5205
|
-
// bazel-out/
|
|
5329
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5206
5330
|
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";
|
|
5207
|
-
import
|
|
5331
|
+
import ts23 from "typescript";
|
|
5208
5332
|
|
|
5209
|
-
// bazel-out/
|
|
5210
|
-
import
|
|
5333
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
5334
|
+
import ts22 from "typescript";
|
|
5211
5335
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
5212
5336
|
function _reflectModuleFromTypeParam(type, node) {
|
|
5213
|
-
if (!
|
|
5337
|
+
if (!ts22.isTypeReferenceNode(type)) {
|
|
5214
5338
|
return null;
|
|
5215
5339
|
}
|
|
5216
|
-
const typeName = type && (
|
|
5340
|
+
const typeName = type && (ts22.isIdentifier(type.typeName) && type.typeName || ts22.isQualifiedName(type.typeName) && type.typeName.right) || null;
|
|
5217
5341
|
if (typeName === null) {
|
|
5218
5342
|
return null;
|
|
5219
5343
|
}
|
|
@@ -5225,7 +5349,7 @@ function createModuleWithProvidersResolver(reflector, isCore) {
|
|
|
5225
5349
|
return null;
|
|
5226
5350
|
}
|
|
5227
5351
|
if (type.typeArguments === void 0 || type.typeArguments.length !== 1) {
|
|
5228
|
-
const parent =
|
|
5352
|
+
const parent = ts22.isMethodDeclaration(node) && ts22.isClassDeclaration(node.parent) ? node.parent : null;
|
|
5229
5353
|
const symbolName = (parent && parent.name ? parent.name.getText() + "." : "") + (node.name ? node.name.getText() : "anonymous");
|
|
5230
5354
|
throw new FatalDiagnosticError(ErrorCode.NGMODULE_MODULE_WITH_PROVIDERS_MISSING_GENERIC, type, `${symbolName} returns a ModuleWithProviders type without a generic type argument. Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.`);
|
|
5231
5355
|
}
|
|
@@ -5233,13 +5357,13 @@ function createModuleWithProvidersResolver(reflector, isCore) {
|
|
|
5233
5357
|
return typeNodeToValueExpr(arg);
|
|
5234
5358
|
}
|
|
5235
5359
|
function _reflectModuleFromLiteralType(type) {
|
|
5236
|
-
if (!
|
|
5360
|
+
if (!ts22.isIntersectionTypeNode(type)) {
|
|
5237
5361
|
return null;
|
|
5238
5362
|
}
|
|
5239
5363
|
for (const t of type.types) {
|
|
5240
|
-
if (
|
|
5364
|
+
if (ts22.isTypeLiteralNode(t)) {
|
|
5241
5365
|
for (const m of t.members) {
|
|
5242
|
-
const ngModuleType =
|
|
5366
|
+
const ngModuleType = ts22.isPropertySignature(m) && ts22.isIdentifier(m.name) && m.name.text === "ngModule" && m.type || null;
|
|
5243
5367
|
const ngModuleExpression = ngModuleType && typeNodeToValueExpr(ngModuleType);
|
|
5244
5368
|
if (ngModuleExpression) {
|
|
5245
5369
|
return ngModuleExpression;
|
|
@@ -5273,7 +5397,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
5273
5397
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
5274
5398
|
}
|
|
5275
5399
|
|
|
5276
|
-
// bazel-out/
|
|
5400
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5277
5401
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
5278
5402
|
constructor(decl, hasProviders) {
|
|
5279
5403
|
super(decl);
|
|
@@ -5383,8 +5507,8 @@ var NgModuleDecoratorHandler = class {
|
|
|
5383
5507
|
if (decorator.args === null || decorator.args.length > 1) {
|
|
5384
5508
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `Incorrect number of arguments to @NgModule decorator`);
|
|
5385
5509
|
}
|
|
5386
|
-
const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) :
|
|
5387
|
-
if (!
|
|
5510
|
+
const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : ts23.factory.createObjectLiteralExpression([]);
|
|
5511
|
+
if (!ts23.isObjectLiteralExpression(meta)) {
|
|
5388
5512
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@NgModule argument must be an object literal");
|
|
5389
5513
|
}
|
|
5390
5514
|
const ngModule = reflectObjectLiteral(meta);
|
|
@@ -5444,7 +5568,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5444
5568
|
id = new WrappedNodeExpr7(idExpr);
|
|
5445
5569
|
} else {
|
|
5446
5570
|
const diag = makeDiagnostic(ErrorCode.WARN_NGMODULE_ID_UNNECESSARY, idExpr, `Using 'module.id' for NgModule.id is a common anti-pattern that is ignored by the Angular compiler.`);
|
|
5447
|
-
diag.category =
|
|
5571
|
+
diag.category = ts23.DiagnosticCategory.Warning;
|
|
5448
5572
|
diagnostics.push(diag);
|
|
5449
5573
|
}
|
|
5450
5574
|
}
|
|
@@ -5496,16 +5620,16 @@ var NgModuleDecoratorHandler = class {
|
|
|
5496
5620
|
}
|
|
5497
5621
|
const rawProviders = ngModule.has("providers") ? ngModule.get("providers") : null;
|
|
5498
5622
|
let wrappedProviders = null;
|
|
5499
|
-
if (rawProviders !== null && (!
|
|
5623
|
+
if (rawProviders !== null && (!ts23.isArrayLiteralExpression(rawProviders) || rawProviders.elements.length > 0)) {
|
|
5500
5624
|
wrappedProviders = new WrappedNodeExpr7(this.annotateForClosureCompiler ? wrapFunctionExpressionsInParens(rawProviders) : rawProviders);
|
|
5501
5625
|
}
|
|
5502
5626
|
const topLevelImports = [];
|
|
5503
5627
|
if (this.compilationMode !== CompilationMode.LOCAL && ngModule.has("imports")) {
|
|
5504
5628
|
const rawImports2 = unwrapExpression(ngModule.get("imports"));
|
|
5505
5629
|
let topLevelExpressions = [];
|
|
5506
|
-
if (
|
|
5630
|
+
if (ts23.isArrayLiteralExpression(rawImports2)) {
|
|
5507
5631
|
for (const element of rawImports2.elements) {
|
|
5508
|
-
if (
|
|
5632
|
+
if (ts23.isSpreadElement(element)) {
|
|
5509
5633
|
topLevelExpressions.push(element.expression);
|
|
5510
5634
|
continue;
|
|
5511
5635
|
}
|
|
@@ -5537,7 +5661,7 @@ var NgModuleDecoratorHandler = class {
|
|
|
5537
5661
|
if (exp === null) {
|
|
5538
5662
|
continue;
|
|
5539
5663
|
}
|
|
5540
|
-
if (
|
|
5664
|
+
if (ts23.isArrayLiteralExpression(exp)) {
|
|
5541
5665
|
if (exp.elements) {
|
|
5542
5666
|
injectorMetadata.imports.push(...exp.elements.map((n) => new WrappedNodeExpr7(n)));
|
|
5543
5667
|
}
|
|
@@ -5830,7 +5954,7 @@ function isNgModule(node, compilation) {
|
|
|
5830
5954
|
return !compilation.dependencies.some((dep) => dep.ref.node === node);
|
|
5831
5955
|
}
|
|
5832
5956
|
function isModuleIdExpression(expr) {
|
|
5833
|
-
return
|
|
5957
|
+
return ts23.isPropertyAccessExpression(expr) && ts23.isIdentifier(expr.expression) && expr.expression.text === "module" && expr.name.text === "id";
|
|
5834
5958
|
}
|
|
5835
5959
|
function makeStandaloneBootstrapDiagnostic(ngModuleClass, bootstrappedClassRef, rawBootstrapExpr) {
|
|
5836
5960
|
const componentClassName = bootstrappedClassRef.node.name.text;
|
|
@@ -5842,7 +5966,7 @@ function isSyntheticReference(ref) {
|
|
|
5842
5966
|
return ref.synthetic;
|
|
5843
5967
|
}
|
|
5844
5968
|
|
|
5845
|
-
// bazel-out/
|
|
5969
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5846
5970
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5847
5971
|
const name = ref.debugName || "(unknown)";
|
|
5848
5972
|
const path2 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5865,9 +5989,9 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5865
5989
|
return null;
|
|
5866
5990
|
}
|
|
5867
5991
|
|
|
5868
|
-
// bazel-out/
|
|
5992
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5869
5993
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5870
|
-
import
|
|
5994
|
+
import ts24 from "typescript";
|
|
5871
5995
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
5872
5996
|
return declaration.isInline ? declaration.expression : declaration.templateUrlExpression;
|
|
5873
5997
|
}
|
|
@@ -5879,7 +6003,7 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
|
|
|
5879
6003
|
let sourceMapping;
|
|
5880
6004
|
let escapedString = false;
|
|
5881
6005
|
let sourceMapUrl;
|
|
5882
|
-
if (
|
|
6006
|
+
if (ts24.isStringLiteral(template.expression) || ts24.isNoSubstitutionTemplateLiteral(template.expression)) {
|
|
5883
6007
|
sourceParseRange = getTemplateRange(template.expression);
|
|
5884
6008
|
sourceStr = template.expression.getSourceFile().text;
|
|
5885
6009
|
templateContent = template.expression.text;
|
|
@@ -5895,7 +6019,7 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
|
|
|
5895
6019
|
const relatedInformation = traceDynamicValue(template.expression, resolvedTemplate);
|
|
5896
6020
|
const chain = {
|
|
5897
6021
|
messageText: `Unknown identifier used as template string: ${template.expression.getText()} (did you import this string from another file? This is not allowed in local compilation mode. Please either inline it or move it to a separate file and include it using 'templateUrl')`,
|
|
5898
|
-
category:
|
|
6022
|
+
category: ts24.DiagnosticCategory.Error,
|
|
5899
6023
|
code: 0
|
|
5900
6024
|
};
|
|
5901
6025
|
throw new FatalDiagnosticError(ErrorCode.LOCAL_COMPILATION_IMPORTED_TEMPLATE_STRING, template.expression, chain, relatedInformation);
|
|
@@ -6064,7 +6188,7 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
|
|
|
6064
6188
|
}
|
|
6065
6189
|
function getTemplateRange(templateExpr) {
|
|
6066
6190
|
const startPos = templateExpr.getStart() + 1;
|
|
6067
|
-
const { line, character } =
|
|
6191
|
+
const { line, character } = ts24.getLineAndCharacterOfPosition(templateExpr.getSourceFile(), startPos);
|
|
6068
6192
|
return {
|
|
6069
6193
|
startPos,
|
|
6070
6194
|
startLine: line,
|
|
@@ -6097,7 +6221,7 @@ function transformDecoratorResources(dec, component, styles, template) {
|
|
|
6097
6221
|
const metadata = new Map(component);
|
|
6098
6222
|
if (metadata.has("templateUrl")) {
|
|
6099
6223
|
metadata.delete("templateUrl");
|
|
6100
|
-
metadata.set("template",
|
|
6224
|
+
metadata.set("template", ts24.factory.createStringLiteral(template.content));
|
|
6101
6225
|
}
|
|
6102
6226
|
if (metadata.has("styleUrls") || metadata.has("styleUrl") || metadata.has("styles")) {
|
|
6103
6227
|
metadata.delete("styles");
|
|
@@ -6106,20 +6230,20 @@ function transformDecoratorResources(dec, component, styles, template) {
|
|
|
6106
6230
|
if (styles.length > 0) {
|
|
6107
6231
|
const styleNodes = styles.reduce((result, style) => {
|
|
6108
6232
|
if (style.trim().length > 0) {
|
|
6109
|
-
result.push(
|
|
6233
|
+
result.push(ts24.factory.createStringLiteral(style));
|
|
6110
6234
|
}
|
|
6111
6235
|
return result;
|
|
6112
6236
|
}, []);
|
|
6113
6237
|
if (styleNodes.length > 0) {
|
|
6114
|
-
metadata.set("styles",
|
|
6238
|
+
metadata.set("styles", ts24.factory.createArrayLiteralExpression(styleNodes));
|
|
6115
6239
|
}
|
|
6116
6240
|
}
|
|
6117
6241
|
}
|
|
6118
6242
|
const newMetadataFields = [];
|
|
6119
6243
|
for (const [name, value] of metadata.entries()) {
|
|
6120
|
-
newMetadataFields.push(
|
|
6244
|
+
newMetadataFields.push(ts24.factory.createPropertyAssignment(name, value));
|
|
6121
6245
|
}
|
|
6122
|
-
return { ...dec, args: [
|
|
6246
|
+
return { ...dec, args: [ts24.factory.createObjectLiteralExpression(newMetadataFields)] };
|
|
6123
6247
|
}
|
|
6124
6248
|
function extractComponentStyleUrls(evaluator, component) {
|
|
6125
6249
|
const styleUrlsExpr = component.get("styleUrls");
|
|
@@ -6145,9 +6269,9 @@ function extractComponentStyleUrls(evaluator, component) {
|
|
|
6145
6269
|
}
|
|
6146
6270
|
function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
|
|
6147
6271
|
const styleUrls = [];
|
|
6148
|
-
if (
|
|
6272
|
+
if (ts24.isArrayLiteralExpression(styleUrlsExpr)) {
|
|
6149
6273
|
for (const styleUrlExpr of styleUrlsExpr.elements) {
|
|
6150
|
-
if (
|
|
6274
|
+
if (ts24.isSpreadElement(styleUrlExpr)) {
|
|
6151
6275
|
styleUrls.push(...extractStyleUrlsFromExpression(evaluator, styleUrlExpr.expression));
|
|
6152
6276
|
} else {
|
|
6153
6277
|
const styleUrl = evaluator.evaluate(styleUrlExpr);
|
|
@@ -6179,18 +6303,18 @@ function extractStyleUrlsFromExpression(evaluator, styleUrlsExpr) {
|
|
|
6179
6303
|
function extractStyleResources(resourceLoader, component, containingFile) {
|
|
6180
6304
|
const styles = /* @__PURE__ */ new Set();
|
|
6181
6305
|
function stringLiteralElements(array) {
|
|
6182
|
-
return array.elements.filter((e) =>
|
|
6306
|
+
return array.elements.filter((e) => ts24.isStringLiteralLike(e));
|
|
6183
6307
|
}
|
|
6184
6308
|
const styleUrlExpr = component.get("styleUrl");
|
|
6185
6309
|
const styleUrlsExpr = component.get("styleUrls");
|
|
6186
|
-
if (styleUrlsExpr !== void 0 &&
|
|
6310
|
+
if (styleUrlsExpr !== void 0 && ts24.isArrayLiteralExpression(styleUrlsExpr)) {
|
|
6187
6311
|
for (const expression of stringLiteralElements(styleUrlsExpr)) {
|
|
6188
6312
|
const resource = stringLiteralUrlToResource(resourceLoader, expression, containingFile);
|
|
6189
6313
|
if (resource !== null) {
|
|
6190
6314
|
styles.add(resource);
|
|
6191
6315
|
}
|
|
6192
6316
|
}
|
|
6193
|
-
} else if (styleUrlExpr !== void 0 &&
|
|
6317
|
+
} else if (styleUrlExpr !== void 0 && ts24.isStringLiteralLike(styleUrlExpr)) {
|
|
6194
6318
|
const resource = stringLiteralUrlToResource(resourceLoader, styleUrlExpr, containingFile);
|
|
6195
6319
|
if (resource !== null) {
|
|
6196
6320
|
styles.add(resource);
|
|
@@ -6198,11 +6322,11 @@ function extractStyleResources(resourceLoader, component, containingFile) {
|
|
|
6198
6322
|
}
|
|
6199
6323
|
const stylesExpr = component.get("styles");
|
|
6200
6324
|
if (stylesExpr !== void 0) {
|
|
6201
|
-
if (
|
|
6325
|
+
if (ts24.isArrayLiteralExpression(stylesExpr)) {
|
|
6202
6326
|
for (const expression of stringLiteralElements(stylesExpr)) {
|
|
6203
6327
|
styles.add({ path: null, expression });
|
|
6204
6328
|
}
|
|
6205
|
-
} else if (
|
|
6329
|
+
} else if (ts24.isStringLiteralLike(stylesExpr)) {
|
|
6206
6330
|
styles.add({ path: null, expression: stylesExpr });
|
|
6207
6331
|
}
|
|
6208
6332
|
}
|
|
@@ -6224,7 +6348,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
6224
6348
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
6225
6349
|
}
|
|
6226
6350
|
|
|
6227
|
-
// bazel-out/
|
|
6351
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
6228
6352
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
6229
6353
|
constructor() {
|
|
6230
6354
|
super(...arguments);
|
|
@@ -6259,7 +6383,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
6259
6383
|
}
|
|
6260
6384
|
};
|
|
6261
6385
|
|
|
6262
|
-
// bazel-out/
|
|
6386
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
6263
6387
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
6264
6388
|
if (value instanceof Map) {
|
|
6265
6389
|
const name = value.get("name");
|
|
@@ -6335,7 +6459,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
6335
6459
|
return false;
|
|
6336
6460
|
}
|
|
6337
6461
|
|
|
6338
|
-
// bazel-out/
|
|
6462
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
6339
6463
|
var EMPTY_ARRAY2 = [];
|
|
6340
6464
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
6341
6465
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -6721,7 +6845,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6721
6845
|
}
|
|
6722
6846
|
typeCheck(ctx, node, meta) {
|
|
6723
6847
|
var _a;
|
|
6724
|
-
if (this.typeCheckScopeRegistry === null || !
|
|
6848
|
+
if (this.typeCheckScopeRegistry === null || !ts25.isClassDeclaration(node)) {
|
|
6725
6849
|
return;
|
|
6726
6850
|
}
|
|
6727
6851
|
if (meta.isPoisoned && !this.usePoisonedData) {
|
|
@@ -7076,10 +7200,10 @@ var ComponentDecoratorHandler = class {
|
|
|
7076
7200
|
this.resolveDeferTriggers(deferBlock, deferBlock.prefetchTriggers, componentBoundTarget, triggerElements);
|
|
7077
7201
|
resolutionData.deferBlocks.set(deferBlock, { deps, triggerElements });
|
|
7078
7202
|
}
|
|
7079
|
-
if (analysisData.meta.isStandalone && analysisData.rawImports !== null &&
|
|
7203
|
+
if (analysisData.meta.isStandalone && analysisData.rawImports !== null && ts25.isArrayLiteralExpression(analysisData.rawImports)) {
|
|
7080
7204
|
for (const element of analysisData.rawImports.elements) {
|
|
7081
7205
|
const node = tryUnwrapForwardRef(element, this.reflector) || element;
|
|
7082
|
-
if (!
|
|
7206
|
+
if (!ts25.isIdentifier(node)) {
|
|
7083
7207
|
continue;
|
|
7084
7208
|
}
|
|
7085
7209
|
const imp = this.reflector.getImportOfIdentifier(node);
|
|
@@ -7148,9 +7272,9 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
7148
7272
|
return diagnostics;
|
|
7149
7273
|
}
|
|
7150
7274
|
|
|
7151
|
-
// bazel-out/
|
|
7275
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
7152
7276
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
7153
|
-
import
|
|
7277
|
+
import ts26 from "typescript";
|
|
7154
7278
|
var InjectableDecoratorHandler = class {
|
|
7155
7279
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
|
|
7156
7280
|
this.reflector = reflector;
|
|
@@ -7264,7 +7388,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
7264
7388
|
};
|
|
7265
7389
|
} else if (decorator.args.length === 1) {
|
|
7266
7390
|
const metaNode = decorator.args[0];
|
|
7267
|
-
if (!
|
|
7391
|
+
if (!ts26.isObjectLiteralExpression(metaNode)) {
|
|
7268
7392
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, metaNode, `@Injectable argument must be an object literal`);
|
|
7269
7393
|
}
|
|
7270
7394
|
const meta = reflectObjectLiteral(metaNode);
|
|
@@ -7272,7 +7396,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
|
|
|
7272
7396
|
let deps = void 0;
|
|
7273
7397
|
if ((meta.has("useClass") || meta.has("useFactory")) && meta.has("deps")) {
|
|
7274
7398
|
const depsExpr = meta.get("deps");
|
|
7275
|
-
if (!
|
|
7399
|
+
if (!ts26.isArrayLiteralExpression(depsExpr)) {
|
|
7276
7400
|
throw new FatalDiagnosticError(ErrorCode.VALUE_NOT_LITERAL, depsExpr, `@Injectable deps metadata must be an inline array`);
|
|
7277
7401
|
}
|
|
7278
7402
|
deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
|
|
@@ -7357,12 +7481,12 @@ function getDep(dep, reflector) {
|
|
|
7357
7481
|
}
|
|
7358
7482
|
return true;
|
|
7359
7483
|
}
|
|
7360
|
-
if (
|
|
7484
|
+
if (ts26.isArrayLiteralExpression(dep)) {
|
|
7361
7485
|
dep.elements.forEach((el) => {
|
|
7362
7486
|
let isDecorator = false;
|
|
7363
|
-
if (
|
|
7487
|
+
if (ts26.isIdentifier(el)) {
|
|
7364
7488
|
isDecorator = maybeUpdateDecorator(el, reflector);
|
|
7365
|
-
} else if (
|
|
7489
|
+
} else if (ts26.isNewExpression(el) && ts26.isIdentifier(el.expression)) {
|
|
7366
7490
|
const token = el.arguments && el.arguments.length > 0 && el.arguments[0] || void 0;
|
|
7367
7491
|
isDecorator = maybeUpdateDecorator(el.expression, reflector, token);
|
|
7368
7492
|
}
|
|
@@ -7374,9 +7498,9 @@ function getDep(dep, reflector) {
|
|
|
7374
7498
|
return meta;
|
|
7375
7499
|
}
|
|
7376
7500
|
|
|
7377
|
-
// bazel-out/
|
|
7501
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
7378
7502
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
7379
|
-
import
|
|
7503
|
+
import ts27 from "typescript";
|
|
7380
7504
|
var PipeSymbol = class extends SemanticSymbol {
|
|
7381
7505
|
constructor(decl, name) {
|
|
7382
7506
|
super(decl);
|
|
@@ -7433,7 +7557,7 @@ var PipeDecoratorHandler = class {
|
|
|
7433
7557
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, "@Pipe must have exactly one argument");
|
|
7434
7558
|
}
|
|
7435
7559
|
const meta = unwrapExpression(decorator.args[0]);
|
|
7436
|
-
if (!
|
|
7560
|
+
if (!ts27.isObjectLiteralExpression(meta)) {
|
|
7437
7561
|
throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARG_NOT_LITERAL, meta, "@Pipe must have a literal argument");
|
|
7438
7562
|
}
|
|
7439
7563
|
const pipe = reflectObjectLiteral(meta);
|
|
@@ -7526,14 +7650,14 @@ var PipeDecoratorHandler = class {
|
|
|
7526
7650
|
}
|
|
7527
7651
|
};
|
|
7528
7652
|
|
|
7529
|
-
// bazel-out/
|
|
7653
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
|
|
7530
7654
|
var OptimizeFor;
|
|
7531
7655
|
(function(OptimizeFor2) {
|
|
7532
7656
|
OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
|
|
7533
7657
|
OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
|
|
7534
7658
|
})(OptimizeFor || (OptimizeFor = {}));
|
|
7535
7659
|
|
|
7536
|
-
// bazel-out/
|
|
7660
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
|
|
7537
7661
|
var PotentialImportKind;
|
|
7538
7662
|
(function(PotentialImportKind2) {
|
|
7539
7663
|
PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
|
|
@@ -7545,14 +7669,14 @@ var PotentialImportMode;
|
|
|
7545
7669
|
PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
|
|
7546
7670
|
})(PotentialImportMode || (PotentialImportMode = {}));
|
|
7547
7671
|
|
|
7548
|
-
// bazel-out/
|
|
7672
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
|
|
7549
7673
|
var CompletionKind;
|
|
7550
7674
|
(function(CompletionKind2) {
|
|
7551
7675
|
CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
|
|
7552
7676
|
CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
|
|
7553
7677
|
})(CompletionKind || (CompletionKind = {}));
|
|
7554
7678
|
|
|
7555
|
-
// bazel-out/
|
|
7679
|
+
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
|
|
7556
7680
|
var SymbolKind;
|
|
7557
7681
|
(function(SymbolKind2) {
|
|
7558
7682
|
SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
|
|
@@ -7620,4 +7744,4 @@ export {
|
|
|
7620
7744
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7621
7745
|
* found in the LICENSE file at https://angular.io/license
|
|
7622
7746
|
*/
|
|
7623
|
-
//# sourceMappingURL=chunk-
|
|
7747
|
+
//# sourceMappingURL=chunk-U4EFDEE4.js.map
|