@angular/compiler-cli 14.1.0-next.3 → 14.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/{chunk-DPA2FBDE.js → chunk-24DFPZCS.js} +34 -26
- package/bundles/chunk-24DFPZCS.js.map +6 -0
- package/bundles/{chunk-TV7VZNWL.js → chunk-4JF5LVDW.js} +9 -12
- package/bundles/chunk-4JF5LVDW.js.map +6 -0
- package/bundles/{chunk-LC26KH5A.js → chunk-ACXPVP2W.js} +5 -5
- package/bundles/chunk-ACXPVP2W.js.map +6 -0
- package/bundles/{chunk-SOSZHK6P.js → chunk-ATB3HJXN.js} +34 -37
- package/bundles/chunk-ATB3HJXN.js.map +6 -0
- package/bundles/{chunk-OCR5YQMJ.js → chunk-BCXYCOVM.js} +344 -178
- package/bundles/chunk-BCXYCOVM.js.map +6 -0
- package/bundles/{chunk-2WG4XIQ4.js → chunk-C6DN5BLC.js} +8 -12
- package/bundles/chunk-C6DN5BLC.js.map +6 -0
- package/bundles/{chunk-WH4QSABR.js → chunk-CYVTLM4Z.js} +8 -12
- package/bundles/chunk-CYVTLM4Z.js.map +6 -0
- package/bundles/{chunk-ZCDB56AX.js → chunk-E7NQQTT7.js} +3 -3
- package/bundles/{chunk-ZCDB56AX.js.map → chunk-E7NQQTT7.js.map} +1 -1
- package/bundles/{chunk-BRHP6XKM.js → chunk-FM6NPN5V.js} +4 -4
- package/bundles/{chunk-BRHP6XKM.js.map → chunk-FM6NPN5V.js.map} +0 -0
- package/bundles/{chunk-DOITZI4O.js → chunk-KPEPSPYQ.js} +122 -118
- package/bundles/chunk-KPEPSPYQ.js.map +6 -0
- package/bundles/{chunk-EIL2D5BG.js → chunk-MN3YDSGE.js} +46 -47
- package/bundles/chunk-MN3YDSGE.js.map +6 -0
- package/bundles/{chunk-5K2JLFXT.js → chunk-NFCN3OZI.js} +6 -6
- package/bundles/chunk-NFCN3OZI.js.map +6 -0
- package/bundles/{chunk-SJL5HBUW.js → chunk-R3C7RFJ4.js} +2 -2
- package/bundles/{chunk-SJL5HBUW.js.map → chunk-R3C7RFJ4.js.map} +0 -0
- package/bundles/{chunk-CHS76256.js → chunk-S2H6ZNBD.js} +80 -84
- package/bundles/chunk-S2H6ZNBD.js.map +6 -0
- package/bundles/{chunk-TD64C4QJ.js → chunk-TOKOIIBI.js} +8 -8
- package/bundles/chunk-TOKOIIBI.js.map +6 -0
- package/bundles/{chunk-GMSUYBZP.js → chunk-XYNRD7NE.js} +1 -33
- package/bundles/{chunk-GMSUYBZP.js.map → chunk-XYNRD7NE.js.map} +0 -0
- package/bundles/index.js +14 -16
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +20 -24
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +13 -13
- package/bundles/ngcc/main-ngcc.js +14 -14
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -14
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +5 -5
- package/bundles/private/bazel.js +2 -2
- package/bundles/private/localize.js +4 -4
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +12 -15
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/linker/src/linker_import_generator.d.ts +1 -1
- package/ngcc/src/host/commonjs_umd_utils.d.ts +2 -2
- package/ngcc/src/host/esm5_host.d.ts +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/core/api/src/public_options.d.ts +1 -1
- package/src/ngtsc/core/src/compiler.d.ts +2 -2
- package/src/ngtsc/diagnostics/src/error_code.d.ts +49 -1
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +5 -1
- package/src/ngtsc/incremental/src/state.d.ts +1 -1
- package/src/ngtsc/indexer/src/context.d.ts +1 -1
- package/src/ngtsc/metadata/src/registry.d.ts +2 -1
- package/src/ngtsc/perf/src/recorder.d.ts +1 -1
- package/src/ngtsc/reflection/src/host.d.ts +1 -1
- package/src/ngtsc/scope/src/dependency.d.ts +1 -1
- package/src/ngtsc/translator/src/api/ast_factory.d.ts +2 -2
- package/src/ngtsc/translator/src/import_manager.d.ts +1 -1
- package/src/ngtsc/typecheck/extended/api/extended_template_checker.d.ts +1 -1
- package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +10 -0
- package/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.d.ts +11 -0
- package/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.d.ts +11 -0
- package/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.d.ts +11 -0
- package/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.d.ts +11 -0
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
- package/src/transformers/api.d.ts +2 -2
- package/bundles/chunk-2WG4XIQ4.js.map +0 -6
- package/bundles/chunk-5K2JLFXT.js.map +0 -6
- package/bundles/chunk-CHS76256.js.map +0 -6
- package/bundles/chunk-DOITZI4O.js.map +0 -6
- package/bundles/chunk-DPA2FBDE.js.map +0 -6
- package/bundles/chunk-EIL2D5BG.js.map +0 -6
- package/bundles/chunk-LC26KH5A.js.map +0 -6
- package/bundles/chunk-OCR5YQMJ.js.map +0 -6
- package/bundles/chunk-SOSZHK6P.js.map +0 -6
- package/bundles/chunk-TD64C4QJ.js.map +0 -6
- package/bundles/chunk-TV7VZNWL.js.map +0 -6
- package/bundles/chunk-WH4QSABR.js.map +0 -6
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
reflectObjectLiteral,
|
|
14
14
|
reflectTypeEntityToDeclaration,
|
|
15
15
|
typeNodeToValueExpr
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NFCN3OZI.js";
|
|
17
17
|
import {
|
|
18
18
|
ErrorCode,
|
|
19
19
|
FatalDiagnosticError,
|
|
@@ -33,22 +33,18 @@ import {
|
|
|
33
33
|
translateExpression,
|
|
34
34
|
translateStatement,
|
|
35
35
|
translateType
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-24DFPZCS.js";
|
|
37
37
|
import {
|
|
38
38
|
absoluteFrom,
|
|
39
39
|
absoluteFromSourceFile,
|
|
40
40
|
relative
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-TOKOIIBI.js";
|
|
42
42
|
import {
|
|
43
43
|
PerfEvent,
|
|
44
44
|
PerfPhase
|
|
45
|
-
} from "./chunk-
|
|
46
|
-
import {
|
|
47
|
-
__spreadProps,
|
|
48
|
-
__spreadValues
|
|
49
|
-
} from "./chunk-GMSUYBZP.js";
|
|
45
|
+
} from "./chunk-ACXPVP2W.js";
|
|
50
46
|
|
|
51
|
-
// bazel-out/
|
|
47
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
|
|
52
48
|
import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
|
|
53
49
|
import ts from "typescript";
|
|
54
50
|
function valueReferenceToExpression(valueRef) {
|
|
@@ -284,7 +280,7 @@ function getOriginNodeForDiagnostics(expr, container) {
|
|
|
284
280
|
}
|
|
285
281
|
}
|
|
286
282
|
|
|
287
|
-
// bazel-out/
|
|
283
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
|
|
288
284
|
var DynamicValue = class {
|
|
289
285
|
constructor(node, reason, code) {
|
|
290
286
|
this.node = node;
|
|
@@ -374,10 +370,10 @@ var DynamicValue = class {
|
|
|
374
370
|
}
|
|
375
371
|
};
|
|
376
372
|
|
|
377
|
-
// bazel-out/
|
|
373
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
378
374
|
import ts2 from "typescript";
|
|
379
375
|
|
|
380
|
-
// bazel-out/
|
|
376
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
|
|
381
377
|
var ResolvedModule = class {
|
|
382
378
|
constructor(exports, evaluate) {
|
|
383
379
|
this.exports = exports;
|
|
@@ -407,7 +403,7 @@ var EnumValue = class {
|
|
|
407
403
|
var KnownFn = class {
|
|
408
404
|
};
|
|
409
405
|
|
|
410
|
-
// bazel-out/
|
|
406
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
|
|
411
407
|
var ArraySliceBuiltinFn = class extends KnownFn {
|
|
412
408
|
constructor(lhs) {
|
|
413
409
|
super();
|
|
@@ -478,7 +474,7 @@ var ObjectAssignBuiltinFn = class extends KnownFn {
|
|
|
478
474
|
}
|
|
479
475
|
};
|
|
480
476
|
|
|
481
|
-
// bazel-out/
|
|
477
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
|
|
482
478
|
var AssignHelperFn = class extends ObjectAssignBuiltinFn {
|
|
483
479
|
};
|
|
484
480
|
var SpreadHelperFn = class extends KnownFn {
|
|
@@ -531,7 +527,7 @@ var ReadHelperFn = class extends KnownFn {
|
|
|
531
527
|
}
|
|
532
528
|
};
|
|
533
529
|
|
|
534
|
-
// bazel-out/
|
|
530
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
|
|
535
531
|
var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
|
|
536
532
|
var assignTsHelperFn = new AssignHelperFn();
|
|
537
533
|
var spreadTsHelperFn = new SpreadHelperFn();
|
|
@@ -555,14 +551,14 @@ function resolveKnownDeclaration(decl) {
|
|
|
555
551
|
}
|
|
556
552
|
}
|
|
557
553
|
|
|
558
|
-
// bazel-out/
|
|
554
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
|
|
559
555
|
var SyntheticValue = class {
|
|
560
556
|
constructor(value) {
|
|
561
557
|
this.value = value;
|
|
562
558
|
}
|
|
563
559
|
};
|
|
564
560
|
|
|
565
|
-
// bazel-out/
|
|
561
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
|
|
566
562
|
function literalBinaryOp(op) {
|
|
567
563
|
return { op, literal: true };
|
|
568
564
|
}
|
|
@@ -733,7 +729,7 @@ var StaticInterpreter = class {
|
|
|
733
729
|
} else if (isConcreteDeclaration(decl) && decl.identity !== null && decl.identity.kind === 0) {
|
|
734
730
|
return this.getResolvedEnum(decl.node, decl.identity.enumMembers, context);
|
|
735
731
|
}
|
|
736
|
-
const declContext =
|
|
732
|
+
const declContext = { ...context, ...joinModuleContext(context, node, decl) };
|
|
737
733
|
const result = this.visitAmbiguousDeclaration(decl, declContext);
|
|
738
734
|
if (result instanceof Reference) {
|
|
739
735
|
if (!result.synthetic) {
|
|
@@ -825,7 +821,10 @@ var StaticInterpreter = class {
|
|
|
825
821
|
if (decl.known !== null) {
|
|
826
822
|
return resolveKnownDeclaration(decl.known);
|
|
827
823
|
}
|
|
828
|
-
const declContext =
|
|
824
|
+
const declContext = {
|
|
825
|
+
...context,
|
|
826
|
+
...joinModuleContext(context, node, decl)
|
|
827
|
+
};
|
|
829
828
|
return this.visitAmbiguousDeclaration(decl, declContext);
|
|
830
829
|
});
|
|
831
830
|
}
|
|
@@ -908,7 +907,7 @@ var StaticInterpreter = class {
|
|
|
908
907
|
resolutionContext: lhs.bestGuessOwningModule.resolutionContext
|
|
909
908
|
};
|
|
910
909
|
}
|
|
911
|
-
return this.visitFfrExpression(expr,
|
|
910
|
+
return this.visitFfrExpression(expr, { ...context, ...contextExtension });
|
|
912
911
|
};
|
|
913
912
|
if (fn.body === null && context.foreignFunctionResolver !== void 0) {
|
|
914
913
|
const unresolvable = DynamicValue.fromDynamicInput(node, DynamicValue.fromExternalReference(node.expression, lhs));
|
|
@@ -937,7 +936,7 @@ var StaticInterpreter = class {
|
|
|
937
936
|
const ret = fn.body[0];
|
|
938
937
|
const args = this.evaluateFunctionArguments(node, context);
|
|
939
938
|
const newScope = /* @__PURE__ */ new Map();
|
|
940
|
-
const calleeContext =
|
|
939
|
+
const calleeContext = { ...context, scope: newScope };
|
|
941
940
|
fn.parameters.forEach((param, index) => {
|
|
942
941
|
let arg = args[index];
|
|
943
942
|
if (param.node.dotDotDotToken !== void 0) {
|
|
@@ -1144,7 +1143,7 @@ function owningModule(context, override = null) {
|
|
|
1144
1143
|
}
|
|
1145
1144
|
}
|
|
1146
1145
|
|
|
1147
|
-
// bazel-out/
|
|
1146
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
|
|
1148
1147
|
var PartialEvaluator = class {
|
|
1149
1148
|
constructor(host, checker, dependencyTracker) {
|
|
1150
1149
|
this.host = host;
|
|
@@ -1164,7 +1163,7 @@ var PartialEvaluator = class {
|
|
|
1164
1163
|
}
|
|
1165
1164
|
};
|
|
1166
1165
|
|
|
1167
|
-
// bazel-out/
|
|
1166
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
|
|
1168
1167
|
import ts3 from "typescript";
|
|
1169
1168
|
function describeResolvedType(value, maxDepth = 1) {
|
|
1170
1169
|
var _a, _b;
|
|
@@ -1294,7 +1293,7 @@ function getContainerNode(node) {
|
|
|
1294
1293
|
return node.getSourceFile();
|
|
1295
1294
|
}
|
|
1296
1295
|
|
|
1297
|
-
// bazel-out/
|
|
1296
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
|
|
1298
1297
|
import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
|
|
1299
1298
|
import ts4 from "typescript";
|
|
1300
1299
|
function getConstructorDependencies(clazz, reflector, isCore) {
|
|
@@ -1438,7 +1437,7 @@ function createUnsuitableInjectionTokenError(clazz, error) {
|
|
|
1438
1437
|
return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
|
|
1439
1438
|
}
|
|
1440
1439
|
|
|
1441
|
-
// bazel-out/
|
|
1440
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
|
|
1442
1441
|
import ts5 from "typescript";
|
|
1443
1442
|
function makeDuplicateDeclarationError(node, data, kind) {
|
|
1444
1443
|
const context = [];
|
|
@@ -1546,7 +1545,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, reader) {
|
|
|
1546
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}.`);
|
|
1547
1546
|
}
|
|
1548
1547
|
|
|
1549
|
-
// bazel-out/
|
|
1548
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
|
|
1550
1549
|
import ts6 from "typescript";
|
|
1551
1550
|
function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
|
|
1552
1551
|
let resolved = null;
|
|
@@ -1579,7 +1578,7 @@ function resolveLiteral(decorator, literalCache) {
|
|
|
1579
1578
|
return meta;
|
|
1580
1579
|
}
|
|
1581
1580
|
|
|
1582
|
-
// bazel-out/
|
|
1581
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
|
|
1583
1582
|
import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
|
|
1584
1583
|
function compileNgFactoryDefField(metadata) {
|
|
1585
1584
|
const res = compileFactoryFunction(metadata);
|
|
@@ -1590,7 +1589,7 @@ function compileDeclareFactory(metadata) {
|
|
|
1590
1589
|
return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
|
|
1591
1590
|
}
|
|
1592
1591
|
|
|
1593
|
-
// bazel-out/
|
|
1592
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
|
|
1594
1593
|
import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
|
|
1595
1594
|
import ts7 from "typescript";
|
|
1596
1595
|
function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
|
|
@@ -1678,13 +1677,13 @@ function removeIdentifierReferences(node, name) {
|
|
|
1678
1677
|
return result.transformed[0];
|
|
1679
1678
|
}
|
|
1680
1679
|
|
|
1681
|
-
// bazel-out/
|
|
1680
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
|
|
1682
1681
|
var NoopReferencesRegistry = class {
|
|
1683
1682
|
add(source, ...references) {
|
|
1684
1683
|
}
|
|
1685
1684
|
};
|
|
1686
1685
|
|
|
1687
|
-
// bazel-out/
|
|
1686
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
|
|
1688
1687
|
import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
|
|
1689
1688
|
function extractSchemas(rawExpr, evaluator, context) {
|
|
1690
1689
|
const schemas = [];
|
|
@@ -1714,11 +1713,11 @@ function extractSchemas(rawExpr, evaluator, context) {
|
|
|
1714
1713
|
return schemas;
|
|
1715
1714
|
}
|
|
1716
1715
|
|
|
1717
|
-
// bazel-out/
|
|
1716
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
1718
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";
|
|
1719
1718
|
import ts24 from "typescript";
|
|
1720
1719
|
|
|
1721
|
-
// bazel-out/
|
|
1720
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
|
|
1722
1721
|
import ts8 from "typescript";
|
|
1723
1722
|
var SemanticSymbol = class {
|
|
1724
1723
|
constructor(decl) {
|
|
@@ -1734,7 +1733,7 @@ function getSymbolIdentifier(decl) {
|
|
|
1734
1733
|
return decl.name.text;
|
|
1735
1734
|
}
|
|
1736
1735
|
|
|
1737
|
-
// bazel-out/
|
|
1736
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
|
|
1738
1737
|
import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
|
|
1739
1738
|
var OpaqueSymbol = class extends SemanticSymbol {
|
|
1740
1739
|
isPublicApiAffected() {
|
|
@@ -1877,10 +1876,10 @@ function getImportPath(expr) {
|
|
|
1877
1876
|
}
|
|
1878
1877
|
}
|
|
1879
1878
|
|
|
1880
|
-
// bazel-out/
|
|
1879
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1881
1880
|
import ts9 from "typescript";
|
|
1882
1881
|
|
|
1883
|
-
// bazel-out/
|
|
1882
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
|
|
1884
1883
|
function isSymbolEqual(a, b) {
|
|
1885
1884
|
if (a.decl === b.decl) {
|
|
1886
1885
|
return true;
|
|
@@ -1930,7 +1929,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
|
|
|
1930
1929
|
return true;
|
|
1931
1930
|
}
|
|
1932
1931
|
|
|
1933
|
-
// bazel-out/
|
|
1932
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
|
|
1934
1933
|
function extractSemanticTypeParameters(node) {
|
|
1935
1934
|
if (!ts9.isClassDeclaration(node) || node.typeParameters === void 0) {
|
|
1936
1935
|
return null;
|
|
@@ -1950,7 +1949,7 @@ function isTypeParameterEqual(a, b) {
|
|
|
1950
1949
|
return a.hasGenericTypeBound === b.hasGenericTypeBound;
|
|
1951
1950
|
}
|
|
1952
1951
|
|
|
1953
|
-
// bazel-out/
|
|
1952
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
|
|
1954
1953
|
var MetaKind;
|
|
1955
1954
|
(function(MetaKind2) {
|
|
1956
1955
|
MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
|
|
@@ -1958,10 +1957,10 @@ var MetaKind;
|
|
|
1958
1957
|
MetaKind2[MetaKind2["NgModule"] = 2] = "NgModule";
|
|
1959
1958
|
})(MetaKind || (MetaKind = {}));
|
|
1960
1959
|
|
|
1961
|
-
// bazel-out/
|
|
1960
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
1962
1961
|
import ts11 from "typescript";
|
|
1963
1962
|
|
|
1964
|
-
// bazel-out/
|
|
1963
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
|
|
1965
1964
|
var ClassPropertyMapping = class {
|
|
1966
1965
|
constructor(forwardMap) {
|
|
1967
1966
|
this.forwardMap = forwardMap;
|
|
@@ -2037,7 +2036,7 @@ function reverseMapFromForwardMap(forwardMap) {
|
|
|
2037
2036
|
return reverseMap;
|
|
2038
2037
|
}
|
|
2039
2038
|
|
|
2040
|
-
// bazel-out/
|
|
2039
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
|
|
2041
2040
|
import ts10 from "typescript";
|
|
2042
2041
|
function extractReferencesFromType(checker, def, bestGuessOwningModule) {
|
|
2043
2042
|
if (!ts10.isTupleTypeNode(def)) {
|
|
@@ -2217,7 +2216,7 @@ function hasInjectableFields(clazz, host) {
|
|
|
2217
2216
|
return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
|
|
2218
2217
|
}
|
|
2219
2218
|
|
|
2220
|
-
// bazel-out/
|
|
2219
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
|
|
2221
2220
|
var DtsMetadataReader = class {
|
|
2222
2221
|
constructor(checker, reflector) {
|
|
2223
2222
|
this.checker = checker;
|
|
@@ -2261,7 +2260,7 @@ var DtsMetadataReader = class {
|
|
|
2261
2260
|
const isStandalone = def.type.typeArguments.length > 7 && ((_a = readBooleanType(def.type.typeArguments[7])) != null ? _a : false);
|
|
2262
2261
|
const inputs = ClassPropertyMapping.fromMappedObject(readStringMapType(def.type.typeArguments[3]));
|
|
2263
2262
|
const outputs = ClassPropertyMapping.fromMappedObject(readStringMapType(def.type.typeArguments[4]));
|
|
2264
|
-
return
|
|
2263
|
+
return {
|
|
2265
2264
|
kind: MetaKind.Directive,
|
|
2266
2265
|
ref,
|
|
2267
2266
|
name: clazz.name.text,
|
|
@@ -2270,8 +2269,8 @@ var DtsMetadataReader = class {
|
|
|
2270
2269
|
exportAs: readStringArrayType(def.type.typeArguments[2]),
|
|
2271
2270
|
inputs,
|
|
2272
2271
|
outputs,
|
|
2273
|
-
queries: readStringArrayType(def.type.typeArguments[5])
|
|
2274
|
-
|
|
2272
|
+
queries: readStringArrayType(def.type.typeArguments[5]),
|
|
2273
|
+
...extractDirectiveTypeCheckMeta(clazz, inputs, this.reflector),
|
|
2275
2274
|
baseClass: readBaseClass2(clazz, this.checker, this.reflector),
|
|
2276
2275
|
isPoisoned: false,
|
|
2277
2276
|
isStructural,
|
|
@@ -2279,7 +2278,7 @@ var DtsMetadataReader = class {
|
|
|
2279
2278
|
isStandalone,
|
|
2280
2279
|
imports: null,
|
|
2281
2280
|
schemas: null
|
|
2282
|
-
}
|
|
2281
|
+
};
|
|
2283
2282
|
}
|
|
2284
2283
|
getPipeMetadata(ref) {
|
|
2285
2284
|
var _a;
|
|
@@ -2329,7 +2328,7 @@ function readBaseClass2(clazz, checker, reflector) {
|
|
|
2329
2328
|
return null;
|
|
2330
2329
|
}
|
|
2331
2330
|
|
|
2332
|
-
// bazel-out/
|
|
2331
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
|
|
2333
2332
|
function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
2334
2333
|
const topMeta = reader.getDirectiveMetadata(dir);
|
|
2335
2334
|
if (topMeta === null) {
|
|
@@ -2374,7 +2373,8 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2374
2373
|
}
|
|
2375
2374
|
};
|
|
2376
2375
|
addMetadata(topMeta);
|
|
2377
|
-
return
|
|
2376
|
+
return {
|
|
2377
|
+
...topMeta,
|
|
2378
2378
|
inputs,
|
|
2379
2379
|
outputs,
|
|
2380
2380
|
coercedInputFields,
|
|
@@ -2383,10 +2383,10 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
|
|
|
2383
2383
|
stringLiteralInputFields,
|
|
2384
2384
|
baseClass: isDynamic ? "dynamic" : null,
|
|
2385
2385
|
isStructural
|
|
2386
|
-
}
|
|
2386
|
+
};
|
|
2387
2387
|
}
|
|
2388
2388
|
|
|
2389
|
-
// bazel-out/
|
|
2389
|
+
// bazel-out/k8-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/k8-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/k8-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/k8-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/k8-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;
|
|
@@ -2611,17 +2611,18 @@ var MetadataDtsModuleScopeResolver = class {
|
|
|
2611
2611
|
if (alias === null) {
|
|
2612
2612
|
return dirOrPipe;
|
|
2613
2613
|
}
|
|
2614
|
-
return
|
|
2614
|
+
return {
|
|
2615
|
+
...dirOrPipe,
|
|
2615
2616
|
ref: ref.cloneWithAlias(alias)
|
|
2616
|
-
}
|
|
2617
|
+
};
|
|
2617
2618
|
}
|
|
2618
2619
|
};
|
|
2619
2620
|
|
|
2620
|
-
// bazel-out/
|
|
2621
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2621
2622
|
import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
|
|
2622
2623
|
import ts12 from "typescript";
|
|
2623
2624
|
|
|
2624
|
-
// bazel-out/
|
|
2625
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
|
|
2625
2626
|
function getDiagnosticNode(ref, rawExpr) {
|
|
2626
2627
|
return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
|
|
2627
2628
|
}
|
|
@@ -2631,11 +2632,8 @@ function makeNotStandaloneDiagnostic(scopeReader, ref, rawExpr, kind) {
|
|
|
2631
2632
|
let relatedInformation = void 0;
|
|
2632
2633
|
if (scope !== null && scope.kind === ComponentScopeKind.NgModule) {
|
|
2633
2634
|
const isExported = scope.exported.dependencies.some((dep) => dep.ref.node === ref.node);
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
} else {
|
|
2637
|
-
relatedInformation = [makeRelatedInformation(scope.ngModule.name, `It's declared in the NgModule '${scope.ngModule.name.text}', but is not exported. Consider exporting it.`)];
|
|
2638
|
-
}
|
|
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)];
|
|
2639
2637
|
} else {
|
|
2640
2638
|
}
|
|
2641
2639
|
if (relatedInformation === void 0) {
|
|
@@ -2647,7 +2645,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
|
|
|
2647
2645
|
return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
|
|
2648
2646
|
}
|
|
2649
2647
|
|
|
2650
|
-
// bazel-out/
|
|
2648
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
|
|
2651
2649
|
var LocalModuleScopeRegistry = class {
|
|
2652
2650
|
constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
|
|
2653
2651
|
this.localReader = localReader;
|
|
@@ -2790,7 +2788,7 @@ var LocalModuleScopeRegistry = class {
|
|
|
2790
2788
|
isPoisoned = true;
|
|
2791
2789
|
continue;
|
|
2792
2790
|
}
|
|
2793
|
-
compilationDirectives.set(decl.node,
|
|
2791
|
+
compilationDirectives.set(decl.node, { ...directive, ref: decl });
|
|
2794
2792
|
if (directive.isPoisoned) {
|
|
2795
2793
|
isPoisoned = true;
|
|
2796
2794
|
}
|
|
@@ -2800,7 +2798,7 @@ var LocalModuleScopeRegistry = class {
|
|
|
2800
2798
|
isPoisoned = true;
|
|
2801
2799
|
continue;
|
|
2802
2800
|
}
|
|
2803
|
-
compilationPipes.set(decl.node,
|
|
2801
|
+
compilationPipes.set(decl.node, { ...pipe, ref: decl });
|
|
2804
2802
|
} else {
|
|
2805
2803
|
const errorNode = decl.getOriginForDiagnostics(ngModule.rawDeclarations);
|
|
2806
2804
|
diagnostics.push(makeDiagnostic(ErrorCode.NGMODULE_INVALID_DECLARATION, errorNode, `The class '${decl.node.name.text}' is listed in the declarations of the NgModule '${ngModule.ref.node.name.text}', but is not a directive, a component, or a pipe. Either remove it from the NgModule's declarations, or add an appropriate Angular decorator.`, [makeRelatedInformation(decl.node.name, `'${decl.node.name.text}' is declared here.`)]));
|
|
@@ -2986,7 +2984,7 @@ function reexportCollision(module, refA, refB) {
|
|
|
2986
2984
|
]);
|
|
2987
2985
|
}
|
|
2988
2986
|
|
|
2989
|
-
// bazel-out/
|
|
2987
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
|
|
2990
2988
|
import { CssSelector, SelectorMatcher } from "@angular/compiler";
|
|
2991
2989
|
import ts13 from "typescript";
|
|
2992
2990
|
var TypeCheckScopeRegistry = class {
|
|
@@ -3048,7 +3046,7 @@ var TypeCheckScopeRegistry = class {
|
|
|
3048
3046
|
}
|
|
3049
3047
|
};
|
|
3050
3048
|
|
|
3051
|
-
// bazel-out/
|
|
3049
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
|
|
3052
3050
|
var CompilationMode;
|
|
3053
3051
|
(function(CompilationMode2) {
|
|
3054
3052
|
CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
|
|
@@ -3066,7 +3064,7 @@ var HandlerFlags;
|
|
|
3066
3064
|
HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
|
|
3067
3065
|
})(HandlerFlags || (HandlerFlags = {}));
|
|
3068
3066
|
|
|
3069
|
-
// bazel-out/
|
|
3067
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
|
|
3070
3068
|
import ts14 from "typescript";
|
|
3071
3069
|
function aliasTransformFactory(exportStatements) {
|
|
3072
3070
|
return (context) => {
|
|
@@ -3084,10 +3082,10 @@ function aliasTransformFactory(exportStatements) {
|
|
|
3084
3082
|
};
|
|
3085
3083
|
}
|
|
3086
3084
|
|
|
3087
|
-
// bazel-out/
|
|
3085
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3088
3086
|
import ts15 from "typescript";
|
|
3089
3087
|
|
|
3090
|
-
// bazel-out/
|
|
3088
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
|
|
3091
3089
|
var TraitState;
|
|
3092
3090
|
(function(TraitState2) {
|
|
3093
3091
|
TraitState2[TraitState2["Pending"] = 0] = "Pending";
|
|
@@ -3142,7 +3140,7 @@ var TraitImpl = class {
|
|
|
3142
3140
|
}
|
|
3143
3141
|
};
|
|
3144
3142
|
|
|
3145
|
-
// bazel-out/
|
|
3143
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
|
|
3146
3144
|
var TraitCompiler = class {
|
|
3147
3145
|
constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
|
|
3148
3146
|
this.handlers = handlers;
|
|
@@ -3586,10 +3584,10 @@ function containsErrors(diagnostics) {
|
|
|
3586
3584
|
return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
|
|
3587
3585
|
}
|
|
3588
3586
|
|
|
3589
|
-
// bazel-out/
|
|
3587
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3590
3588
|
import ts17 from "typescript";
|
|
3591
3589
|
|
|
3592
|
-
// bazel-out/
|
|
3590
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
|
|
3593
3591
|
import ts16 from "typescript";
|
|
3594
3592
|
function addImports(importManager, sf, extraStatements = []) {
|
|
3595
3593
|
const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
|
|
@@ -3617,7 +3615,7 @@ function isImportStatement(stmt) {
|
|
|
3617
3615
|
return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
|
|
3618
3616
|
}
|
|
3619
3617
|
|
|
3620
|
-
// bazel-out/
|
|
3618
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
|
|
3621
3619
|
var DtsTransformRegistry = class {
|
|
3622
3620
|
constructor() {
|
|
3623
3621
|
this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
|
|
@@ -3742,11 +3740,11 @@ function markForEmitAsSingleLine(node) {
|
|
|
3742
3740
|
ts17.forEachChild(node, markForEmitAsSingleLine);
|
|
3743
3741
|
}
|
|
3744
3742
|
|
|
3745
|
-
// bazel-out/
|
|
3743
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3746
3744
|
import { ConstantPool } from "@angular/compiler";
|
|
3747
3745
|
import ts19 from "typescript";
|
|
3748
3746
|
|
|
3749
|
-
// bazel-out/
|
|
3747
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
|
|
3750
3748
|
import ts18 from "typescript";
|
|
3751
3749
|
function visit(node, visitor, context) {
|
|
3752
3750
|
return visitor._visit(node, context);
|
|
@@ -3808,7 +3806,7 @@ function hasStatements(node) {
|
|
|
3808
3806
|
return block.statements !== void 0 && Array.isArray(block.statements);
|
|
3809
3807
|
}
|
|
3810
3808
|
|
|
3811
|
-
// bazel-out/
|
|
3809
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
|
|
3812
3810
|
var NO_DECORATORS = /* @__PURE__ */ new Set();
|
|
3813
3811
|
var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
|
|
3814
3812
|
function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
|
|
@@ -3989,10 +3987,10 @@ function createRecorderFn(defaultImportTracker) {
|
|
|
3989
3987
|
};
|
|
3990
3988
|
}
|
|
3991
3989
|
|
|
3992
|
-
// bazel-out/
|
|
3990
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
3993
3991
|
import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
|
|
3994
3992
|
|
|
3995
|
-
// bazel-out/
|
|
3993
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
|
|
3996
3994
|
import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
|
|
3997
3995
|
import ts20 from "typescript";
|
|
3998
3996
|
var EMPTY_OBJECT = {};
|
|
@@ -4075,8 +4073,8 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, isCore
|
|
|
4075
4073
|
const usesInheritance = reflector.hasBaseClass(clazz);
|
|
4076
4074
|
const type = wrapTypeReference(reflector, clazz);
|
|
4077
4075
|
const internalType = new WrappedNodeExpr4(reflector.getInternalNameOfClass(clazz));
|
|
4078
|
-
const inputs = ClassPropertyMapping.fromMappedObject(
|
|
4079
|
-
const outputs = ClassPropertyMapping.fromMappedObject(
|
|
4076
|
+
const inputs = ClassPropertyMapping.fromMappedObject({ ...inputsFromMeta, ...inputsFromFields });
|
|
4077
|
+
const outputs = ClassPropertyMapping.fromMappedObject({ ...outputsFromMeta, ...outputsFromFields });
|
|
4080
4078
|
const metadata = {
|
|
4081
4079
|
name: clazz.name.text,
|
|
4082
4080
|
deps: ctorDeps,
|
|
@@ -4356,7 +4354,7 @@ function evaluateHostExpressionBindings(hostExpr, evaluator) {
|
|
|
4356
4354
|
return bindings;
|
|
4357
4355
|
}
|
|
4358
4356
|
|
|
4359
|
-
// bazel-out/
|
|
4357
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
|
|
4360
4358
|
var DirectiveSymbol = class extends SemanticSymbol {
|
|
4361
4359
|
constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
|
|
4362
4360
|
super(decl);
|
|
@@ -4433,7 +4431,7 @@ function isBaseClassEqual(current, previous) {
|
|
|
4433
4431
|
return isSymbolEqual(current, previous);
|
|
4434
4432
|
}
|
|
4435
4433
|
|
|
4436
|
-
// bazel-out/
|
|
4434
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
|
|
4437
4435
|
var FIELD_DECORATORS = [
|
|
4438
4436
|
"Input",
|
|
4439
4437
|
"Output",
|
|
@@ -4516,7 +4514,7 @@ var DirectiveDecoratorHandler = class {
|
|
|
4516
4514
|
}
|
|
4517
4515
|
register(node, analysis) {
|
|
4518
4516
|
const ref = new Reference(node);
|
|
4519
|
-
this.metaRegistry.registerDirectiveMetadata(
|
|
4517
|
+
this.metaRegistry.registerDirectiveMetadata({
|
|
4520
4518
|
kind: MetaKind.Directive,
|
|
4521
4519
|
ref,
|
|
4522
4520
|
name: node.name.text,
|
|
@@ -4526,15 +4524,15 @@ var DirectiveDecoratorHandler = class {
|
|
|
4526
4524
|
outputs: analysis.outputs,
|
|
4527
4525
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
4528
4526
|
isComponent: false,
|
|
4529
|
-
baseClass: analysis.baseClass
|
|
4530
|
-
|
|
4527
|
+
baseClass: analysis.baseClass,
|
|
4528
|
+
...analysis.typeCheckMeta,
|
|
4531
4529
|
isPoisoned: analysis.isPoisoned,
|
|
4532
4530
|
isStructural: analysis.isStructural,
|
|
4533
4531
|
animationTriggerNames: null,
|
|
4534
4532
|
isStandalone: analysis.meta.isStandalone,
|
|
4535
4533
|
imports: null,
|
|
4536
4534
|
schemas: null
|
|
4537
|
-
})
|
|
4535
|
+
});
|
|
4538
4536
|
this.injectableRegistry.registerInjectable(node);
|
|
4539
4537
|
}
|
|
4540
4538
|
resolve(node, analysis, symbol) {
|
|
@@ -4577,11 +4575,11 @@ var DirectiveDecoratorHandler = class {
|
|
|
4577
4575
|
}
|
|
4578
4576
|
};
|
|
4579
4577
|
|
|
4580
|
-
// bazel-out/
|
|
4578
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4581
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";
|
|
4582
4580
|
import ts22 from "typescript";
|
|
4583
4581
|
|
|
4584
|
-
// bazel-out/
|
|
4582
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
|
|
4585
4583
|
import ts21 from "typescript";
|
|
4586
4584
|
function createModuleWithProvidersResolver(reflector, isCore) {
|
|
4587
4585
|
function _reflectModuleFromTypeParam(type, node) {
|
|
@@ -4648,7 +4646,7 @@ function isResolvedModuleWithProviders(sv) {
|
|
|
4648
4646
|
return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
|
|
4649
4647
|
}
|
|
4650
4648
|
|
|
4651
|
-
// bazel-out/
|
|
4649
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
|
|
4652
4650
|
var NgModuleSymbol = class extends SemanticSymbol {
|
|
4653
4651
|
constructor() {
|
|
4654
4652
|
super(...arguments);
|
|
@@ -5007,9 +5005,10 @@ var NgModuleDecoratorHandler = class {
|
|
|
5007
5005
|
}
|
|
5008
5006
|
compileFull(node, { inj, mod, fac, classMetadata, declarations, remoteScopesMayRequireCycleProtection }, { injectorImports }) {
|
|
5009
5007
|
const factoryFn = compileNgFactoryDefField(fac);
|
|
5010
|
-
const ngInjectorDef = compileInjector(
|
|
5008
|
+
const ngInjectorDef = compileInjector({
|
|
5009
|
+
...inj,
|
|
5011
5010
|
imports: injectorImports
|
|
5012
|
-
})
|
|
5011
|
+
});
|
|
5013
5012
|
const ngModuleDef = compileNgModule(mod);
|
|
5014
5013
|
const statements = ngModuleDef.statements;
|
|
5015
5014
|
const metadata = classMetadata !== null ? compileClassMetadata2(classMetadata) : null;
|
|
@@ -5019,9 +5018,10 @@ var NgModuleDecoratorHandler = class {
|
|
|
5019
5018
|
}
|
|
5020
5019
|
compilePartial(node, { inj, fac, mod, classMetadata }, { injectorImports }) {
|
|
5021
5020
|
const factoryFn = compileDeclareFactory(fac);
|
|
5022
|
-
const injectorDef = compileDeclareInjectorFromMetadata(
|
|
5021
|
+
const injectorDef = compileDeclareInjectorFromMetadata({
|
|
5022
|
+
...inj,
|
|
5023
5023
|
imports: injectorImports
|
|
5024
|
-
})
|
|
5024
|
+
});
|
|
5025
5025
|
const ngModuleDef = compileDeclareNgModuleFromMetadata(mod);
|
|
5026
5026
|
const metadata = classMetadata !== null ? compileDeclareClassMetadata2(classMetadata) : null;
|
|
5027
5027
|
this.insertMetadataStatement(ngModuleDef.statements, metadata);
|
|
@@ -5145,7 +5145,7 @@ function isSyntheticReference(ref) {
|
|
|
5145
5145
|
return ref.synthetic;
|
|
5146
5146
|
}
|
|
5147
5147
|
|
|
5148
|
-
// bazel-out/
|
|
5148
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
|
|
5149
5149
|
function makeCyclicImportInfo(ref, type, cycle) {
|
|
5150
5150
|
const name = ref.debugName || "(unknown)";
|
|
5151
5151
|
const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
|
|
@@ -5168,7 +5168,7 @@ function checkCustomElementSelectorForErrors(selector) {
|
|
|
5168
5168
|
return null;
|
|
5169
5169
|
}
|
|
5170
5170
|
|
|
5171
|
-
// bazel-out/
|
|
5171
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
|
|
5172
5172
|
import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
|
|
5173
5173
|
import ts23 from "typescript";
|
|
5174
5174
|
function getTemplateDeclarationNodeForError(declaration) {
|
|
@@ -5212,17 +5212,19 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
|
|
|
5212
5212
|
};
|
|
5213
5213
|
sourceMapUrl = null;
|
|
5214
5214
|
}
|
|
5215
|
-
return
|
|
5215
|
+
return {
|
|
5216
|
+
...parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedString, sourceMapUrl, options),
|
|
5216
5217
|
content: templateContent,
|
|
5217
5218
|
sourceMapping,
|
|
5218
5219
|
declaration: template
|
|
5219
|
-
}
|
|
5220
|
+
};
|
|
5220
5221
|
} else {
|
|
5221
5222
|
const templateContent = resourceLoader.load(template.resolvedTemplateUrl);
|
|
5222
5223
|
if (depTracker !== null) {
|
|
5223
5224
|
depTracker.addResourceDependency(node.getSourceFile(), absoluteFrom(template.resolvedTemplateUrl));
|
|
5224
5225
|
}
|
|
5225
|
-
return
|
|
5226
|
+
return {
|
|
5227
|
+
...parseExtractedTemplate(template, templateContent, null, false, template.resolvedTemplateUrl, options),
|
|
5226
5228
|
content: templateContent,
|
|
5227
5229
|
sourceMapping: {
|
|
5228
5230
|
type: "external",
|
|
@@ -5232,7 +5234,7 @@ function extractTemplate(node, template, evaluator, depTracker, resourceLoader,
|
|
|
5232
5234
|
templateUrl: template.resolvedTemplateUrl
|
|
5233
5235
|
},
|
|
5234
5236
|
declaration: template
|
|
5235
|
-
}
|
|
5237
|
+
};
|
|
5236
5238
|
}
|
|
5237
5239
|
}
|
|
5238
5240
|
function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedString, sourceMapUrl, options) {
|
|
@@ -5257,10 +5259,11 @@ function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedSt
|
|
|
5257
5259
|
leadingTriviaChars: [],
|
|
5258
5260
|
alwaysAttemptHtmlToR3AstConversion: options.usePoisonedData
|
|
5259
5261
|
});
|
|
5260
|
-
return
|
|
5262
|
+
return {
|
|
5263
|
+
...parsedTemplate,
|
|
5261
5264
|
diagNodes,
|
|
5262
5265
|
file: new ParseSourceFile2(sourceStr, sourceMapUrl != null ? sourceMapUrl : "")
|
|
5263
|
-
}
|
|
5266
|
+
};
|
|
5264
5267
|
}
|
|
5265
5268
|
function parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces) {
|
|
5266
5269
|
let preserveWhitespaces = defaultPreserveWhitespaces;
|
|
@@ -5399,7 +5402,7 @@ function transformDecoratorResources(dec, component, styles, template) {
|
|
|
5399
5402
|
for (const [name, value] of metadata.entries()) {
|
|
5400
5403
|
newMetadataFields.push(ts23.factory.createPropertyAssignment(name, value));
|
|
5401
5404
|
}
|
|
5402
|
-
return
|
|
5405
|
+
return { ...dec, args: [ts23.factory.createObjectLiteralExpression(newMetadataFields)] };
|
|
5403
5406
|
}
|
|
5404
5407
|
function extractComponentStyleUrls(evaluator, component) {
|
|
5405
5408
|
if (!component.has("styleUrls")) {
|
|
@@ -5471,7 +5474,7 @@ function _extractTemplateStyleUrls(template) {
|
|
|
5471
5474
|
return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
|
|
5472
5475
|
}
|
|
5473
5476
|
|
|
5474
|
-
// bazel-out/
|
|
5477
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
|
|
5475
5478
|
var ComponentSymbol = class extends DirectiveSymbol {
|
|
5476
5479
|
constructor() {
|
|
5477
5480
|
super(...arguments);
|
|
@@ -5506,7 +5509,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
|
|
|
5506
5509
|
}
|
|
5507
5510
|
};
|
|
5508
5511
|
|
|
5509
|
-
// bazel-out/
|
|
5512
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
|
|
5510
5513
|
function collectAnimationNames(value, animationTriggerNames) {
|
|
5511
5514
|
if (value instanceof Map) {
|
|
5512
5515
|
const name = value.get("name");
|
|
@@ -5582,7 +5585,7 @@ function isLikelyModuleWithProviders(value) {
|
|
|
5582
5585
|
return false;
|
|
5583
5586
|
}
|
|
5584
5587
|
|
|
5585
|
-
// bazel-out/
|
|
5588
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
|
|
5586
5589
|
var EMPTY_ARRAY = [];
|
|
5587
5590
|
var ComponentDecoratorHandler = class {
|
|
5588
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) {
|
|
@@ -5834,7 +5837,8 @@ var ComponentDecoratorHandler = class {
|
|
|
5834
5837
|
baseClass: readBaseClass(node, this.reflector, this.evaluator),
|
|
5835
5838
|
inputs,
|
|
5836
5839
|
outputs,
|
|
5837
|
-
meta:
|
|
5840
|
+
meta: {
|
|
5841
|
+
...metadata,
|
|
5838
5842
|
template: {
|
|
5839
5843
|
nodes: template.nodes,
|
|
5840
5844
|
ngContentSelectors: template.ngContentSelectors
|
|
@@ -5846,7 +5850,7 @@ var ComponentDecoratorHandler = class {
|
|
|
5846
5850
|
viewProviders: wrappedViewProviders,
|
|
5847
5851
|
i18nUseExternalIds: this.i18nUseExternalIds,
|
|
5848
5852
|
relativeContextFilePath
|
|
5849
|
-
}
|
|
5853
|
+
},
|
|
5850
5854
|
typeCheckMeta: extractDirectiveTypeCheckMeta(node, inputs, this.reflector),
|
|
5851
5855
|
classMetadata: extractClassMetadata(node, this.reflector, this.isCore, this.annotateForClosureCompiler, (dec) => transformDecoratorResources(dec, component, styles, template)),
|
|
5852
5856
|
template,
|
|
@@ -5877,7 +5881,7 @@ var ComponentDecoratorHandler = class {
|
|
|
5877
5881
|
}
|
|
5878
5882
|
register(node, analysis) {
|
|
5879
5883
|
const ref = new Reference(node);
|
|
5880
|
-
this.metaRegistry.registerDirectiveMetadata(
|
|
5884
|
+
this.metaRegistry.registerDirectiveMetadata({
|
|
5881
5885
|
kind: MetaKind.Directive,
|
|
5882
5886
|
ref,
|
|
5883
5887
|
name: node.name.text,
|
|
@@ -5887,15 +5891,15 @@ var ComponentDecoratorHandler = class {
|
|
|
5887
5891
|
outputs: analysis.outputs,
|
|
5888
5892
|
queries: analysis.meta.queries.map((query) => query.propertyName),
|
|
5889
5893
|
isComponent: true,
|
|
5890
|
-
baseClass: analysis.baseClass
|
|
5891
|
-
|
|
5894
|
+
baseClass: analysis.baseClass,
|
|
5895
|
+
...analysis.typeCheckMeta,
|
|
5892
5896
|
isPoisoned: analysis.isPoisoned,
|
|
5893
5897
|
isStructural: false,
|
|
5894
5898
|
isStandalone: analysis.meta.isStandalone,
|
|
5895
5899
|
imports: analysis.resolvedImports,
|
|
5896
5900
|
animationTriggerNames: analysis.animationTriggerNames,
|
|
5897
5901
|
schemas: analysis.schemas
|
|
5898
|
-
})
|
|
5902
|
+
});
|
|
5899
5903
|
this.resourceRegistry.registerResources(analysis.resources, node);
|
|
5900
5904
|
this.injectableRegistry.registerInjectable(node);
|
|
5901
5905
|
}
|
|
@@ -6148,7 +6152,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6148
6152
|
if (analysis.template.errors !== null && analysis.template.errors.length > 0) {
|
|
6149
6153
|
return [];
|
|
6150
6154
|
}
|
|
6151
|
-
const meta =
|
|
6155
|
+
const meta = { ...analysis.meta, ...resolution };
|
|
6152
6156
|
const fac = compileNgFactoryDefField(toFactoryMetadata(meta, FactoryTarget3.Component));
|
|
6153
6157
|
const def = compileComponentFromMetadata(meta, pool, makeBindingParser2());
|
|
6154
6158
|
const classMetadata = analysis.classMetadata !== null ? compileClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
@@ -6164,7 +6168,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6164
6168
|
isInline: analysis.template.declaration.isInline,
|
|
6165
6169
|
inlineTemplateLiteralExpression: analysis.template.sourceMapping.type === "direct" ? new WrappedNodeExpr7(analysis.template.sourceMapping.node) : null
|
|
6166
6170
|
};
|
|
6167
|
-
const meta =
|
|
6171
|
+
const meta = { ...analysis.meta, ...resolution };
|
|
6168
6172
|
const fac = compileDeclareFactory(toFactoryMetadata(meta, FactoryTarget3.Component));
|
|
6169
6173
|
const def = compileDeclareComponentFromMetadata(meta, analysis.template, templateInfo);
|
|
6170
6174
|
const classMetadata = analysis.classMetadata !== null ? compileDeclareClassMetadata3(analysis.classMetadata).toStmt() : null;
|
|
@@ -6211,7 +6215,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
|
|
|
6211
6215
|
return diagnostics;
|
|
6212
6216
|
}
|
|
6213
6217
|
|
|
6214
|
-
// bazel-out/
|
|
6218
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
|
|
6215
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";
|
|
6216
6220
|
import ts25 from "typescript";
|
|
6217
6221
|
var InjectableDecoratorHandler = class {
|
|
@@ -6269,7 +6273,7 @@ var InjectableDecoratorHandler = class {
|
|
|
6269
6273
|
const results = [];
|
|
6270
6274
|
if (analysis.needsFactory) {
|
|
6271
6275
|
const meta = analysis.meta;
|
|
6272
|
-
const factoryRes = compileFactoryFn(toFactoryMetadata(
|
|
6276
|
+
const factoryRes = compileFactoryFn(toFactoryMetadata({ ...meta, deps: analysis.ctorDeps }, FactoryTarget4.Injectable));
|
|
6273
6277
|
if (analysis.classMetadata !== null) {
|
|
6274
6278
|
factoryRes.statements.push(compileClassMetadataFn(analysis.classMetadata).toStmt());
|
|
6275
6279
|
}
|
|
@@ -6411,7 +6415,7 @@ function getDep(dep, reflector) {
|
|
|
6411
6415
|
return meta;
|
|
6412
6416
|
}
|
|
6413
6417
|
|
|
6414
|
-
// bazel-out/
|
|
6418
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
|
|
6415
6419
|
import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
|
|
6416
6420
|
import ts26 from "typescript";
|
|
6417
6421
|
var PipeSymbol = class extends SemanticSymbol {
|
|
@@ -6593,4 +6597,4 @@ export {
|
|
|
6593
6597
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6594
6598
|
* found in the LICENSE file at https://angular.io/license
|
|
6595
6599
|
*/
|
|
6596
|
-
//# sourceMappingURL=chunk-
|
|
6600
|
+
//# sourceMappingURL=chunk-KPEPSPYQ.js.map
|