@angular/compiler-cli 14.1.0-rc.0 → 14.1.2
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-E7NQQTT7.js → chunk-4SINIALN.js} +3 -3
- package/bundles/{chunk-E7NQQTT7.js.map → chunk-4SINIALN.js.map} +0 -0
- package/bundles/{chunk-24DFPZCS.js → chunk-AHYRDQYO.js} +26 -28
- package/bundles/chunk-AHYRDQYO.js.map +6 -0
- package/bundles/{chunk-NFCN3OZI.js → chunk-AMYIDAXN.js} +6 -6
- package/bundles/{chunk-NFCN3OZI.js.map → chunk-AMYIDAXN.js.map} +0 -0
- package/bundles/{chunk-ATB3HJXN.js → chunk-GQHLKW4T.js} +31 -31
- package/bundles/{chunk-ATB3HJXN.js.map → chunk-GQHLKW4T.js.map} +0 -0
- package/bundles/{chunk-WAXJ3P3Y.js → chunk-HAEVBCLU.js} +104 -98
- package/bundles/{chunk-WAXJ3P3Y.js.map → chunk-HAEVBCLU.js.map} +1 -1
- package/bundles/{chunk-LPUQQ2CH.js → chunk-I6FYVWLO.js} +71 -74
- package/bundles/chunk-I6FYVWLO.js.map +6 -0
- package/bundles/{chunk-4JF5LVDW.js → chunk-IJA2BQQH.js} +6 -6
- package/bundles/{chunk-4JF5LVDW.js.map → chunk-IJA2BQQH.js.map} +0 -0
- package/bundles/{chunk-F2UCYAES.js → chunk-IN4DCRQU.js} +70 -70
- package/bundles/{chunk-F2UCYAES.js.map → chunk-IN4DCRQU.js.map} +0 -0
- package/bundles/{chunk-ACXPVP2W.js → chunk-IOI2BV5O.js} +5 -5
- package/bundles/{chunk-ACXPVP2W.js.map → chunk-IOI2BV5O.js.map} +0 -0
- package/bundles/{chunk-FM6NPN5V.js → chunk-N2MCMY3J.js} +4 -4
- package/bundles/{chunk-FM6NPN5V.js.map → chunk-N2MCMY3J.js.map} +0 -0
- package/bundles/{chunk-TOKOIIBI.js → chunk-S4JINNFN.js} +7 -7
- package/bundles/{chunk-TOKOIIBI.js.map → chunk-S4JINNFN.js.map} +0 -0
- package/bundles/{chunk-R3C7RFJ4.js → chunk-SJL5HBUW.js} +2 -2
- package/bundles/{chunk-R3C7RFJ4.js.map → chunk-SJL5HBUW.js.map} +0 -0
- package/bundles/{chunk-GDAOEMFN.js → chunk-SQ4LQVUY.js} +40 -40
- package/bundles/{chunk-GDAOEMFN.js.map → chunk-SQ4LQVUY.js.map} +0 -0
- package/bundles/{chunk-J6ZMRNVQ.js → chunk-Z2IQF7UG.js} +5 -5
- package/bundles/{chunk-J6ZMRNVQ.js.map → chunk-Z2IQF7UG.js.map} +0 -0
- package/bundles/{chunk-CYVTLM4Z.js → chunk-Z57D3OKU.js} +7 -7
- package/bundles/{chunk-CYVTLM4Z.js.map → chunk-Z57D3OKU.js.map} +0 -0
- package/bundles/index.js +12 -12
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/index.js +4 -4
- package/bundles/ngcc/index.js +12 -12
- package/bundles/ngcc/main-ngcc.js +13 -13
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +13 -13
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +5 -5
- package/bundles/private/tooling.js +2 -2
- package/bundles/src/bin/ng_xi18n.js +10 -10
- package/bundles/src/bin/ngc.js +8 -8
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +1 -3
- package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +10 -0
- package/bundles/chunk-24DFPZCS.js.map +0 -6
- package/bundles/chunk-LPUQQ2CH.js.map +0 -6
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
reflectObjectLiteral,
|
|
14
14
|
reflectTypeEntityToDeclaration,
|
|
15
15
|
typeNodeToValueExpr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AMYIDAXN.js";
|
|
17
17
|
import {
|
|
18
18
|
ErrorCode,
|
|
19
19
|
FatalDiagnosticError,
|
|
@@ -33,18 +33,18 @@ import {
|
|
|
33
33
|
translateExpression,
|
|
34
34
|
translateStatement,
|
|
35
35
|
translateType
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-AHYRDQYO.js";
|
|
37
37
|
import {
|
|
38
38
|
absoluteFrom,
|
|
39
39
|
absoluteFromSourceFile,
|
|
40
40
|
relative
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-S4JINNFN.js";
|
|
42
42
|
import {
|
|
43
43
|
PerfEvent,
|
|
44
44
|
PerfPhase
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-IOI2BV5O.js";
|
|
46
46
|
|
|
47
|
-
// bazel-out/
|
|
47
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
48
48
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
49
49
|
import ts from "typescript";
|
|
50
50
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -280,7 +280,7 @@ function getOriginNodeForDiagnostics(expr, container) {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
-
// bazel-out/
|
|
283
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
284
284
|
var DynamicValue = class {
|
|
285
285
|
constructor(node, reason, code) {
|
|
286
286
|
this.node = node;
|
|
@@ -370,10 +370,10 @@ var DynamicValue = class {
|
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
|
|
373
|
-
// bazel-out/
|
|
373
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
374
374
|
import ts2 from "typescript";
|
|
375
375
|
|
|
376
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
377
377
|
var ResolvedModule = class {
|
|
378
378
|
constructor(exports, evaluate) {
|
|
379
379
|
this.exports = exports;
|
|
@@ -403,7 +403,7 @@ var EnumValue = class {
|
|
|
403
403
|
var KnownFn = class {
|
|
404
404
|
};
|
|
405
405
|
|
|
406
|
-
// bazel-out/
|
|
406
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
407
407
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
408
408
|
constructor(lhs) {
|
|
409
409
|
super();
|
|
@@ -474,7 +474,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
474
474
|
}
|
|
475
475
|
};
|
|
476
476
|
|
|
477
|
-
// bazel-out/
|
|
477
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
478
478
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
479
479
|
};
|
|
480
480
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -527,7 +527,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
|
|
530
|
-
// bazel-out/
|
|
530
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
531
531
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
532
532
|
var assignTsHelperFn = new AssignHelperFn();
|
|
533
533
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -551,14 +551,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
551
551
|
}
|
|
552
552
|
}
|
|
553
553
|
|
|
554
|
-
// bazel-out/
|
|
554
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
555
555
|
var SyntheticValue = class {
|
|
556
556
|
constructor(value) {
|
|
557
557
|
this.value = value;
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
560
|
|
|
561
|
-
// bazel-out/
|
|
561
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
562
562
|
function literalBinaryOp(op) {
|
|
563
563
|
return { op, literal: true };
|
|
564
564
|
}
|
|
@@ -1143,7 +1143,7 @@ function owningModule(context, override = null) {
|
|
|
1143
1143
|
}
|
|
1144
1144
|
}
|
|
1145
1145
|
|
|
1146
|
-
// bazel-out/
|
|
1146
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1147
1147
|
var PartialEvaluator = class {
|
|
1148
1148
|
constructor(host, checker, dependencyTracker) {
|
|
1149
1149
|
this.host = host;
|
|
@@ -1163,7 +1163,7 @@ var PartialEvaluator = class {
|
|
|
1163
1163
|
}
|
|
1164
1164
|
};
|
|
1165
1165
|
|
|
1166
|
-
// bazel-out/
|
|
1166
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1167
1167
|
import ts3 from "typescript";
|
|
1168
1168
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1169
1169
|
var _a, _b;
|
|
@@ -1293,7 +1293,7 @@ function getContainerNode(node) {
|
|
|
1293
1293
|
return node.getSourceFile();
|
|
1294
1294
|
}
|
|
1295
1295
|
|
|
1296
|
-
// bazel-out/
|
|
1296
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1297
1297
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1298
1298
|
import ts4 from "typescript";
|
|
1299
1299
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1437,7 +1437,7 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1437
1437
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1438
1438
|
}
|
|
1439
1439
|
|
|
1440
|
-
// bazel-out/
|
|
1440
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1441
1441
|
import ts5 from "typescript";
|
|
1442
1442
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
1443
1443
|
const context = [];
|
|
@@ -1545,7 +1545,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, reader) {
|
|
|
1545
1545
|
return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${dirOrComp.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @Directive decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
|
|
1546
1546
|
}
|
|
1547
1547
|
|
|
1548
|
-
// bazel-out/
|
|
1548
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
1549
1549
|
import ts6 from "typescript";
|
|
1550
1550
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
1551
1551
|
let resolved = null;
|
|
@@ -1578,7 +1578,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
1578
1578
|
return meta;
|
|
1579
1579
|
}
|
|
1580
1580
|
|
|
1581
|
-
// bazel-out/
|
|
1581
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
1582
1582
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
1583
1583
|
function compileNgFactoryDefField(metadata) {
|
|
1584
1584
|
const res = compileFactoryFunction(metadata);
|
|
@@ -1589,7 +1589,7 @@ function compileDeclareFactory(metadata) {
|
|
|
1589
1589
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
1590
1590
|
}
|
|
1591
1591
|
|
|
1592
|
-
// bazel-out/
|
|
1592
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
1593
1593
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
1594
1594
|
import ts7 from "typescript";
|
|
1595
1595
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -1677,13 +1677,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
1677
1677
|
return result.transformed[0];
|
|
1678
1678
|
}
|
|
1679
1679
|
|
|
1680
|
-
// bazel-out/
|
|
1680
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
1681
1681
|
var NoopReferencesRegistry = class {
|
|
1682
1682
|
add(source, ...references) {
|
|
1683
1683
|
}
|
|
1684
1684
|
};
|
|
1685
1685
|
|
|
1686
|
-
// bazel-out/
|
|
1686
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
1687
1687
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
1688
1688
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
1689
1689
|
const schemas = [];
|
|
@@ -1713,11 +1713,11 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
1713
1713
|
return schemas;
|
|
1714
1714
|
}
|
|
1715
1715
|
|
|
1716
|
-
// bazel-out/
|
|
1716
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
1717
1717
|
import { compileClassMetadata as compileClassMetadata3, 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, WrappedNodeExpr as WrappedNodeExpr7 } from "@angular/compiler";
|
|
1718
1718
|
import ts24 from "typescript";
|
|
1719
1719
|
|
|
1720
|
-
// bazel-out/
|
|
1720
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
1721
1721
|
import ts8 from "typescript";
|
|
1722
1722
|
var SemanticSymbol = class {
|
|
1723
1723
|
constructor(decl) {
|
|
@@ -1733,7 +1733,7 @@ function getSymbolIdentifier(decl) {
|
|
|
1733
1733
|
return decl.name.text;
|
|
1734
1734
|
}
|
|
1735
1735
|
|
|
1736
|
-
// bazel-out/
|
|
1736
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
1737
1737
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1738
1738
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
1739
1739
|
isPublicApiAffected() {
|
|
@@ -1876,10 +1876,10 @@ function getImportPath(expr) {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
}
|
|
1878
1878
|
|
|
1879
|
-
// bazel-out/
|
|
1879
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1880
1880
|
import ts9 from "typescript";
|
|
1881
1881
|
|
|
1882
|
-
// bazel-out/
|
|
1882
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
1883
1883
|
function isSymbolEqual(a, b) {
|
|
1884
1884
|
if (a.decl === b.decl) {
|
|
1885
1885
|
return true;
|
|
@@ -1929,7 +1929,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
1929
1929
|
return true;
|
|
1930
1930
|
}
|
|
1931
1931
|
|
|
1932
|
-
// bazel-out/
|
|
1932
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1933
1933
|
function extractSemanticTypeParameters(node) {
|
|
1934
1934
|
if (!ts9.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
1935
1935
|
return null;
|
|
@@ -1949,7 +1949,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
1949
1949
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
1950
1950
|
}
|
|
1951
1951
|
|
|
1952
|
-
// bazel-out/
|
|
1952
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1953
1953
|
var MetaKind;
|
|
1954
1954
|
(function(MetaKind2) {
|
|
1955
1955
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1957,10 +1957,10 @@ var MetaKind;
|
|
|
1957
1957
|
MetaKind2[MetaKind2["NgModule"] = 2] = "NgModule";
|
|
1958
1958
|
})(MetaKind || (MetaKind = {}));
|
|
1959
1959
|
|
|
1960
|
-
// bazel-out/
|
|
1960
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1961
1961
|
import ts11 from "typescript";
|
|
1962
1962
|
|
|
1963
|
-
// bazel-out/
|
|
1963
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1964
1964
|
var ClassPropertyMapping = class {
|
|
1965
1965
|
constructor(forwardMap) {
|
|
1966
1966
|
this.forwardMap = forwardMap;
|
|
@@ -2036,7 +2036,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
2036
2036
|
return reverseMap;
|
|
2037
2037
|
}
|
|
2038
2038
|
|
|
2039
|
-
// bazel-out/
|
|
2039
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
2040
2040
|
import ts10 from "typescript";
|
|
2041
2041
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
2042
2042
|
if (!ts10.isTupleTypeNode(def)) {
|
|
@@ -2216,7 +2216,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
2216
2216
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
2217
2217
|
}
|
|
2218
2218
|
|
|
2219
|
-
// bazel-out/
|
|
2219
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
2220
2220
|
var DtsMetadataReader = class {
|
|
2221
2221
|
constructor(checker, reflector) {
|
|
2222
2222
|
this.checker = checker;
|
|
@@ -2328,7 +2328,7 @@ function readBaseClass2(clazz, checker, reflector) {
|
|
|
2328
2328
|
return null;
|
|
2329
2329
|
}
|
|
2330
2330
|
|
|
2331
|
-
// bazel-out/
|
|
2331
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
2332
2332
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
2333
2333
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
2334
2334
|
if (topMeta === null) {
|
|
@@ -2386,7 +2386,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2386
2386
|
};
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
|
-
// bazel-out/
|
|
2389
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
|
|
2390
2390
|
var LocalMetadataRegistry = class {
|
|
2391
2391
|
constructor() {
|
|
2392
2392
|
this.directives = /* @__PURE__ */ new Map();
|
|
@@ -2445,7 +2445,7 @@ var InjectableClassRegistry = class {
|
|
|
2445
2445
|
}
|
|
2446
2446
|
};
|
|
2447
2447
|
|
|
2448
|
-
// bazel-out/
|
|
2448
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
|
|
2449
2449
|
var ResourceRegistry = class {
|
|
2450
2450
|
constructor() {
|
|
2451
2451
|
this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
|
|
@@ -2510,14 +2510,14 @@ var ResourceRegistry = class {
|
|
|
2510
2510
|
}
|
|
2511
2511
|
};
|
|
2512
2512
|
|
|
2513
|
-
// bazel-out/
|
|
2513
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
|
|
2514
2514
|
var ComponentScopeKind;
|
|
2515
2515
|
(function(ComponentScopeKind2) {
|
|
2516
2516
|
ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
|
|
2517
2517
|
ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
|
|
2518
2518
|
})(ComponentScopeKind || (ComponentScopeKind = {}));
|
|
2519
2519
|
|
|
2520
|
-
// bazel-out/
|
|
2520
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
|
|
2521
2521
|
var CompoundComponentScopeReader = class {
|
|
2522
2522
|
constructor(readers) {
|
|
2523
2523
|
this.readers = readers;
|
|
@@ -2542,7 +2542,7 @@ var CompoundComponentScopeReader = class {
|
|
|
2542
2542
|
}
|
|
2543
2543
|
};
|
|
2544
2544
|
|
|
2545
|
-
// bazel-out/
|
|
2545
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
|
|
2546
2546
|
var MetadataDtsModuleScopeResolver = class {
|
|
2547
2547
|
constructor(dtsMetaReader, aliasingHost) {
|
|
2548
2548
|
this.dtsMetaReader = dtsMetaReader;
|
|
@@ -2618,11 +2618,11 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2618
2618
|
}
|
|
2619
2619
|
};
|
|
2620
2620
|
|
|
2621
|
-
// bazel-out/
|
|
2621
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2622
2622
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2623
2623
|
import ts12 from "typescript";
|
|
2624
2624
|
|
|
2625
|
-
// bazel-out/
|
|
2625
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2626
2626
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2627
2627
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2628
2628
|
}
|
|
@@ -2632,11 +2632,8 @@ function makeNotStandaloneDiagnostic(scopeReader, ref, rawExpr, kind) {
|
|
|
2632
2632
|
let relatedInformation = void 0;
|
|
2633
2633
|
if (scope !== null && scope.kind === ComponentScopeKind.NgModule) {
|
|
2634
2634
|
const isExported = scope.exported.dependencies.some((dep) => dep.ref.node === ref.node);
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
} else {
|
|
2638
|
-
relatedInformation = [makeRelatedInformation(scope.ngModule.name, `It's declared in the NgModule '${scope.ngModule.name.text}', but is not exported. Consider exporting it.`)];
|
|
2639
|
-
}
|
|
2635
|
+
const relatedInfoMessageText = isExported ? `It can be imported using its '${scope.ngModule.name.text}' NgModule instead.` : `It's declared in the '${scope.ngModule.name.text}' NgModule, but is not exported. Consider exporting it and importing the NgModule instead.`;
|
|
2636
|
+
relatedInformation = [makeRelatedInformation(scope.ngModule.name, relatedInfoMessageText)];
|
|
2640
2637
|
} else {
|
|
2641
2638
|
}
|
|
2642
2639
|
if (relatedInformation === void 0) {
|
|
@@ -2648,7 +2645,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2648
2645
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2649
2646
|
}
|
|
2650
2647
|
|
|
2651
|
-
// bazel-out/
|
|
2648
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2652
2649
|
var LocalModuleScopeRegistry = class {
|
|
2653
2650
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2654
2651
|
this.localReader = localReader;
|
|
@@ -2987,7 +2984,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
2987
2984
|
]);
|
|
2988
2985
|
}
|
|
2989
2986
|
|
|
2990
|
-
// bazel-out/
|
|
2987
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
2991
2988
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
2992
2989
|
import ts13 from "typescript";
|
|
2993
2990
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3049,7 +3046,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3049
3046
|
}
|
|
3050
3047
|
};
|
|
3051
3048
|
|
|
3052
|
-
// bazel-out/
|
|
3049
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3053
3050
|
var CompilationMode;
|
|
3054
3051
|
(function(CompilationMode2) {
|
|
3055
3052
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3067,7 +3064,7 @@ var HandlerFlags;
|
|
|
3067
3064
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
3068
3065
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
3069
3066
|
|
|
3070
|
-
// bazel-out/
|
|
3067
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3071
3068
|
import ts14 from "typescript";
|
|
3072
3069
|
function aliasTransformFactory(exportStatements) {
|
|
3073
3070
|
return (context) => {
|
|
@@ -3085,10 +3082,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3085
3082
|
};
|
|
3086
3083
|
}
|
|
3087
3084
|
|
|
3088
|
-
// bazel-out/
|
|
3085
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3089
3086
|
import ts15 from "typescript";
|
|
3090
3087
|
|
|
3091
|
-
// bazel-out/
|
|
3088
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3092
3089
|
var TraitState;
|
|
3093
3090
|
(function(TraitState2) {
|
|
3094
3091
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3143,7 +3140,7 @@ var TraitImpl = class {
|
|
|
3143
3140
|
}
|
|
3144
3141
|
};
|
|
3145
3142
|
|
|
3146
|
-
// bazel-out/
|
|
3143
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3147
3144
|
var TraitCompiler = class {
|
|
3148
3145
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3149
3146
|
this.handlers = handlers;
|
|
@@ -3587,10 +3584,10 @@ function containsErrors(diagnostics) {
|
|
|
3587
3584
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3588
3585
|
}
|
|
3589
3586
|
|
|
3590
|
-
// bazel-out/
|
|
3587
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3591
3588
|
import ts17 from "typescript";
|
|
3592
3589
|
|
|
3593
|
-
// bazel-out/
|
|
3590
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3594
3591
|
import ts16 from "typescript";
|
|
3595
3592
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3596
3593
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3618,7 +3615,7 @@ function isImportStatement(stmt) {
|
|
|
3618
3615
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3619
3616
|
}
|
|
3620
3617
|
|
|
3621
|
-
// bazel-out/
|
|
3618
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3622
3619
|
var DtsTransformRegistry = class {
|
|
3623
3620
|
constructor() {
|
|
3624
3621
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3743,11 +3740,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3743
3740
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3744
3741
|
}
|
|
3745
3742
|
|
|
3746
|
-
// bazel-out/
|
|
3743
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3747
3744
|
import { ConstantPool } from "@angular/compiler";
|
|
3748
3745
|
import ts19 from "typescript";
|
|
3749
3746
|
|
|
3750
|
-
// bazel-out/
|
|
3747
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3751
3748
|
import ts18 from "typescript";
|
|
3752
3749
|
function visit(node, visitor, context) {
|
|
3753
3750
|
return visitor._visit(node, context);
|
|
@@ -3809,7 +3806,7 @@ function hasStatements(node) {
|
|
|
3809
3806
|
return block.statements !== void 0 && Array.isArray(block.statements);
|
|
3810
3807
|
}
|
|
3811
3808
|
|
|
3812
|
-
// bazel-out/
|
|
3809
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3813
3810
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
3814
3811
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
3815
3812
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3990,10 +3987,10 @@ function createRecorderFn(defaultImportTracker) {
|
|
|
3990
3987
|
};
|
|
3991
3988
|
}
|
|
3992
3989
|
|
|
3993
|
-
// bazel-out/
|
|
3990
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
3994
3991
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
3995
3992
|
|
|
3996
|
-
// bazel-out/
|
|
3993
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
3997
3994
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3998
3995
|
import ts20 from "typescript";
|
|
3999
3996
|
var EMPTY_OBJECT = {};
|
|
@@ -4357,7 +4354,7 @@ function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
|
4357
4354
|
return bindings;
|
|
4358
4355
|
}
|
|
4359
4356
|
|
|
4360
|
-
// bazel-out/
|
|
4357
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4361
4358
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4362
4359
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4363
4360
|
super(decl);
|
|
@@ -4434,7 +4431,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4434
4431
|
return isSymbolEqual(current, previous);
|
|
4435
4432
|
}
|
|
4436
4433
|
|
|
4437
|
-
// bazel-out/
|
|
4434
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4438
4435
|
var FIELD_DECORATORS = [
|
|
4439
4436
|
"Input",
|
|
4440
4437
|
"Output",
|
|
@@ -4578,11 +4575,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
4578
4575
|
}
|
|
4579
4576
|
};
|
|
4580
4577
|
|
|
4581
|
-
// bazel-out/
|
|
4578
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4582
4579
|
import { compileClassMetadata as compileClassMetadata2, compileDeclareClassMetadata as compileDeclareClassMetadata2, compileDeclareInjectorFromMetadata, compileDeclareNgModuleFromMetadata, compileInjector, compileNgModule, ExternalExpr as ExternalExpr5, FactoryTarget as FactoryTarget2, FunctionExpr as FunctionExpr2, InvokeFunctionExpr, LiteralArrayExpr as LiteralArrayExpr2, R3Identifiers, R3SelectorScopeMode, ReturnStatement as ReturnStatement2, WrappedNodeExpr as WrappedNodeExpr6 } from "@angular/compiler";
|
|
4583
4580
|
import ts22 from "typescript";
|
|
4584
4581
|
|
|
4585
|
-
// bazel-out/
|
|
4582
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
4586
4583
|
import ts21 from "typescript";
|
|
4587
4584
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
4588
4585
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -4649,7 +4646,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
4649
4646
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
4650
4647
|
}
|
|
4651
4648
|
|
|
4652
|
-
// bazel-out/
|
|
4649
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4653
4650
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
4654
4651
|
constructor() {
|
|
4655
4652
|
super(...arguments);
|
|
@@ -5148,7 +5145,7 @@ function isSyntheticReference(ref) {
|
|
|
5148
5145
|
return ref.synthetic;
|
|
5149
5146
|
}
|
|
5150
5147
|
|
|
5151
|
-
// bazel-out/
|
|
5148
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5152
5149
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5153
5150
|
const name = ref.debugName || "(unknown)";
|
|
5154
5151
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5171,7 +5168,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5171
5168
|
return null;
|
|
5172
5169
|
}
|
|
5173
5170
|
|
|
5174
|
-
// bazel-out/
|
|
5171
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5175
5172
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5176
5173
|
import ts23 from "typescript";
|
|
5177
5174
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -5477,7 +5474,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
5477
5474
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
5478
5475
|
}
|
|
5479
5476
|
|
|
5480
|
-
// bazel-out/
|
|
5477
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
5481
5478
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
5482
5479
|
constructor() {
|
|
5483
5480
|
super(...arguments);
|
|
@@ -5512,7 +5509,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
5512
5509
|
}
|
|
5513
5510
|
};
|
|
5514
5511
|
|
|
5515
|
-
// bazel-out/
|
|
5512
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
5516
5513
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
5517
5514
|
if (value instanceof Map) {
|
|
5518
5515
|
const name = value.get("name");
|
|
@@ -5588,7 +5585,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
5588
5585
|
return false;
|
|
5589
5586
|
}
|
|
5590
5587
|
|
|
5591
|
-
// bazel-out/
|
|
5588
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
5592
5589
|
var EMPTY_ARRAY = [];
|
|
5593
5590
|
var ComponentDecoratorHandler = class {
|
|
5594
5591
|
constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf) {
|
|
@@ -6218,7 +6215,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6218
6215
|
return diagnostics;
|
|
6219
6216
|
}
|
|
6220
6217
|
|
|
6221
|
-
// bazel-out/
|
|
6218
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6222
6219
|
import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
|
|
6223
6220
|
import ts25 from "typescript";
|
|
6224
6221
|
var InjectableDecoratorHandler = class {
|
|
@@ -6418,7 +6415,7 @@ function getDep(dep, reflector) {
|
|
|
6418
6415
|
return meta;
|
|
6419
6416
|
}
|
|
6420
6417
|
|
|
6421
|
-
// bazel-out/
|
|
6418
|
+
// bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6422
6419
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
6423
6420
|
import ts26 from "typescript";
|
|
6424
6421
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -6600,4 +6597,4 @@ export {
|
|
|
6600
6597
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6601
6598
|
* found in the LICENSE file at https://angular.io/license
|
|
6602
6599
|
*/
|
|
6603
|
-
//# sourceMappingURL=chunk-
|
|
6600
|
+
//# sourceMappingURL=chunk-I6FYVWLO.js.map
|