@angular/compiler-cli 18.0.0-next.1 → 18.0.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-WCD6LVCP.js → chunk-2WQIUGOU.js} +7 -7
- package/bundles/{chunk-C4L7A7U3.js → chunk-45SUUHP7.js} +74 -35
- package/bundles/chunk-45SUUHP7.js.map +6 -0
- package/bundles/{chunk-R4KQI5XI.js → chunk-64JBPJBS.js} +5 -5
- package/bundles/{chunk-ALDR4XSX.js → chunk-75Z2LUBT.js} +1189 -934
- package/bundles/chunk-75Z2LUBT.js.map +6 -0
- package/bundles/{chunk-B454JZVO.js → chunk-KVMNPNPQ.js} +5 -5
- package/bundles/{chunk-SBDNBITT.js → chunk-LYJKWJUC.js} +3 -3
- package/bundles/{chunk-AWB4ZG2D.js → chunk-QA6MINWF.js} +52 -50
- package/bundles/chunk-QA6MINWF.js.map +6 -0
- package/bundles/{chunk-GGJA4IFT.js → chunk-RUNTWSSX.js} +170 -91
- package/bundles/chunk-RUNTWSSX.js.map +6 -0
- package/bundles/{chunk-75YFKYUJ.js → chunk-UM6JO3VZ.js} +7 -7
- package/bundles/{chunk-OHOBDHII.js → chunk-UYDKSYFP.js} +180 -106
- package/bundles/chunk-UYDKSYFP.js.map +6 -0
- package/bundles/{chunk-YUMIYLNL.js → chunk-XIYC7KSQ.js} +5 -5
- package/bundles/index.js +14 -12
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +20 -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/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/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/index.d.ts +1 -0
- package/linker/babel/src/ast/babel_ast_host.d.ts +2 -1
- package/linker/src/ast/ast_host.d.ts +4 -0
- package/linker/src/ast/ast_value.d.ts +5 -0
- package/linker/src/ast/typescript/typescript_ast_host.d.ts +1 -0
- package/linker/src/file_linker/partial_linkers/partial_class_metadata_async_linker_1.d.ts +16 -0
- package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +1 -0
- package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
- package/package.json +4 -4
- package/src/ngtsc/annotations/component/src/handler.d.ts +1 -1
- package/src/ngtsc/annotations/directive/index.d.ts +1 -0
- package/src/ngtsc/annotations/directive/src/initializer_function_access.d.ts +17 -0
- package/src/ngtsc/annotations/directive/src/initializer_functions.d.ts +10 -6
- package/src/ngtsc/annotations/directive/src/input_function.d.ts +4 -1
- package/src/ngtsc/annotations/directive/src/model_function.d.ts +4 -1
- package/src/ngtsc/annotations/directive/src/output_function.d.ts +4 -1
- package/src/ngtsc/annotations/directive/src/query_functions.d.ts +8 -2
- package/src/ngtsc/annotations/index.d.ts +1 -1
- package/src/ngtsc/diagnostics/src/error_code.d.ts +19 -0
- package/src/ngtsc/docs/src/entities.d.ts +36 -1
- package/src/ngtsc/docs/src/function_extractor.d.ts +3 -2
- package/src/ngtsc/docs/src/initializer_api_function_extractor.d.ts +24 -0
- package/src/ngtsc/docs/src/internal.d.ts +8 -0
- package/src/ngtsc/imports/src/imported_symbols_tracker.d.ts +13 -0
- package/src/ngtsc/reflection/src/host.d.ts +13 -3
- package/src/ngtsc/reflection/src/typescript.d.ts +8 -1
- package/src/ngtsc/reflection/src/util.d.ts +6 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +3 -3
- package/src/ngtsc/validation/index.d.ts +8 -0
- package/src/ngtsc/validation/src/rules/api.d.ts +24 -0
- package/src/ngtsc/validation/src/rules/initializer_api_usage_rule.d.ts +21 -0
- package/src/ngtsc/validation/src/source_file_validator.d.ts +22 -0
- package/src/transformers/jit_transforms/initializer_api_transforms/transform_api.d.ts +3 -3
- package/bundles/chunk-ALDR4XSX.js.map +0 -6
- package/bundles/chunk-AWB4ZG2D.js.map +0 -6
- package/bundles/chunk-C4L7A7U3.js.map +0 -6
- package/bundles/chunk-GGJA4IFT.js.map +0 -6
- package/bundles/chunk-OHOBDHII.js.map +0 -6
- /package/bundles/{chunk-WCD6LVCP.js.map → chunk-2WQIUGOU.js.map} +0 -0
- /package/bundles/{chunk-R4KQI5XI.js.map → chunk-64JBPJBS.js.map} +0 -0
- /package/bundles/{chunk-B454JZVO.js.map → chunk-KVMNPNPQ.js.map} +0 -0
- /package/bundles/{chunk-SBDNBITT.js.map → chunk-LYJKWJUC.js.map} +0 -0
- /package/bundles/{chunk-75YFKYUJ.js.map → chunk-UM6JO3VZ.js.map} +0 -0
- /package/bundles/{chunk-YUMIYLNL.js.map → chunk-XIYC7KSQ.js.map} +0 -0
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
6
|
AmbientImport,
|
|
7
|
+
ClassMemberAccessLevel,
|
|
7
8
|
ClassMemberKind,
|
|
8
9
|
ErrorCode,
|
|
9
10
|
FatalDiagnosticError,
|
|
@@ -12,6 +13,7 @@ import {
|
|
|
12
13
|
Reference,
|
|
13
14
|
assertSuccessfulReferenceEmit,
|
|
14
15
|
attachDefaultImportDeclaration,
|
|
16
|
+
classMemberAccessLevelToString,
|
|
15
17
|
entityNameToValue,
|
|
16
18
|
filterToMembersWithDecorator,
|
|
17
19
|
getDefaultImportDeclaration,
|
|
@@ -21,6 +23,7 @@ import {
|
|
|
21
23
|
isFromDtsFile,
|
|
22
24
|
isNamedClassDeclaration,
|
|
23
25
|
makeDiagnostic,
|
|
26
|
+
makeDiagnosticChain,
|
|
24
27
|
makeRelatedInformation,
|
|
25
28
|
nodeDebugInfo,
|
|
26
29
|
nodeNameForError,
|
|
@@ -31,18 +34,18 @@ import {
|
|
|
31
34
|
translateStatement,
|
|
32
35
|
translateType,
|
|
33
36
|
typeNodeToValueExpr
|
|
34
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-RUNTWSSX.js";
|
|
35
38
|
import {
|
|
36
39
|
PerfEvent,
|
|
37
40
|
PerfPhase
|
|
38
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-64JBPJBS.js";
|
|
39
42
|
import {
|
|
40
43
|
absoluteFrom,
|
|
41
44
|
absoluteFromSourceFile,
|
|
42
45
|
relative
|
|
43
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-UM6JO3VZ.js";
|
|
44
47
|
|
|
45
|
-
// bazel-out/
|
|
48
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
46
49
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
47
50
|
import ts from "typescript";
|
|
48
51
|
var CORE_MODULE = "@angular/core";
|
|
@@ -298,7 +301,7 @@ function isAbstractClassDeclaration(clazz) {
|
|
|
298
301
|
return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
|
|
299
302
|
}
|
|
300
303
|
|
|
301
|
-
// bazel-out/
|
|
304
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
302
305
|
var DynamicValue = class {
|
|
303
306
|
constructor(node, reason, code) {
|
|
304
307
|
this.node = node;
|
|
@@ -388,10 +391,10 @@ var DynamicValue = class {
|
|
|
388
391
|
}
|
|
389
392
|
};
|
|
390
393
|
|
|
391
|
-
// bazel-out/
|
|
394
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
392
395
|
import ts2 from "typescript";
|
|
393
396
|
|
|
394
|
-
// bazel-out/
|
|
397
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
395
398
|
var ResolvedModule = class {
|
|
396
399
|
constructor(exports, evaluate) {
|
|
397
400
|
this.exports = exports;
|
|
@@ -421,7 +424,7 @@ var EnumValue = class {
|
|
|
421
424
|
var KnownFn = class {
|
|
422
425
|
};
|
|
423
426
|
|
|
424
|
-
// bazel-out/
|
|
427
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
425
428
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
426
429
|
constructor(lhs) {
|
|
427
430
|
super();
|
|
@@ -473,14 +476,14 @@ var StringConcatBuiltinFn = class extends KnownFn {
|
|
|
473
476
|
}
|
|
474
477
|
};
|
|
475
478
|
|
|
476
|
-
// bazel-out/
|
|
479
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
477
480
|
var SyntheticValue = class {
|
|
478
481
|
constructor(value) {
|
|
479
482
|
this.value = value;
|
|
480
483
|
}
|
|
481
484
|
};
|
|
482
485
|
|
|
483
|
-
// bazel-out/
|
|
486
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
484
487
|
function literalBinaryOp(op) {
|
|
485
488
|
return { op, literal: true };
|
|
486
489
|
}
|
|
@@ -1058,7 +1061,7 @@ function owningModule(context, override = null) {
|
|
|
1058
1061
|
}
|
|
1059
1062
|
}
|
|
1060
1063
|
|
|
1061
|
-
// bazel-out/
|
|
1064
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1062
1065
|
var PartialEvaluator = class {
|
|
1063
1066
|
constructor(host, checker, dependencyTracker) {
|
|
1064
1067
|
this.host = host;
|
|
@@ -1078,7 +1081,7 @@ var PartialEvaluator = class {
|
|
|
1078
1081
|
}
|
|
1079
1082
|
};
|
|
1080
1083
|
|
|
1081
|
-
// bazel-out/
|
|
1084
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1082
1085
|
import ts3 from "typescript";
|
|
1083
1086
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1084
1087
|
var _a, _b;
|
|
@@ -1208,7 +1211,7 @@ function getContainerNode(node) {
|
|
|
1208
1211
|
return node.getSourceFile();
|
|
1209
1212
|
}
|
|
1210
1213
|
|
|
1211
|
-
// bazel-out/
|
|
1214
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1212
1215
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1213
1216
|
import ts4 from "typescript";
|
|
1214
1217
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1352,10 +1355,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1352
1355
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1353
1356
|
}
|
|
1354
1357
|
|
|
1355
|
-
// bazel-out/
|
|
1358
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1356
1359
|
import ts12 from "typescript";
|
|
1357
1360
|
|
|
1358
|
-
// bazel-out/
|
|
1361
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1359
1362
|
var MetaKind;
|
|
1360
1363
|
(function(MetaKind2) {
|
|
1361
1364
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1368,10 +1371,10 @@ var MatchSource;
|
|
|
1368
1371
|
MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
|
|
1369
1372
|
})(MatchSource || (MatchSource = {}));
|
|
1370
1373
|
|
|
1371
|
-
// bazel-out/
|
|
1374
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1372
1375
|
import ts6 from "typescript";
|
|
1373
1376
|
|
|
1374
|
-
// bazel-out/
|
|
1377
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1375
1378
|
var ClassPropertyMapping = class {
|
|
1376
1379
|
constructor(forwardMap) {
|
|
1377
1380
|
this.forwardMap = forwardMap;
|
|
@@ -1451,7 +1454,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
1451
1454
|
return reverseMap;
|
|
1452
1455
|
}
|
|
1453
1456
|
|
|
1454
|
-
// bazel-out/
|
|
1457
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
1455
1458
|
import ts5 from "typescript";
|
|
1456
1459
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
1457
1460
|
if (!ts5.isTupleTypeNode(def)) {
|
|
@@ -1644,7 +1647,7 @@ function isHostDirectiveMetaForGlobalMode(hostDirectiveMeta) {
|
|
|
1644
1647
|
return hostDirectiveMeta.directive instanceof Reference;
|
|
1645
1648
|
}
|
|
1646
1649
|
|
|
1647
|
-
// bazel-out/
|
|
1650
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1648
1651
|
var DtsMetadataReader = class {
|
|
1649
1652
|
constructor(checker, reflector) {
|
|
1650
1653
|
this.checker = checker;
|
|
@@ -1827,7 +1830,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
|
|
|
1827
1830
|
return result.length > 0 ? result : null;
|
|
1828
1831
|
}
|
|
1829
1832
|
|
|
1830
|
-
// bazel-out/
|
|
1833
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
1831
1834
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
1832
1835
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
1833
1836
|
if (topMeta === null) {
|
|
@@ -1891,7 +1894,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
1891
1894
|
};
|
|
1892
1895
|
}
|
|
1893
1896
|
|
|
1894
|
-
// bazel-out/
|
|
1897
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
1895
1898
|
var LocalMetadataRegistry = class {
|
|
1896
1899
|
constructor() {
|
|
1897
1900
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -1948,7 +1951,7 @@ var CompoundMetadataRegistry = class {
|
|
|
1948
1951
|
}
|
|
1949
1952
|
};
|
|
1950
1953
|
|
|
1951
|
-
// bazel-out/
|
|
1954
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
1952
1955
|
var ResourceRegistry = class {
|
|
1953
1956
|
constructor() {
|
|
1954
1957
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -2013,7 +2016,7 @@ var ResourceRegistry = class {
|
|
|
2013
2016
|
}
|
|
2014
2017
|
};
|
|
2015
2018
|
|
|
2016
|
-
// bazel-out/
|
|
2019
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/providers.mjs
|
|
2017
2020
|
var ExportedProviderStatusResolver = class {
|
|
2018
2021
|
constructor(metaReader) {
|
|
2019
2022
|
this.metaReader = metaReader;
|
|
@@ -2057,7 +2060,7 @@ var ExportedProviderStatusResolver = class {
|
|
|
2057
2060
|
}
|
|
2058
2061
|
};
|
|
2059
2062
|
|
|
2060
|
-
// bazel-out/
|
|
2063
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
|
|
2061
2064
|
var EMPTY_ARRAY = [];
|
|
2062
2065
|
var HostDirectivesResolver = class {
|
|
2063
2066
|
constructor(metaReader) {
|
|
@@ -2123,7 +2126,7 @@ function resolveOutput(bindingName) {
|
|
|
2123
2126
|
return bindingName;
|
|
2124
2127
|
}
|
|
2125
2128
|
|
|
2126
|
-
// bazel-out/
|
|
2129
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
2127
2130
|
var CompilationMode;
|
|
2128
2131
|
(function(CompilationMode2) {
|
|
2129
2132
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -2137,7 +2140,7 @@ var HandlerPrecedence;
|
|
|
2137
2140
|
HandlerPrecedence2[HandlerPrecedence2["WEAK"] = 2] = "WEAK";
|
|
2138
2141
|
})(HandlerPrecedence || (HandlerPrecedence = {}));
|
|
2139
2142
|
|
|
2140
|
-
// bazel-out/
|
|
2143
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
2141
2144
|
import ts7 from "typescript";
|
|
2142
2145
|
function aliasTransformFactory(exportStatements) {
|
|
2143
2146
|
return () => {
|
|
@@ -2160,10 +2163,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
2160
2163
|
};
|
|
2161
2164
|
}
|
|
2162
2165
|
|
|
2163
|
-
// bazel-out/
|
|
2166
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2164
2167
|
import ts8 from "typescript";
|
|
2165
2168
|
|
|
2166
|
-
// bazel-out/
|
|
2169
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
2167
2170
|
var TraitState;
|
|
2168
2171
|
(function(TraitState2) {
|
|
2169
2172
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -2220,7 +2223,7 @@ var TraitImpl = class {
|
|
|
2220
2223
|
}
|
|
2221
2224
|
};
|
|
2222
2225
|
|
|
2223
|
-
// bazel-out/
|
|
2226
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
2224
2227
|
var TraitCompiler = class {
|
|
2225
2228
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
2226
2229
|
this.handlers = handlers;
|
|
@@ -2677,7 +2680,7 @@ function containsErrors(diagnostics) {
|
|
|
2677
2680
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts8.DiagnosticCategory.Error);
|
|
2678
2681
|
}
|
|
2679
2682
|
|
|
2680
|
-
// bazel-out/
|
|
2683
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
2681
2684
|
import ts9 from "typescript";
|
|
2682
2685
|
var DtsTransformRegistry = class {
|
|
2683
2686
|
constructor() {
|
|
@@ -2824,11 +2827,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
2824
2827
|
ts9.forEachChild(node, markForEmitAsSingleLine);
|
|
2825
2828
|
}
|
|
2826
2829
|
|
|
2827
|
-
// bazel-out/
|
|
2830
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
2828
2831
|
import { ConstantPool } from "@angular/compiler";
|
|
2829
2832
|
import ts11 from "typescript";
|
|
2830
2833
|
|
|
2831
|
-
// bazel-out/
|
|
2834
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
2832
2835
|
import ts10 from "typescript";
|
|
2833
2836
|
function visit(node, visitor, context) {
|
|
2834
2837
|
return visitor._visit(node, context);
|
|
@@ -2889,7 +2892,7 @@ var Visitor = class {
|
|
|
2889
2892
|
}
|
|
2890
2893
|
};
|
|
2891
2894
|
|
|
2892
|
-
// bazel-out/
|
|
2895
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
2893
2896
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
2894
2897
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
2895
2898
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, localCompilationExtraImportsTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3122,7 +3125,7 @@ function nodeArrayFromDecoratorsArray(decorators) {
|
|
|
3122
3125
|
return array;
|
|
3123
3126
|
}
|
|
3124
3127
|
|
|
3125
|
-
// bazel-out/
|
|
3128
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
3126
3129
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
3127
3130
|
const context = [];
|
|
3128
3131
|
for (const decl of data) {
|
|
@@ -3329,7 +3332,7 @@ function assertLocalCompilationUnresolvedConst(compilationMode, value, nodeToHig
|
|
|
3329
3332
|
}
|
|
3330
3333
|
}
|
|
3331
3334
|
|
|
3332
|
-
// bazel-out/
|
|
3335
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
3333
3336
|
import { ViewEncapsulation } from "@angular/compiler";
|
|
3334
3337
|
import ts13 from "typescript";
|
|
3335
3338
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
@@ -3380,7 +3383,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
3380
3383
|
return meta;
|
|
3381
3384
|
}
|
|
3382
3385
|
|
|
3383
|
-
// bazel-out/
|
|
3386
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
3384
3387
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
3385
3388
|
function compileNgFactoryDefField(metadata) {
|
|
3386
3389
|
const res = compileFactoryFunction(metadata);
|
|
@@ -3403,7 +3406,7 @@ function compileDeclareFactory(metadata) {
|
|
|
3403
3406
|
};
|
|
3404
3407
|
}
|
|
3405
3408
|
|
|
3406
|
-
// bazel-out/
|
|
3409
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
|
|
3407
3410
|
var InjectableClassRegistry = class {
|
|
3408
3411
|
constructor(host, isCore) {
|
|
3409
3412
|
this.host = host;
|
|
@@ -3429,7 +3432,7 @@ var InjectableClassRegistry = class {
|
|
|
3429
3432
|
}
|
|
3430
3433
|
};
|
|
3431
3434
|
|
|
3432
|
-
// bazel-out/
|
|
3435
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
3433
3436
|
import { ArrowFunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
3434
3437
|
import ts14 from "typescript";
|
|
3435
3438
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -3514,7 +3517,7 @@ function removeIdentifierReferences(node, names) {
|
|
|
3514
3517
|
return result.transformed[0];
|
|
3515
3518
|
}
|
|
3516
3519
|
|
|
3517
|
-
// bazel-out/
|
|
3520
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/debug_info.mjs
|
|
3518
3521
|
import { literal as literal2, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3519
3522
|
import * as path from "path";
|
|
3520
3523
|
function extractClassDebugInfo(clazz, reflection, rootDirs, forbidOrphanRendering) {
|
|
@@ -3541,13 +3544,13 @@ function computeRelativePathIfPossible(filePath, rootDirs) {
|
|
|
3541
3544
|
return null;
|
|
3542
3545
|
}
|
|
3543
3546
|
|
|
3544
|
-
// bazel-out/
|
|
3547
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
3545
3548
|
var NoopReferencesRegistry = class {
|
|
3546
3549
|
add(source, ...references) {
|
|
3547
3550
|
}
|
|
3548
3551
|
};
|
|
3549
3552
|
|
|
3550
|
-
// bazel-out/
|
|
3553
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
3551
3554
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
3552
3555
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
3553
3556
|
const schemas = [];
|
|
@@ -3577,7 +3580,7 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
3577
3580
|
return schemas;
|
|
3578
3581
|
}
|
|
3579
3582
|
|
|
3580
|
-
// bazel-out/
|
|
3583
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/input_transforms.mjs
|
|
3581
3584
|
import { outputAst } from "@angular/compiler";
|
|
3582
3585
|
function compileInputTransformFields(inputs) {
|
|
3583
3586
|
const extraFields = [];
|
|
@@ -3595,11 +3598,11 @@ function compileInputTransformFields(inputs) {
|
|
|
3595
3598
|
return extraFields;
|
|
3596
3599
|
}
|
|
3597
3600
|
|
|
3598
|
-
// bazel-out/
|
|
3599
|
-
import { compileClassDebugInfo, compileComponentClassMetadata,
|
|
3601
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
3602
|
+
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";
|
|
3600
3603
|
import ts26 from "typescript";
|
|
3601
3604
|
|
|
3602
|
-
// bazel-out/
|
|
3605
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
3603
3606
|
import ts15 from "typescript";
|
|
3604
3607
|
var SemanticSymbol = class {
|
|
3605
3608
|
constructor(decl) {
|
|
@@ -3615,7 +3618,7 @@ function getSymbolIdentifier(decl) {
|
|
|
3615
3618
|
return decl.name.text;
|
|
3616
3619
|
}
|
|
3617
3620
|
|
|
3618
|
-
// bazel-out/
|
|
3621
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
3619
3622
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
3620
3623
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
3621
3624
|
isPublicApiAffected() {
|
|
@@ -3758,10 +3761,10 @@ function getImportPath(expr) {
|
|
|
3758
3761
|
}
|
|
3759
3762
|
}
|
|
3760
3763
|
|
|
3761
|
-
// bazel-out/
|
|
3764
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
3762
3765
|
import ts16 from "typescript";
|
|
3763
3766
|
|
|
3764
|
-
// bazel-out/
|
|
3767
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
3765
3768
|
function isSymbolEqual(a, b) {
|
|
3766
3769
|
if (a.decl === b.decl) {
|
|
3767
3770
|
return true;
|
|
@@ -3811,7 +3814,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
3811
3814
|
return true;
|
|
3812
3815
|
}
|
|
3813
3816
|
|
|
3814
|
-
// bazel-out/
|
|
3817
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
3815
3818
|
function extractSemanticTypeParameters(node) {
|
|
3816
3819
|
if (!ts16.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
3817
3820
|
return null;
|
|
@@ -3831,14 +3834,14 @@ function isTypeParameterEqual(a, b) {
|
|
|
3831
3834
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
3832
3835
|
}
|
|
3833
3836
|
|
|
3834
|
-
// bazel-out/
|
|
3837
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
3835
3838
|
var ComponentScopeKind;
|
|
3836
3839
|
(function(ComponentScopeKind2) {
|
|
3837
3840
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
3838
3841
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
3839
3842
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
3840
3843
|
|
|
3841
|
-
// bazel-out/
|
|
3844
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
3842
3845
|
var CompoundComponentScopeReader = class {
|
|
3843
3846
|
constructor(readers) {
|
|
3844
3847
|
this.readers = readers;
|
|
@@ -3863,7 +3866,7 @@ var CompoundComponentScopeReader = class {
|
|
|
3863
3866
|
}
|
|
3864
3867
|
};
|
|
3865
3868
|
|
|
3866
|
-
// bazel-out/
|
|
3869
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
3867
3870
|
var MetadataDtsModuleScopeResolver = class {
|
|
3868
3871
|
constructor(dtsMetaReader, aliasingHost) {
|
|
3869
3872
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -3939,11 +3942,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
3939
3942
|
}
|
|
3940
3943
|
};
|
|
3941
3944
|
|
|
3942
|
-
// bazel-out/
|
|
3945
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
3943
3946
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
3944
3947
|
import ts17 from "typescript";
|
|
3945
3948
|
|
|
3946
|
-
// bazel-out/
|
|
3949
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
3947
3950
|
function getDiagnosticNode(ref, rawExpr) {
|
|
3948
3951
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
3949
3952
|
}
|
|
@@ -3969,7 +3972,7 @@ function makeUnknownComponentDeferredImportDiagnostic(ref, rawExpr) {
|
|
|
3969
3972
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_DEFERRED_IMPORT, getDiagnosticNode(ref, rawExpr), `Component deferred imports must be standalone components, directives or pipes.`);
|
|
3970
3973
|
}
|
|
3971
3974
|
|
|
3972
|
-
// bazel-out/
|
|
3975
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
3973
3976
|
var LocalModuleScopeRegistry = class {
|
|
3974
3977
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
3975
3978
|
this.localReader = localReader;
|
|
@@ -4308,7 +4311,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
4308
4311
|
]);
|
|
4309
4312
|
}
|
|
4310
4313
|
|
|
4311
|
-
// bazel-out/
|
|
4314
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
4312
4315
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
4313
4316
|
import ts18 from "typescript";
|
|
4314
4317
|
var TypeCheckScopeRegistry = class {
|
|
@@ -4386,32 +4389,39 @@ var TypeCheckScopeRegistry = class {
|
|
|
4386
4389
|
}
|
|
4387
4390
|
};
|
|
4388
4391
|
|
|
4389
|
-
// bazel-out/
|
|
4392
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4390
4393
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4391
4394
|
|
|
4392
|
-
// bazel-out/
|
|
4395
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4393
4396
|
import { createMayBeForwardRefExpression as createMayBeForwardRefExpression2, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
4394
4397
|
import ts22 from "typescript";
|
|
4395
4398
|
|
|
4396
|
-
// bazel-out/
|
|
4399
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_function_access.mjs
|
|
4400
|
+
function validateAccessOfInitializerApiMember({ api, call }, member) {
|
|
4401
|
+
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)}.`, [makeDiagnosticChain(`Update the class field to be either: ` + api.allowedAccessLevels.map((l) => classMemberAccessLevelToString(l)).join(", "))]));
|
|
4403
|
+
}
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/initializer_functions.mjs
|
|
4397
4407
|
import ts19 from "typescript";
|
|
4398
|
-
function
|
|
4399
|
-
if (
|
|
4408
|
+
function tryParseInitializerApi(functions, expression, reflector, importTracker) {
|
|
4409
|
+
if (!ts19.isCallExpression(expression)) {
|
|
4400
4410
|
return null;
|
|
4401
4411
|
}
|
|
4402
|
-
const
|
|
4403
|
-
const staticResult = parseTopLevelCall(call, functions, importTracker) || parseTopLevelRequiredCall(call, functions, importTracker) || parseTopLevelCallFromNamespace(call, functions, importTracker);
|
|
4412
|
+
const staticResult = parseTopLevelCall(expression, functions, importTracker) || parseTopLevelRequiredCall(expression, functions, importTracker) || parseTopLevelCallFromNamespace(expression, functions, importTracker);
|
|
4404
4413
|
if (staticResult === null) {
|
|
4405
4414
|
return null;
|
|
4406
4415
|
}
|
|
4407
|
-
const
|
|
4408
|
-
|
|
4416
|
+
const { api, apiReference, isRequired } = staticResult;
|
|
4417
|
+
const resolvedImport = reflector.getImportOfIdentifier(apiReference);
|
|
4418
|
+
if (resolvedImport === null || api.functionName !== resolvedImport.name || api.owningModule !== resolvedImport.from) {
|
|
4409
4419
|
return null;
|
|
4410
4420
|
}
|
|
4411
4421
|
return {
|
|
4412
|
-
api
|
|
4413
|
-
call,
|
|
4414
|
-
isRequired
|
|
4422
|
+
api,
|
|
4423
|
+
call: expression,
|
|
4424
|
+
isRequired
|
|
4415
4425
|
};
|
|
4416
4426
|
}
|
|
4417
4427
|
function parseTopLevelCall(call, functions, importTracker) {
|
|
@@ -4462,7 +4472,7 @@ function parseTopLevelCallFromNamespace(call, functions, importTracker) {
|
|
|
4462
4472
|
return { api: matchingApi, apiReference, isRequired };
|
|
4463
4473
|
}
|
|
4464
4474
|
|
|
4465
|
-
// bazel-out/
|
|
4475
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_output_parse_options.mjs
|
|
4466
4476
|
import ts20 from "typescript";
|
|
4467
4477
|
function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
4468
4478
|
if (!ts20.isObjectLiteralExpression(optionsNode)) {
|
|
@@ -4480,13 +4490,26 @@ function parseAndValidateInputAndOutputOptions(optionsNode) {
|
|
|
4480
4490
|
return { alias };
|
|
4481
4491
|
}
|
|
4482
4492
|
|
|
4483
|
-
// bazel-out/
|
|
4493
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/input_function.mjs
|
|
4494
|
+
var INPUT_INITIALIZER_FN = {
|
|
4495
|
+
functionName: "input",
|
|
4496
|
+
owningModule: "@angular/core",
|
|
4497
|
+
allowedAccessLevels: [
|
|
4498
|
+
ClassMemberAccessLevel.PublicWritable,
|
|
4499
|
+
ClassMemberAccessLevel.PublicReadonly,
|
|
4500
|
+
ClassMemberAccessLevel.Protected
|
|
4501
|
+
]
|
|
4502
|
+
};
|
|
4484
4503
|
function tryParseSignalInputMapping(member, reflector, importTracker) {
|
|
4485
4504
|
var _a;
|
|
4486
|
-
|
|
4505
|
+
if (member.value === null) {
|
|
4506
|
+
return null;
|
|
4507
|
+
}
|
|
4508
|
+
const signalInput = tryParseInitializerApi([INPUT_INITIALIZER_FN], member.value, reflector, importTracker);
|
|
4487
4509
|
if (signalInput === null) {
|
|
4488
4510
|
return null;
|
|
4489
4511
|
}
|
|
4512
|
+
validateAccessOfInitializerApiMember(signalInput, member);
|
|
4490
4513
|
const optionsNode = signalInput.isRequired ? signalInput.call.arguments[0] : signalInput.call.arguments[1];
|
|
4491
4514
|
const options = optionsNode !== void 0 ? parseAndValidateInputAndOutputOptions(optionsNode) : null;
|
|
4492
4515
|
const classPropertyName = member.name;
|
|
@@ -4499,13 +4522,26 @@ function tryParseSignalInputMapping(member, reflector, importTracker) {
|
|
|
4499
4522
|
};
|
|
4500
4523
|
}
|
|
4501
4524
|
|
|
4502
|
-
// bazel-out/
|
|
4525
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/model_function.mjs
|
|
4526
|
+
var MODEL_INITIALIZER_FN = {
|
|
4527
|
+
functionName: "model",
|
|
4528
|
+
owningModule: "@angular/core",
|
|
4529
|
+
allowedAccessLevels: [
|
|
4530
|
+
ClassMemberAccessLevel.PublicWritable,
|
|
4531
|
+
ClassMemberAccessLevel.PublicReadonly,
|
|
4532
|
+
ClassMemberAccessLevel.Protected
|
|
4533
|
+
]
|
|
4534
|
+
};
|
|
4503
4535
|
function tryParseSignalModelMapping(member, reflector, importTracker) {
|
|
4504
4536
|
var _a;
|
|
4505
|
-
|
|
4537
|
+
if (member.value === null) {
|
|
4538
|
+
return null;
|
|
4539
|
+
}
|
|
4540
|
+
const model = tryParseInitializerApi([MODEL_INITIALIZER_FN], member.value, reflector, importTracker);
|
|
4506
4541
|
if (model === null) {
|
|
4507
4542
|
return null;
|
|
4508
4543
|
}
|
|
4544
|
+
validateAccessOfInitializerApiMember(model, member);
|
|
4509
4545
|
const optionsNode = model.isRequired ? model.call.arguments[0] : model.call.arguments[1];
|
|
4510
4546
|
const options = optionsNode !== void 0 ? parseAndValidateInputAndOutputOptions(optionsNode) : null;
|
|
4511
4547
|
const classPropertyName = member.name;
|
|
@@ -4527,19 +4563,37 @@ function tryParseSignalModelMapping(member, reflector, importTracker) {
|
|
|
4527
4563
|
};
|
|
4528
4564
|
}
|
|
4529
4565
|
|
|
4530
|
-
// bazel-out/
|
|
4566
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/output_function.mjs
|
|
4567
|
+
var allowedAccessLevels = [
|
|
4568
|
+
ClassMemberAccessLevel.PublicWritable,
|
|
4569
|
+
ClassMemberAccessLevel.PublicReadonly,
|
|
4570
|
+
ClassMemberAccessLevel.Protected
|
|
4571
|
+
];
|
|
4572
|
+
var OUTPUT_INITIALIZER_FNS = [
|
|
4573
|
+
{
|
|
4574
|
+
functionName: "output",
|
|
4575
|
+
owningModule: "@angular/core",
|
|
4576
|
+
allowedAccessLevels
|
|
4577
|
+
},
|
|
4578
|
+
{
|
|
4579
|
+
functionName: "outputFromObservable",
|
|
4580
|
+
owningModule: "@angular/core/rxjs-interop",
|
|
4581
|
+
allowedAccessLevels
|
|
4582
|
+
}
|
|
4583
|
+
];
|
|
4531
4584
|
function tryParseInitializerBasedOutput(member, reflector, importTracker) {
|
|
4532
4585
|
var _a;
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4586
|
+
if (member.value === null) {
|
|
4587
|
+
return null;
|
|
4588
|
+
}
|
|
4589
|
+
const output = tryParseInitializerApi(OUTPUT_INITIALIZER_FNS, member.value, reflector, importTracker);
|
|
4537
4590
|
if (output === null) {
|
|
4538
4591
|
return null;
|
|
4539
4592
|
}
|
|
4540
4593
|
if (output.isRequired) {
|
|
4541
4594
|
throw new FatalDiagnosticError(ErrorCode.INITIALIZER_API_NO_REQUIRED_FUNCTION, output.call, `Output does not support ".required()".`);
|
|
4542
4595
|
}
|
|
4596
|
+
validateAccessOfInitializerApiMember(output, member);
|
|
4543
4597
|
const optionsNode = output.api.functionName === "output" ? output.call.arguments[0] : output.call.arguments[1];
|
|
4544
4598
|
const options = optionsNode !== void 0 ? parseAndValidateInputAndOutputOptions(optionsNode) : null;
|
|
4545
4599
|
const classPropertyName = member.name;
|
|
@@ -4553,17 +4607,30 @@ function tryParseInitializerBasedOutput(member, reflector, importTracker) {
|
|
|
4553
4607
|
};
|
|
4554
4608
|
}
|
|
4555
4609
|
|
|
4556
|
-
// bazel-out/
|
|
4610
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/query_functions.mjs
|
|
4557
4611
|
import { createMayBeForwardRefExpression, outputAst as o } from "@angular/compiler";
|
|
4558
4612
|
import ts21 from "typescript";
|
|
4559
4613
|
var queryFunctionNames = ["viewChild", "viewChildren", "contentChild", "contentChildren"];
|
|
4614
|
+
var QUERY_INITIALIZER_FNS = queryFunctionNames.map((fnName) => ({
|
|
4615
|
+
functionName: fnName,
|
|
4616
|
+
owningModule: "@angular/core",
|
|
4617
|
+
allowedAccessLevels: [
|
|
4618
|
+
ClassMemberAccessLevel.PublicWritable,
|
|
4619
|
+
ClassMemberAccessLevel.PublicReadonly,
|
|
4620
|
+
ClassMemberAccessLevel.Protected,
|
|
4621
|
+
ClassMemberAccessLevel.Private
|
|
4622
|
+
]
|
|
4623
|
+
}));
|
|
4560
4624
|
var defaultDescendantsValue = (type) => type !== "contentChildren";
|
|
4561
4625
|
function tryParseSignalQueryFromInitializer(member, reflector, importTracker) {
|
|
4562
|
-
|
|
4563
|
-
|
|
4626
|
+
if (member.value === null) {
|
|
4627
|
+
return null;
|
|
4628
|
+
}
|
|
4629
|
+
const query = tryParseInitializerApi(QUERY_INITIALIZER_FNS, member.value, reflector, importTracker);
|
|
4564
4630
|
if (query === null) {
|
|
4565
4631
|
return null;
|
|
4566
4632
|
}
|
|
4633
|
+
validateAccessOfInitializerApiMember(query, member);
|
|
4567
4634
|
const { functionName } = query.api;
|
|
4568
4635
|
const isSingleQuery = functionName === "viewChild" || functionName === "contentChild";
|
|
4569
4636
|
const predicateNode = query.call.arguments[0];
|
|
@@ -4620,7 +4687,7 @@ function parseDescendantsOption(value) {
|
|
|
4620
4687
|
throw new FatalDiagnosticError(ErrorCode.VALUE_HAS_WRONG_TYPE, value, `Expected "descendants" option to be a boolean literal.`);
|
|
4621
4688
|
}
|
|
4622
4689
|
|
|
4623
|
-
// bazel-out/
|
|
4690
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
4624
4691
|
var EMPTY_OBJECT = {};
|
|
4625
4692
|
var queryDecoratorNames = ["ViewChild", "ViewChildren", "ContentChild", "ContentChildren"];
|
|
4626
4693
|
var QUERY_TYPES = new Set(queryDecoratorNames);
|
|
@@ -5415,7 +5482,7 @@ function toR3InputMetadata(mapping) {
|
|
|
5415
5482
|
};
|
|
5416
5483
|
}
|
|
5417
5484
|
|
|
5418
|
-
// bazel-out/
|
|
5485
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
5419
5486
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
5420
5487
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
5421
5488
|
super(decl);
|
|
@@ -5495,7 +5562,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
5495
5562
|
return isSymbolEqual(current, previous);
|
|
5496
5563
|
}
|
|
5497
5564
|
|
|
5498
|
-
// bazel-out/
|
|
5565
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
5499
5566
|
var FIELD_DECORATORS = [
|
|
5500
5567
|
"Input",
|
|
5501
5568
|
"Output",
|
|
@@ -5688,11 +5755,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
5688
5755
|
}
|
|
5689
5756
|
};
|
|
5690
5757
|
|
|
5691
|
-
// bazel-out/
|
|
5758
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5692
5759
|
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";
|
|
5693
5760
|
import ts24 from "typescript";
|
|
5694
5761
|
|
|
5695
|
-
// bazel-out/
|
|
5762
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
5696
5763
|
import ts23 from "typescript";
|
|
5697
5764
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
5698
5765
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -5764,7 +5831,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
5764
5831
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
5765
5832
|
}
|
|
5766
5833
|
|
|
5767
|
-
// bazel-out/
|
|
5834
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
5768
5835
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
5769
5836
|
constructor(decl, hasProviders) {
|
|
5770
5837
|
super(decl);
|
|
@@ -6375,7 +6442,7 @@ function isSyntheticReference(ref) {
|
|
|
6375
6442
|
return ref.synthetic;
|
|
6376
6443
|
}
|
|
6377
6444
|
|
|
6378
|
-
// bazel-out/
|
|
6445
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
6379
6446
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
6380
6447
|
const name = ref.debugName || "(unknown)";
|
|
6381
6448
|
const path2 = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -6398,7 +6465,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
6398
6465
|
return null;
|
|
6399
6466
|
}
|
|
6400
6467
|
|
|
6401
|
-
// bazel-out/
|
|
6468
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
6402
6469
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
6403
6470
|
import ts25 from "typescript";
|
|
6404
6471
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -6749,7 +6816,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
6749
6816
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
6750
6817
|
}
|
|
6751
6818
|
|
|
6752
|
-
// bazel-out/
|
|
6819
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
6753
6820
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
6754
6821
|
constructor() {
|
|
6755
6822
|
super(...arguments);
|
|
@@ -6784,7 +6851,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
6784
6851
|
}
|
|
6785
6852
|
};
|
|
6786
6853
|
|
|
6787
|
-
// bazel-out/
|
|
6854
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
6788
6855
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
6789
6856
|
if (value instanceof Map) {
|
|
6790
6857
|
const name = value.get("name");
|
|
@@ -6861,7 +6928,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
6861
6928
|
return false;
|
|
6862
6929
|
}
|
|
6863
6930
|
|
|
6864
|
-
// bazel-out/
|
|
6931
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
6865
6932
|
var EMPTY_ARRAY2 = [];
|
|
6866
6933
|
var isUsedDirective = (decl) => decl.kind === R3TemplateDependencyKind.Directive;
|
|
6867
6934
|
var isUsedPipe = (decl) => decl.kind === R3TemplateDependencyKind.Pipe;
|
|
@@ -7573,17 +7640,17 @@ var ComponentDecoratorHandler = class {
|
|
|
7573
7640
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
7574
7641
|
return [];
|
|
7575
7642
|
}
|
|
7576
|
-
const
|
|
7643
|
+
const perComponentDeferredDeps = this.resolveAllDeferredDependencies(resolution);
|
|
7577
7644
|
const meta = {
|
|
7578
7645
|
...analysis.meta,
|
|
7579
7646
|
...resolution,
|
|
7580
7647
|
defer: this.compileDeferBlocks(resolution)
|
|
7581
7648
|
};
|
|
7582
7649
|
const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
|
|
7583
|
-
removeDeferrableTypesFromComponentDecorator(analysis,
|
|
7650
|
+
removeDeferrableTypesFromComponentDecorator(analysis, perComponentDeferredDeps);
|
|
7584
7651
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
|
|
7585
7652
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
7586
|
-
const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata,
|
|
7653
|
+
const classMetadata = analysis.classMetadata !== null ? compileComponentClassMetadata(analysis.classMetadata, perComponentDeferredDeps).toStmt() : null;
|
|
7587
7654
|
const debugInfo = analysis.classDebugInfo !== null ? compileClassDebugInfo(analysis.classDebugInfo).toStmt() : null;
|
|
7588
7655
|
const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
|
|
7589
7656
|
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports, debugInfo);
|
|
@@ -7598,6 +7665,7 @@ var ComponentDecoratorHandler = class {
|
|
|
7598
7665
|
isInline: analysis.template.declaration.isInline,
|
|
7599
7666
|
inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new o2.WrappedNodeExpr(analysis.template.sourceMapping.node) : null
|
|
7600
7667
|
};
|
|
7668
|
+
const perComponentDeferredDeps = this.resolveAllDeferredDependencies(resolution);
|
|
7601
7669
|
const meta = {
|
|
7602
7670
|
...analysis.meta,
|
|
7603
7671
|
...resolution,
|
|
@@ -7606,8 +7674,9 @@ var ComponentDecoratorHandler = class {
|
|
|
7606
7674
|
const fac = compileDeclareFactory(toFactoryMetadata(meta, FactoryTarget3.Component));
|
|
7607
7675
|
const inputTransformFields = compileInputTransformFields(analysis.inputs);
|
|
7608
7676
|
const def = compileDeclareComponentFromMetadata(meta, analysis.template, templateInfo);
|
|
7609
|
-
const classMetadata = analysis.classMetadata !== null ?
|
|
7610
|
-
|
|
7677
|
+
const classMetadata = analysis.classMetadata !== null ? compileComponentDeclareClassMetadata(analysis.classMetadata, perComponentDeferredDeps).toStmt() : null;
|
|
7678
|
+
const deferrableImports = this.deferredSymbolTracker.getDeferrableImportDecls();
|
|
7679
|
+
return compileResults(fac, def, classMetadata, "\u0275cmp", inputTransformFields, deferrableImports);
|
|
7611
7680
|
}
|
|
7612
7681
|
compileLocal(node, analysis, resolution, pool) {
|
|
7613
7682
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
@@ -7640,7 +7709,7 @@ var ComponentDecoratorHandler = class {
|
|
|
7640
7709
|
}
|
|
7641
7710
|
return deferBlocks;
|
|
7642
7711
|
}
|
|
7643
|
-
|
|
7712
|
+
resolveAllDeferredDependencies(resolution) {
|
|
7644
7713
|
var _a;
|
|
7645
7714
|
const deferrableTypes = [];
|
|
7646
7715
|
for (const [_, deps] of resolution.deferPerBlockDependencies) {
|
|
@@ -7787,7 +7856,7 @@ var ComponentDecoratorHandler = class {
|
|
|
7787
7856
|
throw new Error("Internal error: deferPerComponentDependencies must be present in PerComponent mode");
|
|
7788
7857
|
}
|
|
7789
7858
|
return {
|
|
7790
|
-
mode
|
|
7859
|
+
mode,
|
|
7791
7860
|
dependenciesFn: perComponentDeps.length === 0 ? null : compileDeferResolverFunction({ mode, dependencies: perComponentDeps })
|
|
7792
7861
|
};
|
|
7793
7862
|
}
|
|
@@ -7867,8 +7936,8 @@ function isDefaultImport(node) {
|
|
|
7867
7936
|
return node.importClause !== void 0 && node.importClause.namedBindings === void 0;
|
|
7868
7937
|
}
|
|
7869
7938
|
|
|
7870
|
-
// bazel-out/
|
|
7871
|
-
import { compileClassMetadata as compileClassMetadata3, compileDeclareClassMetadata as
|
|
7939
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
7940
|
+
import { compileClassMetadata as compileClassMetadata3, compileDeclareClassMetadata as compileDeclareClassMetadata3, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression3, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
7872
7941
|
import ts27 from "typescript";
|
|
7873
7942
|
var InjectableDecoratorHandler = class {
|
|
7874
7943
|
constructor(reflector, evaluator, isCore, strictCtorDeps, injectableRegistry, perf, includeClassMetadata, compilationMode, errorOnDuplicateProv = true) {
|
|
@@ -7941,7 +8010,7 @@ var InjectableDecoratorHandler = class {
|
|
|
7941
8010
|
return this.compile(compileNgFactoryDefField, (meta) => compileInjectable(meta, false), compileClassMetadata3, node, analysis);
|
|
7942
8011
|
}
|
|
7943
8012
|
compilePartial(node, analysis) {
|
|
7944
|
-
return this.compile(compileDeclareFactory, compileDeclareInjectableFromMetadata,
|
|
8013
|
+
return this.compile(compileDeclareFactory, compileDeclareInjectableFromMetadata, compileDeclareClassMetadata3, node, analysis);
|
|
7945
8014
|
}
|
|
7946
8015
|
compileLocal(node, analysis) {
|
|
7947
8016
|
return this.compile(compileNgFactoryDefField, (meta) => compileInjectable(meta, false), compileClassMetadata3, node, analysis);
|
|
@@ -8099,8 +8168,8 @@ function getDep(dep, reflector) {
|
|
|
8099
8168
|
return meta;
|
|
8100
8169
|
}
|
|
8101
8170
|
|
|
8102
|
-
// bazel-out/
|
|
8103
|
-
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as
|
|
8171
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
8172
|
+
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
|
|
8104
8173
|
import ts28 from "typescript";
|
|
8105
8174
|
var PipeSymbol = class extends SemanticSymbol {
|
|
8106
8175
|
constructor(decl, name) {
|
|
@@ -8245,7 +8314,7 @@ var PipeDecoratorHandler = class {
|
|
|
8245
8314
|
compilePartial(node, analysis) {
|
|
8246
8315
|
const fac = compileDeclareFactory(toFactoryMetadata(analysis.meta, FactoryTarget5.Pipe));
|
|
8247
8316
|
const def = compileDeclarePipeFromMetadata(analysis.meta);
|
|
8248
|
-
const classMetadata = analysis.classMetadata !== null ?
|
|
8317
|
+
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata4(analysis.classMetadata).toStmt() : null;
|
|
8249
8318
|
return compileResults(fac, def, classMetadata, "\u0275pipe", null, null);
|
|
8250
8319
|
}
|
|
8251
8320
|
compileLocal(node, analysis) {
|
|
@@ -8286,9 +8355,14 @@ export {
|
|
|
8286
8355
|
MetadataDtsModuleScopeResolver,
|
|
8287
8356
|
LocalModuleScopeRegistry,
|
|
8288
8357
|
TypeCheckScopeRegistry,
|
|
8358
|
+
tryParseInitializerApi,
|
|
8359
|
+
INPUT_INITIALIZER_FN,
|
|
8289
8360
|
tryParseSignalInputMapping,
|
|
8361
|
+
MODEL_INITIALIZER_FN,
|
|
8290
8362
|
tryParseSignalModelMapping,
|
|
8363
|
+
OUTPUT_INITIALIZER_FNS,
|
|
8291
8364
|
tryParseInitializerBasedOutput,
|
|
8365
|
+
QUERY_INITIALIZER_FNS,
|
|
8292
8366
|
tryParseSignalQueryFromInitializer,
|
|
8293
8367
|
queryDecoratorNames,
|
|
8294
8368
|
DirectiveDecoratorHandler,
|
|
@@ -8311,4 +8385,4 @@ export {
|
|
|
8311
8385
|
* Use of this source code is governed by an MIT-style license that can be
|
|
8312
8386
|
* found in the LICENSE file at https://angular.io/license
|
|
8313
8387
|
*/
|
|
8314
|
-
//# sourceMappingURL=chunk-
|
|
8388
|
+
//# sourceMappingURL=chunk-UYDKSYFP.js.map
|