@angular/compiler-cli 16.0.0-next.5 → 16.0.0-next.7

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.
Files changed (48) hide show
  1. package/bundles/{chunk-C4B5W2XC.js → chunk-2G3UVWBI.js} +8 -8
  2. package/bundles/{chunk-O6RGCXNH.js → chunk-5B7NBQNN.js} +5 -5
  3. package/bundles/{chunk-B6WD2R2T.js → chunk-7RPZKH3B.js} +21 -21
  4. package/bundles/{chunk-MNUHP7AS.js → chunk-BC53B7EF.js} +5 -5
  5. package/bundles/{chunk-LYJKWJUC.js → chunk-CF2CT7RQ.js} +3 -3
  6. package/bundles/{chunk-VFEPUUWJ.js → chunk-EPXSTYJI.js} +94 -94
  7. package/bundles/{chunk-VFEPUUWJ.js.map → chunk-EPXSTYJI.js.map} +1 -1
  8. package/bundles/{chunk-TBUSSXUA.js → chunk-K2U2VZ7S.js} +7 -7
  9. package/bundles/{chunk-76ZWV2KR.js → chunk-OKYKHPES.js} +31 -38
  10. package/bundles/chunk-OKYKHPES.js.map +6 -0
  11. package/bundles/{chunk-EKTJ7622.js → chunk-OULZQUKT.js} +7 -7
  12. package/bundles/{chunk-SY7FDL66.js → chunk-QELUO2L4.js} +114 -271
  13. package/bundles/chunk-QELUO2L4.js.map +6 -0
  14. package/bundles/{chunk-QQGJEWBQ.js → chunk-TCPBYER2.js} +8 -47
  15. package/bundles/chunk-TCPBYER2.js.map +6 -0
  16. package/bundles/{chunk-7PCPPTTO.js → chunk-URH5LEAG.js} +5 -5
  17. package/bundles/index.js +13 -13
  18. package/bundles/linker/babel/index.js +13 -13
  19. package/bundles/linker/index.js +5 -5
  20. package/bundles/private/bazel.js +1 -1
  21. package/bundles/private/localize.js +3 -3
  22. package/bundles/private/migrations.js +6 -6
  23. package/bundles/private/tooling.js +4 -4
  24. package/bundles/src/bin/ng_xi18n.js +11 -11
  25. package/bundles/src/bin/ngc.js +9 -9
  26. package/bundles_metadata.json +1 -1
  27. package/package.json +2 -2
  28. package/src/ngtsc/annotations/common/src/references_registry.d.ts +1 -3
  29. package/src/ngtsc/annotations/common/src/util.d.ts +2 -2
  30. package/src/ngtsc/annotations/directive/src/handler.d.ts +1 -2
  31. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +0 -3
  32. package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +0 -2
  33. package/src/ngtsc/reflection/src/host.d.ts +13 -178
  34. package/src/ngtsc/reflection/src/typescript.d.ts +0 -3
  35. package/src/ngtsc/transform/src/compilation.d.ts +5 -6
  36. package/bundles/chunk-76ZWV2KR.js.map +0 -6
  37. package/bundles/chunk-QQGJEWBQ.js.map +0 -6
  38. package/bundles/chunk-SY7FDL66.js.map +0 -6
  39. package/src/ngtsc/partial_evaluator/src/known_declaration.d.ts +0 -18
  40. package/src/ngtsc/partial_evaluator/src/ts_helpers.d.ts +0 -21
  41. /package/bundles/{chunk-C4B5W2XC.js.map → chunk-2G3UVWBI.js.map} +0 -0
  42. /package/bundles/{chunk-O6RGCXNH.js.map → chunk-5B7NBQNN.js.map} +0 -0
  43. /package/bundles/{chunk-B6WD2R2T.js.map → chunk-7RPZKH3B.js.map} +0 -0
  44. /package/bundles/{chunk-MNUHP7AS.js.map → chunk-BC53B7EF.js.map} +0 -0
  45. /package/bundles/{chunk-LYJKWJUC.js.map → chunk-CF2CT7RQ.js.map} +0 -0
  46. /package/bundles/{chunk-TBUSSXUA.js.map → chunk-K2U2VZ7S.js.map} +0 -0
  47. /package/bundles/{chunk-EKTJ7622.js.map → chunk-OULZQUKT.js.map} +0 -0
  48. /package/bundles/{chunk-7PCPPTTO.js.map → chunk-URH5LEAG.js.map} +0 -0
@@ -4,21 +4,18 @@
4
4
 
5
5
  import {
6
6
  ClassMemberKind,
7
- Decorator,
8
- KnownDeclaration,
9
7
  filterToMembersWithDecorator,
10
- isConcreteDeclaration,
11
8
  isNamedClassDeclaration,
12
9
  reflectObjectLiteral,
13
10
  reflectTypeEntityToDeclaration,
14
11
  typeNodeToValueExpr
15
- } from "./chunk-QQGJEWBQ.js";
12
+ } from "./chunk-TCPBYER2.js";
16
13
  import {
17
14
  ImportManager,
18
15
  translateExpression,
19
16
  translateStatement,
20
17
  translateType
21
- } from "./chunk-C4B5W2XC.js";
18
+ } from "./chunk-2G3UVWBI.js";
22
19
  import {
23
20
  ErrorCode,
24
21
  FatalDiagnosticError,
@@ -35,18 +32,18 @@ import {
35
32
  makeRelatedInformation,
36
33
  nodeDebugInfo,
37
34
  nodeNameForError
38
- } from "./chunk-B6WD2R2T.js";
35
+ } from "./chunk-7RPZKH3B.js";
39
36
  import {
40
37
  PerfEvent,
41
38
  PerfPhase
42
- } from "./chunk-7PCPPTTO.js";
39
+ } from "./chunk-URH5LEAG.js";
43
40
  import {
44
41
  absoluteFrom,
45
42
  absoluteFromSourceFile,
46
43
  relative
47
- } from "./chunk-TBUSSXUA.js";
44
+ } from "./chunk-K2U2VZ7S.js";
48
45
 
49
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
46
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
50
47
  import { ExternalExpr, ParseLocation, ParseSourceFile, ParseSourceSpan, ReadPropExpr, WrappedNodeExpr } from "@angular/compiler";
51
48
  import ts from "typescript";
52
49
  function valueReferenceToExpression(valueRef) {
@@ -68,10 +65,10 @@ function valueReferenceToExpression(valueRef) {
68
65
  return importExpr;
69
66
  }
70
67
  }
71
- function toR3Reference(origin, valueRef, typeRef, valueContext, typeContext, refEmitter) {
72
- const emittedValueRef = refEmitter.emit(valueRef, valueContext);
68
+ function toR3Reference(origin, ref, context, refEmitter) {
69
+ const emittedValueRef = refEmitter.emit(ref, context);
73
70
  assertSuccessfulReferenceEmit(emittedValueRef, origin, "class");
74
- const emittedTypeRef = refEmitter.emit(typeRef, typeContext, ImportFlags.ForceNewImport | ImportFlags.AllowTypeImports);
71
+ const emittedTypeRef = refEmitter.emit(ref, context, ImportFlags.ForceNewImport | ImportFlags.AllowTypeImports);
75
72
  assertSuccessfulReferenceEmit(emittedTypeRef, origin, "class");
76
73
  return {
77
74
  value: emittedValueRef.expression,
@@ -225,9 +222,8 @@ function resolveProvidersRequiringFactory(rawProviders, reflector, evaluator) {
225
222
  return providers;
226
223
  }
227
224
  function wrapTypeReference(reflector, clazz) {
228
- const dtsClass = reflector.getDtsDeclaration(clazz);
229
225
  const value = new WrappedNodeExpr(clazz.name);
230
- const type = dtsClass !== null && isNamedClassDeclaration(dtsClass) ? new WrappedNodeExpr(dtsClass.name) : value;
226
+ const type = value;
231
227
  return { value, type };
232
228
  }
233
229
  function createSourceSpan(node) {
@@ -257,7 +253,6 @@ function toFactoryMetadata(meta, target) {
257
253
  return {
258
254
  name: meta.name,
259
255
  type: meta.type,
260
- internalType: meta.internalType,
261
256
  typeArgumentCount: meta.typeArgumentCount,
262
257
  deps: meta.deps,
263
258
  target
@@ -285,7 +280,7 @@ function isAbstractClassDeclaration(clazz) {
285
280
  return ts.canHaveModifiers(clazz) && clazz.modifiers !== void 0 ? clazz.modifiers.some((mod) => mod.kind === ts.SyntaxKind.AbstractKeyword) : false;
286
281
  }
287
282
 
288
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
283
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
289
284
  var DynamicValue = class {
290
285
  constructor(node, reason, code) {
291
286
  this.node = node;
@@ -375,10 +370,10 @@ var DynamicValue = class {
375
370
  }
376
371
  };
377
372
 
378
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
373
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
379
374
  import ts2 from "typescript";
380
375
 
381
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
376
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
382
377
  var ResolvedModule = class {
383
378
  constructor(exports, evaluate) {
384
379
  this.exports = exports;
@@ -408,7 +403,7 @@ var EnumValue = class {
408
403
  var KnownFn = class {
409
404
  };
410
405
 
411
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
406
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
412
407
  var ArraySliceBuiltinFn = class extends KnownFn {
413
408
  constructor(lhs) {
414
409
  super();
@@ -459,111 +454,15 @@ var StringConcatBuiltinFn = class extends KnownFn {
459
454
  return result;
460
455
  }
461
456
  };
462
- var ObjectAssignBuiltinFn = class extends KnownFn {
463
- evaluate(node, args) {
464
- if (args.length === 0) {
465
- return DynamicValue.fromUnsupportedSyntax(node);
466
- }
467
- for (const arg of args) {
468
- if (arg instanceof DynamicValue) {
469
- return DynamicValue.fromDynamicInput(node, arg);
470
- } else if (!(arg instanceof Map)) {
471
- return DynamicValue.fromUnsupportedSyntax(node);
472
- }
473
- }
474
- const [target, ...sources] = args;
475
- for (const source of sources) {
476
- source.forEach((value, key) => target.set(key, value));
477
- }
478
- return target;
479
- }
480
- };
481
457
 
482
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/ts_helpers.mjs
483
- var AssignHelperFn = class extends ObjectAssignBuiltinFn {
484
- };
485
- var SpreadHelperFn = class extends KnownFn {
486
- evaluate(node, args) {
487
- const result = [];
488
- for (const arg of args) {
489
- if (arg instanceof DynamicValue) {
490
- result.push(DynamicValue.fromDynamicInput(node, arg));
491
- } else if (Array.isArray(arg)) {
492
- result.push(...arg);
493
- } else {
494
- result.push(arg);
495
- }
496
- }
497
- return result;
498
- }
499
- };
500
- var SpreadArrayHelperFn = class extends KnownFn {
501
- evaluate(node, args) {
502
- if (args.length !== 2 && args.length !== 3) {
503
- return DynamicValue.fromUnknown(node);
504
- }
505
- const [to, from] = args;
506
- if (to instanceof DynamicValue) {
507
- return DynamicValue.fromDynamicInput(node, to);
508
- } else if (from instanceof DynamicValue) {
509
- return DynamicValue.fromDynamicInput(node, from);
510
- }
511
- if (!Array.isArray(to)) {
512
- return DynamicValue.fromInvalidExpressionType(node, to);
513
- } else if (!Array.isArray(from)) {
514
- return DynamicValue.fromInvalidExpressionType(node, from);
515
- }
516
- return to.concat(from);
517
- }
518
- };
519
- var ReadHelperFn = class extends KnownFn {
520
- evaluate(node, args) {
521
- if (args.length !== 1) {
522
- return DynamicValue.fromUnknown(node);
523
- }
524
- const [value] = args;
525
- if (value instanceof DynamicValue) {
526
- return DynamicValue.fromDynamicInput(node, value);
527
- }
528
- if (!Array.isArray(value)) {
529
- return DynamicValue.fromInvalidExpressionType(node, value);
530
- }
531
- return value;
532
- }
533
- };
534
-
535
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/known_declaration.mjs
536
- var jsGlobalObjectValue = /* @__PURE__ */ new Map([["assign", new ObjectAssignBuiltinFn()]]);
537
- var assignTsHelperFn = new AssignHelperFn();
538
- var spreadTsHelperFn = new SpreadHelperFn();
539
- var spreadArrayTsHelperFn = new SpreadArrayHelperFn();
540
- var readTsHelperFn = new ReadHelperFn();
541
- function resolveKnownDeclaration(decl) {
542
- switch (decl) {
543
- case KnownDeclaration.JsGlobalObject:
544
- return jsGlobalObjectValue;
545
- case KnownDeclaration.TsHelperAssign:
546
- return assignTsHelperFn;
547
- case KnownDeclaration.TsHelperSpread:
548
- case KnownDeclaration.TsHelperSpreadArrays:
549
- return spreadTsHelperFn;
550
- case KnownDeclaration.TsHelperSpreadArray:
551
- return spreadArrayTsHelperFn;
552
- case KnownDeclaration.TsHelperRead:
553
- return readTsHelperFn;
554
- default:
555
- throw new Error(`Cannot resolve known declaration. Received: ${KnownDeclaration[decl]}.`);
556
- }
557
- }
558
-
559
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
458
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
560
459
  var SyntheticValue = class {
561
460
  constructor(value) {
562
461
  this.value = value;
563
462
  }
564
463
  };
565
464
 
566
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
465
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
567
466
  function literalBinaryOp(op) {
568
467
  return { op, literal: true };
569
468
  }
@@ -729,13 +628,8 @@ var StaticInterpreter = class {
729
628
  return DynamicValue.fromUnknownIdentifier(node);
730
629
  }
731
630
  }
732
- if (decl.known !== null) {
733
- return resolveKnownDeclaration(decl.known);
734
- } else if (isConcreteDeclaration(decl) && decl.identity !== null && decl.identity.kind === 0) {
735
- return this.getResolvedEnum(decl.node, decl.identity.enumMembers, context);
736
- }
737
631
  const declContext = { ...context, ...joinModuleContext(context, node, decl) };
738
- const result = this.visitAmbiguousDeclaration(decl, declContext);
632
+ const result = this.visitDeclaration(decl.node, declContext);
739
633
  if (result instanceof Reference) {
740
634
  if (!result.synthetic) {
741
635
  result.addIdentifier(node);
@@ -823,19 +717,13 @@ var StaticInterpreter = class {
823
717
  return DynamicValue.fromUnknown(node);
824
718
  }
825
719
  return new ResolvedModule(declarations, (decl) => {
826
- if (decl.known !== null) {
827
- return resolveKnownDeclaration(decl.known);
828
- }
829
720
  const declContext = {
830
721
  ...context,
831
722
  ...joinModuleContext(context, node, decl)
832
723
  };
833
- return this.visitAmbiguousDeclaration(decl, declContext);
724
+ return this.visitDeclaration(decl.node, declContext);
834
725
  });
835
726
  }
836
- visitAmbiguousDeclaration(decl, declContext) {
837
- return decl.kind === 1 && decl.implementation !== void 0 && !isDeclaration(decl.implementation) ? this.visitExpression(decl.implementation, declContext) : this.visitDeclaration(decl.node, declContext);
838
- }
839
727
  accessHelper(node, lhs, rhs, context) {
840
728
  const strIndex = `${rhs}`;
841
729
  if (lhs instanceof Map) {
@@ -1066,18 +954,6 @@ var StaticInterpreter = class {
1066
954
  return void 0;
1067
955
  }
1068
956
  }
1069
- getResolvedEnum(node, enumMembers, context) {
1070
- const enumRef = this.getReference(node, context);
1071
- const map = /* @__PURE__ */ new Map();
1072
- enumMembers.forEach((member) => {
1073
- const name = this.stringNameFromPropertyName(member.name, context);
1074
- if (name !== void 0) {
1075
- const resolved = this.visit(member.initializer, context);
1076
- map.set(name, new EnumValue(enumRef, name, resolved));
1077
- }
1078
- });
1079
- return map;
1080
- }
1081
957
  getReference(node, context) {
1082
958
  return new Reference(node, owningModule(context));
1083
959
  }
@@ -1111,7 +987,7 @@ var StaticInterpreter = class {
1111
987
  return DynamicValue.fromUnknownIdentifier(node.exprName);
1112
988
  }
1113
989
  const declContext = { ...context, ...joinModuleContext(context, node, decl) };
1114
- return this.visitAmbiguousDeclaration(decl, declContext);
990
+ return this.visitDeclaration(decl.node, declContext);
1115
991
  }
1116
992
  };
1117
993
  function isFunctionOrMethodReference(ref) {
@@ -1164,7 +1040,7 @@ function owningModule(context, override = null) {
1164
1040
  }
1165
1041
  }
1166
1042
 
1167
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1043
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1168
1044
  var PartialEvaluator = class {
1169
1045
  constructor(host, checker, dependencyTracker) {
1170
1046
  this.host = host;
@@ -1184,7 +1060,7 @@ var PartialEvaluator = class {
1184
1060
  }
1185
1061
  };
1186
1062
 
1187
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1063
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1188
1064
  import ts3 from "typescript";
1189
1065
  function describeResolvedType(value, maxDepth = 1) {
1190
1066
  var _a, _b;
@@ -1314,7 +1190,7 @@ function getContainerNode(node) {
1314
1190
  return node.getSourceFile();
1315
1191
  }
1316
1192
 
1317
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1193
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1318
1194
  import { LiteralExpr, WrappedNodeExpr as WrappedNodeExpr2 } from "@angular/compiler";
1319
1195
  import ts4 from "typescript";
1320
1196
  function getConstructorDependencies(clazz, reflector, isCore) {
@@ -1336,7 +1212,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
1336
1212
  const name = isCore || dec.import === null ? dec.name : dec.import.name;
1337
1213
  if (name === "Inject") {
1338
1214
  if (dec.args === null || dec.args.length !== 1) {
1339
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(dec), `Unexpected number of arguments to @Inject().`);
1215
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, dec.node, `Unexpected number of arguments to @Inject().`);
1340
1216
  }
1341
1217
  token = new WrappedNodeExpr2(dec.args[0]);
1342
1218
  } else if (name === "Optional") {
@@ -1349,7 +1225,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
1349
1225
  host = true;
1350
1226
  } else if (name === "Attribute") {
1351
1227
  if (dec.args === null || dec.args.length !== 1) {
1352
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(dec), `Unexpected number of arguments to @Attribute().`);
1228
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, dec.node, `Unexpected number of arguments to @Attribute().`);
1353
1229
  }
1354
1230
  const attributeName = dec.args[0];
1355
1231
  token = new WrappedNodeExpr2(attributeName);
@@ -1359,7 +1235,7 @@ function getConstructorDependencies(clazz, reflector, isCore) {
1359
1235
  attributeNameType = new WrappedNodeExpr2(ts4.factory.createKeywordTypeNode(ts4.SyntaxKind.UnknownKeyword));
1360
1236
  }
1361
1237
  } else {
1362
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_UNEXPECTED, Decorator.nodeForError(dec), `Unexpected decorator ${name} on parameter.`);
1238
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_UNEXPECTED, dec.node, `Unexpected decorator ${name} on parameter.`);
1363
1239
  }
1364
1240
  });
1365
1241
  if (token === null) {
@@ -1458,10 +1334,10 @@ function createUnsuitableInjectionTokenError(clazz, error) {
1458
1334
  return new FatalDiagnosticError(ErrorCode.PARAM_MISSING_TOKEN, param.nameNode, chain, hints);
1459
1335
  }
1460
1336
 
1461
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1337
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1462
1338
  import ts7 from "typescript";
1463
1339
 
1464
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1340
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1465
1341
  var MetaKind;
1466
1342
  (function(MetaKind2) {
1467
1343
  MetaKind2[MetaKind2["Directive"] = 0] = "Directive";
@@ -1474,10 +1350,10 @@ var MatchSource;
1474
1350
  MatchSource2[MatchSource2["HostDirective"] = 1] = "HostDirective";
1475
1351
  })(MatchSource || (MatchSource = {}));
1476
1352
 
1477
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1353
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1478
1354
  import ts6 from "typescript";
1479
1355
 
1480
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1356
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1481
1357
  var ClassPropertyMapping = class {
1482
1358
  constructor(forwardMap) {
1483
1359
  this.forwardMap = forwardMap;
@@ -1555,7 +1431,7 @@ function reverseMapFromForwardMap(forwardMap) {
1555
1431
  return reverseMap;
1556
1432
  }
1557
1433
 
1558
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1434
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1559
1435
  import ts5 from "typescript";
1560
1436
  function extractReferencesFromType(checker, def, bestGuessOwningModule) {
1561
1437
  if (!ts5.isTupleTypeNode(def)) {
@@ -1737,7 +1613,7 @@ function hasInjectableFields(clazz, host) {
1737
1613
  return members.some(({ isStatic, name }) => isStatic && (name === "\u0275prov" || name === "\u0275fac"));
1738
1614
  }
1739
1615
 
1740
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1616
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1741
1617
  var DtsMetadataReader = class {
1742
1618
  constructor(checker, reflector) {
1743
1619
  this.checker = checker;
@@ -1905,7 +1781,7 @@ function readHostDirectivesType(checker, type, bestGuessOwningModule) {
1905
1781
  return result.length > 0 ? result : null;
1906
1782
  }
1907
1783
 
1908
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1784
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1909
1785
  function flattenInheritedDirectiveMetadata(reader, dir) {
1910
1786
  const topMeta = reader.getDirectiveMetadata(dir);
1911
1787
  if (topMeta === null) {
@@ -1963,7 +1839,7 @@ function flattenInheritedDirectiveMetadata(reader, dir) {
1963
1839
  };
1964
1840
  }
1965
1841
 
1966
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1842
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1967
1843
  var LocalMetadataRegistry = class {
1968
1844
  constructor() {
1969
1845
  this.directives = /* @__PURE__ */ new Map();
@@ -2020,7 +1896,7 @@ var CompoundMetadataRegistry = class {
2020
1896
  }
2021
1897
  };
2022
1898
 
2023
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
1899
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
2024
1900
  var ResourceRegistry = class {
2025
1901
  constructor() {
2026
1902
  this.externalTemplateToComponentsMap = /* @__PURE__ */ new Map();
@@ -2085,7 +1961,7 @@ var ResourceRegistry = class {
2085
1961
  }
2086
1962
  };
2087
1963
 
2088
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
1964
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
2089
1965
  var EMPTY_ARRAY = [];
2090
1966
  var HostDirectivesResolver = class {
2091
1967
  constructor(metaReader) {
@@ -2146,7 +2022,7 @@ function resolveOutput(bindingName) {
2146
2022
  return bindingName;
2147
2023
  }
2148
2024
 
2149
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
2025
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
2150
2026
  function makeDuplicateDeclarationError(node, data, kind) {
2151
2027
  const context = [];
2152
2028
  for (const decl of data) {
@@ -2342,7 +2218,7 @@ function getInheritedUndecoratedCtorDiagnostic(node, baseClass, kind) {
2342
2218
  return makeDiagnostic(ErrorCode.DIRECTIVE_INHERITS_UNDECORATED_CTOR, node.name, `The ${kind.toLowerCase()} ${node.name.text} inherits its constructor from ${baseClassName}, but the latter does not have an Angular decorator of its own. Dependency injection will not be able to resolve the parameters of ${baseClassName}'s constructor. Either add a @${baseNeedsDecorator} decorator to ${baseClassName}, or add an explicit constructor to ${node.name.text}.`);
2343
2219
  }
2344
2220
 
2345
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
2221
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
2346
2222
  import ts8 from "typescript";
2347
2223
  function resolveEnumValue(evaluator, metadata, field, enumSymbolName) {
2348
2224
  let resolved = null;
@@ -2365,7 +2241,7 @@ function resolveLiteral(decorator, literalCache) {
2365
2241
  return literalCache.get(decorator);
2366
2242
  }
2367
2243
  if (decorator.args === null || decorator.args.length !== 1) {
2368
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `Incorrect number of arguments to @${decorator.name} decorator`);
2244
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `Incorrect number of arguments to @${decorator.name} decorator`);
2369
2245
  }
2370
2246
  const meta = unwrapExpression(decorator.args[0]);
2371
2247
  if (!ts8.isObjectLiteralExpression(meta)) {
@@ -2375,7 +2251,7 @@ function resolveLiteral(decorator, literalCache) {
2375
2251
  return meta;
2376
2252
  }
2377
2253
 
2378
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
2254
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
2379
2255
  import { compileDeclareFactoryFunction, compileFactoryFunction } from "@angular/compiler";
2380
2256
  function compileNgFactoryDefField(metadata) {
2381
2257
  const res = compileFactoryFunction(metadata);
@@ -2386,7 +2262,7 @@ function compileDeclareFactory(metadata) {
2386
2262
  return { name: "\u0275fac", initializer: res.expression, statements: res.statements, type: res.type };
2387
2263
  }
2388
2264
 
2389
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
2265
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
2390
2266
  var InjectableClassRegistry = class {
2391
2267
  constructor(host, isCore) {
2392
2268
  this.host = host;
@@ -2412,14 +2288,14 @@ var InjectableClassRegistry = class {
2412
2288
  }
2413
2289
  };
2414
2290
 
2415
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
2291
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
2416
2292
  import { FunctionExpr, LiteralArrayExpr, LiteralExpr as LiteralExpr2, literalMap, ReturnStatement, WrappedNodeExpr as WrappedNodeExpr3 } from "@angular/compiler";
2417
2293
  import ts9 from "typescript";
2418
2294
  function extractClassMetadata(clazz, reflection, isCore, annotateForClosureCompiler, angularDecoratorTransform = (dec) => dec) {
2419
2295
  if (!reflection.isClass(clazz)) {
2420
2296
  return null;
2421
2297
  }
2422
- const id = reflection.getAdjacentNameOfClass(clazz);
2298
+ const id = clazz.name;
2423
2299
  const classDecorators = reflection.getDecoratorsOfDeclaration(clazz);
2424
2300
  if (classDecorators === null) {
2425
2301
  return null;
@@ -2499,13 +2375,13 @@ function removeIdentifierReferences(node, name) {
2499
2375
  return result.transformed[0];
2500
2376
  }
2501
2377
 
2502
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
2378
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
2503
2379
  var NoopReferencesRegistry = class {
2504
2380
  add(source, ...references) {
2505
2381
  }
2506
2382
  };
2507
2383
 
2508
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
2384
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
2509
2385
  import { CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA } from "@angular/compiler";
2510
2386
  function extractSchemas(rawExpr, evaluator, context) {
2511
2387
  const schemas = [];
@@ -2535,11 +2411,11 @@ function extractSchemas(rawExpr, evaluator, context) {
2535
2411
  return schemas;
2536
2412
  }
2537
2413
 
2538
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
2414
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
2539
2415
  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";
2540
2416
  import ts24 from "typescript";
2541
2417
 
2542
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
2418
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
2543
2419
  import ts10 from "typescript";
2544
2420
  var SemanticSymbol = class {
2545
2421
  constructor(decl) {
@@ -2555,7 +2431,7 @@ function getSymbolIdentifier(decl) {
2555
2431
  return decl.name.text;
2556
2432
  }
2557
2433
 
2558
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
2434
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
2559
2435
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
2560
2436
  var OpaqueSymbol = class extends SemanticSymbol {
2561
2437
  isPublicApiAffected() {
@@ -2698,10 +2574,10 @@ function getImportPath(expr) {
2698
2574
  }
2699
2575
  }
2700
2576
 
2701
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2577
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2702
2578
  import ts11 from "typescript";
2703
2579
 
2704
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
2580
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
2705
2581
  function isSymbolEqual(a, b) {
2706
2582
  if (a.decl === b.decl) {
2707
2583
  return true;
@@ -2751,7 +2627,7 @@ function isSetEqual(a, b, equalityTester = referenceEquality) {
2751
2627
  return true;
2752
2628
  }
2753
2629
 
2754
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2630
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2755
2631
  function extractSemanticTypeParameters(node) {
2756
2632
  if (!ts11.isClassDeclaration(node) || node.typeParameters === void 0) {
2757
2633
  return null;
@@ -2771,14 +2647,14 @@ function isTypeParameterEqual(a, b) {
2771
2647
  return a.hasGenericTypeBound === b.hasGenericTypeBound;
2772
2648
  }
2773
2649
 
2774
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
2650
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
2775
2651
  var ComponentScopeKind;
2776
2652
  (function(ComponentScopeKind2) {
2777
2653
  ComponentScopeKind2[ComponentScopeKind2["NgModule"] = 0] = "NgModule";
2778
2654
  ComponentScopeKind2[ComponentScopeKind2["Standalone"] = 1] = "Standalone";
2779
2655
  })(ComponentScopeKind || (ComponentScopeKind = {}));
2780
2656
 
2781
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
2657
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
2782
2658
  var CompoundComponentScopeReader = class {
2783
2659
  constructor(readers) {
2784
2660
  this.readers = readers;
@@ -2803,7 +2679,7 @@ var CompoundComponentScopeReader = class {
2803
2679
  }
2804
2680
  };
2805
2681
 
2806
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
2682
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
2807
2683
  var MetadataDtsModuleScopeResolver = class {
2808
2684
  constructor(dtsMetaReader, aliasingHost) {
2809
2685
  this.dtsMetaReader = dtsMetaReader;
@@ -2879,11 +2755,11 @@ var MetadataDtsModuleScopeResolver = class {
2879
2755
  }
2880
2756
  };
2881
2757
 
2882
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2758
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2883
2759
  import { ExternalExpr as ExternalExpr3 } from "@angular/compiler";
2884
2760
  import ts12 from "typescript";
2885
2761
 
2886
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
2762
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
2887
2763
  function getDiagnosticNode(ref, rawExpr) {
2888
2764
  return rawExpr !== null ? ref.getOriginForDiagnostics(rawExpr) : ref.node.name;
2889
2765
  }
@@ -2906,7 +2782,7 @@ function makeUnknownComponentImportDiagnostic(ref, rawExpr) {
2906
2782
  return makeDiagnostic(ErrorCode.COMPONENT_UNKNOWN_IMPORT, getDiagnosticNode(ref, rawExpr), `Component imports must be standalone components, directives, pipes, or must be NgModules.`);
2907
2783
  }
2908
2784
 
2909
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2785
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2910
2786
  var LocalModuleScopeRegistry = class {
2911
2787
  constructor(localReader, fullReader, dependencyScopeReader, refEmitter, aliasingHost) {
2912
2788
  this.localReader = localReader;
@@ -3210,9 +3086,9 @@ function invalidRef(decl, rawExpr, type) {
3210
3086
  const annotationType = type === "import" ? "@NgModule" : "Angular";
3211
3087
  relatedMessage = `Is it missing an ${annotationType} annotation?`;
3212
3088
  } else if (sf.fileName.indexOf("node_modules") !== -1) {
3213
- relatedMessage = `This likely means that the library${library} which declares ${decl.debugName} has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.`;
3089
+ relatedMessage = `This likely means that the library${library} which declares ${decl.debugName} is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.`;
3214
3090
  } else {
3215
- relatedMessage = `This likely means that the dependency${library} which declares ${decl.debugName} has not been processed correctly by ngcc.`;
3091
+ relatedMessage = `This likely means that the dependency${library} which declares ${decl.debugName} is not compatible with Angular Ivy.`;
3216
3092
  }
3217
3093
  return makeDiagnostic(code, getDiagnosticNode(decl, rawExpr), message, [makeRelatedInformation(decl.node.name, relatedMessage)]);
3218
3094
  }
@@ -3245,7 +3121,7 @@ function reexportCollision(module, refA, refB) {
3245
3121
  ]);
3246
3122
  }
3247
3123
 
3248
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
3124
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
3249
3125
  import { CssSelector, SelectorMatcher } from "@angular/compiler";
3250
3126
  import ts13 from "typescript";
3251
3127
  var TypeCheckScopeRegistry = class {
@@ -3314,7 +3190,7 @@ var TypeCheckScopeRegistry = class {
3314
3190
  }
3315
3191
  };
3316
3192
 
3317
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3193
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3318
3194
  var CompilationMode;
3319
3195
  (function(CompilationMode2) {
3320
3196
  CompilationMode2[CompilationMode2["FULL"] = 0] = "FULL";
@@ -3332,7 +3208,7 @@ var HandlerFlags;
3332
3208
  HandlerFlags2[HandlerFlags2["FULL_INHERITANCE"] = 1] = "FULL_INHERITANCE";
3333
3209
  })(HandlerFlags || (HandlerFlags = {}));
3334
3210
 
3335
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3211
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3336
3212
  import ts14 from "typescript";
3337
3213
  function aliasTransformFactory(exportStatements) {
3338
3214
  return () => {
@@ -3355,10 +3231,10 @@ function aliasTransformFactory(exportStatements) {
3355
3231
  };
3356
3232
  }
3357
3233
 
3358
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3234
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3359
3235
  import ts15 from "typescript";
3360
3236
 
3361
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3237
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3362
3238
  var TraitState;
3363
3239
  (function(TraitState2) {
3364
3240
  TraitState2[TraitState2["Pending"] = 0] = "Pending";
@@ -3413,7 +3289,7 @@ var TraitImpl = class {
3413
3289
  }
3414
3290
  };
3415
3291
 
3416
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3292
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3417
3293
  var TraitCompiler = class {
3418
3294
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
3419
3295
  this.handlers = handlers;
@@ -3481,16 +3357,6 @@ var TraitCompiler = class {
3481
3357
  return null;
3482
3358
  }
3483
3359
  }
3484
- recordsFor(sf) {
3485
- if (!this.fileToClasses.has(sf)) {
3486
- return null;
3487
- }
3488
- const records = [];
3489
- for (const clazz of this.fileToClasses.get(sf)) {
3490
- records.push(this.classes.get(clazz));
3491
- }
3492
- return records;
3493
- }
3494
3360
  getAnalyzedRecords() {
3495
3361
  const result = /* @__PURE__ */ new Map();
3496
3362
  for (const [sf, classes] of this.fileToClasses) {
@@ -3857,10 +3723,10 @@ function containsErrors(diagnostics) {
3857
3723
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
3858
3724
  }
3859
3725
 
3860
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3726
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3861
3727
  import ts17 from "typescript";
3862
3728
 
3863
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3729
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3864
3730
  import ts16 from "typescript";
3865
3731
  function addImports(importManager, sf, extraStatements = []) {
3866
3732
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
@@ -3896,7 +3762,7 @@ function isImportStatement(stmt) {
3896
3762
  return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
3897
3763
  }
3898
3764
 
3899
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3765
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3900
3766
  var DtsTransformRegistry = class {
3901
3767
  constructor() {
3902
3768
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -4041,11 +3907,11 @@ function markForEmitAsSingleLine(node) {
4041
3907
  ts17.forEachChild(node, markForEmitAsSingleLine);
4042
3908
  }
4043
3909
 
4044
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3910
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4045
3911
  import { ConstantPool } from "@angular/compiler";
4046
3912
  import ts19 from "typescript";
4047
3913
 
4048
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
3914
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
4049
3915
  import ts18 from "typescript";
4050
3916
  function visit(node, visitor, context) {
4051
3917
  return visitor._visit(node, context);
@@ -4106,7 +3972,7 @@ var Visitor = class {
4106
3972
  }
4107
3973
  };
4108
3974
 
4109
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3975
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4110
3976
  var NO_DECORATORS = /* @__PURE__ */ new Set();
4111
3977
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
4112
3978
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -4314,10 +4180,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
4314
4180
  return array;
4315
4181
  }
4316
4182
 
4317
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4183
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4318
4184
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4319
4185
 
4320
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4186
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4321
4187
  import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
4322
4188
  import ts20 from "typescript";
4323
4189
  var EMPTY_OBJECT = {};
@@ -4332,7 +4198,7 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
4332
4198
  if (decorator === null || decorator.args === null || decorator.args.length === 0) {
4333
4199
  directive = /* @__PURE__ */ new Map();
4334
4200
  } else if (decorator.args.length !== 1) {
4335
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `Incorrect number of arguments to @${decorator.name} decorator`);
4201
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `Incorrect number of arguments to @${decorator.name} decorator`);
4336
4202
  } else {
4337
4203
  const meta = unwrapExpression(decorator.args[0]);
4338
4204
  if (!ts20.isObjectLiteralExpression(meta)) {
@@ -4402,7 +4268,6 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
4402
4268
  const usesInheritance = reflector.hasBaseClass(clazz);
4403
4269
  const sourceFile = clazz.getSourceFile();
4404
4270
  const type = wrapTypeReference(reflector, clazz);
4405
- const internalType = new WrappedNodeExpr4(reflector.getInternalNameOfClass(clazz));
4406
4271
  const rawHostDirectives = directive.get("hostDirectives") || null;
4407
4272
  const hostDirectives = rawHostDirectives === null ? null : extractHostDirectives(rawHostDirectives, evaluator);
4408
4273
  const metadata = {
@@ -4419,7 +4284,6 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
4419
4284
  selector,
4420
4285
  fullInheritance: !!(flags & HandlerFlags.FULL_INHERITANCE),
4421
4286
  type,
4422
- internalType,
4423
4287
  typeArgumentCount: reflector.getGenericArityOfClass(clazz) || 0,
4424
4288
  typeSourceSpan: createSourceSpan(clazz.name),
4425
4289
  usesInheritance,
@@ -4517,11 +4381,11 @@ function extractHostBindings(members, evaluator, coreModule, metadata) {
4517
4381
  let hostPropertyName = member.name;
4518
4382
  if (decorator.args !== null && decorator.args.length > 0) {
4519
4383
  if (decorator.args.length !== 1) {
4520
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `@HostBinding can have at most one argument, got ${decorator.args.length} argument(s)`);
4384
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `@HostBinding can have at most one argument, got ${decorator.args.length} argument(s)`);
4521
4385
  }
4522
4386
  const resolved = evaluator.evaluate(decorator.args[0]);
4523
4387
  if (typeof resolved !== "string") {
4524
- throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), resolved, `@HostBinding's argument must be a string`);
4388
+ throw createValueHasWrongTypeError(decorator.node, resolved, `@HostBinding's argument must be a string`);
4525
4389
  }
4526
4390
  hostPropertyName = resolved;
4527
4391
  }
@@ -4607,7 +4471,7 @@ function isStringArrayOrDie(value, name, node) {
4607
4471
  function queriesFromFields(fields, reflector, evaluator) {
4608
4472
  return fields.map(({ member, decorators }) => {
4609
4473
  const decorator = decorators[0];
4610
- const node = member.node || Decorator.nodeForError(decorator);
4474
+ const node = member.node || decorator.node;
4611
4475
  if (member.decorators.some((v) => v.name === "Input")) {
4612
4476
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_COLLISION, node, "Cannot combine @Input decorators with query decorators");
4613
4477
  }
@@ -4641,7 +4505,7 @@ function parseDecoratedFields(fields, evaluator, callback) {
4641
4505
  const fieldName = field.member.name;
4642
4506
  for (const decorator of field.decorators) {
4643
4507
  if (decorator.args != null && decorator.args.length > 1) {
4644
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `@${decorator.name} can have at most one argument, got ${decorator.args.length} argument(s)`);
4508
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `@${decorator.name} can have at most one argument, got ${decorator.args.length} argument(s)`);
4645
4509
  }
4646
4510
  const value = decorator.args != null && decorator.args.length > 0 ? evaluator.evaluate(decorator.args[0]) : null;
4647
4511
  callback(fieldName, value, decorator);
@@ -4695,7 +4559,7 @@ function parseInputFields(inputMembers, evaluator) {
4695
4559
  bindingPropertyName = typeof aliasInConfig === "string" ? aliasInConfig : classPropertyName;
4696
4560
  required = options.get("required") === true;
4697
4561
  } else {
4698
- throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
4562
+ throw createValueHasWrongTypeError(decorator.node, options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
4699
4563
  }
4700
4564
  inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required };
4701
4565
  });
@@ -4709,7 +4573,7 @@ function parseOutputFields(outputMembers, evaluator) {
4709
4573
  const outputs = {};
4710
4574
  parseDecoratedFields(outputMembers, evaluator, (fieldName, bindingPropertyName, decorator) => {
4711
4575
  if (bindingPropertyName != null && typeof bindingPropertyName !== "string") {
4712
- throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), bindingPropertyName, `@${decorator.name} decorator argument must resolve to a string`);
4576
+ throw createValueHasWrongTypeError(decorator.node, bindingPropertyName, `@${decorator.name} decorator argument must resolve to a string`);
4713
4577
  }
4714
4578
  outputs[fieldName] = bindingPropertyName != null ? bindingPropertyName : fieldName;
4715
4579
  });
@@ -4781,14 +4645,14 @@ function parseHostDirectivesMapping(field, resolvedValue, classReference, source
4781
4645
  }
4782
4646
  function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
4783
4647
  return {
4784
- directive: toR3Reference(hostDirective.directive.node, hostDirective.directive, hostDirective.directive, context, context, refEmitter),
4648
+ directive: toR3Reference(hostDirective.directive.node, hostDirective.directive, context, refEmitter),
4785
4649
  isForwardReference: hostDirective.isForwardReference,
4786
4650
  inputs: hostDirective.inputs || null,
4787
4651
  outputs: hostDirective.outputs || null
4788
4652
  };
4789
4653
  }
4790
4654
 
4791
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4655
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4792
4656
  var DirectiveSymbol = class extends SemanticSymbol {
4793
4657
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
4794
4658
  super(decl);
@@ -4868,7 +4732,7 @@ function isBaseClassEqual(current, previous) {
4868
4732
  return isSymbolEqual(current, previous);
4869
4733
  }
4870
4734
 
4871
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4735
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4872
4736
  var FIELD_DECORATORS = [
4873
4737
  "Input",
4874
4738
  "Output",
@@ -4890,7 +4754,7 @@ var LIFECYCLE_HOOKS = /* @__PURE__ */ new Set([
4890
4754
  "ngAfterContentChecked"
4891
4755
  ]);
4892
4756
  var DirectiveDecoratorHandler = class {
4893
- constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, compileUndecoratedClassesWithAngularFeatures, perf) {
4757
+ constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf) {
4894
4758
  this.reflector = reflector;
4895
4759
  this.evaluator = evaluator;
4896
4760
  this.metaRegistry = metaRegistry;
@@ -4902,7 +4766,6 @@ var DirectiveDecoratorHandler = class {
4902
4766
  this.strictCtorDeps = strictCtorDeps;
4903
4767
  this.semanticDepGraphUpdater = semanticDepGraphUpdater;
4904
4768
  this.annotateForClosureCompiler = annotateForClosureCompiler;
4905
- this.compileUndecoratedClassesWithAngularFeatures = compileUndecoratedClassesWithAngularFeatures;
4906
4769
  this.perf = perf;
4907
4770
  this.precedence = HandlerPrecedence.PRIMARY;
4908
4771
  this.name = DirectiveDecoratorHandler.name;
@@ -4918,7 +4781,7 @@ var DirectiveDecoratorHandler = class {
4918
4781
  }
4919
4782
  analyze(node, decorator, flags = HandlerFlags.NONE) {
4920
4783
  var _a;
4921
- if (this.compileUndecoratedClassesWithAngularFeatures === false && decorator === null) {
4784
+ if (decorator === null) {
4922
4785
  if (this.isCore) {
4923
4786
  return {};
4924
4787
  }
@@ -5027,11 +4890,11 @@ var DirectiveDecoratorHandler = class {
5027
4890
  }
5028
4891
  };
5029
4892
 
5030
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4893
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5031
4894
  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";
5032
4895
  import ts22 from "typescript";
5033
4896
 
5034
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
4897
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5035
4898
  import ts21 from "typescript";
5036
4899
  function createModuleWithProvidersResolver(reflector, isCore) {
5037
4900
  function _reflectModuleFromTypeParam(type, node) {
@@ -5098,7 +4961,7 @@ function isResolvedModuleWithProviders(sv) {
5098
4961
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
5099
4962
  }
5100
4963
 
5101
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4964
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5102
4965
  var NgModuleSymbol = class extends SemanticSymbol {
5103
4966
  constructor() {
5104
4967
  super(...arguments);
@@ -5180,7 +5043,7 @@ var NgModuleDecoratorHandler = class {
5180
5043
  this.perf.eventCount(PerfEvent.AnalyzeNgModule);
5181
5044
  const name = node.name.text;
5182
5045
  if (decorator.args === null || decorator.args.length > 1) {
5183
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), `Incorrect number of arguments to @NgModule decorator`);
5046
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `Incorrect number of arguments to @NgModule decorator`);
5184
5047
  }
5185
5048
  const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : ts22.factory.createObjectLiteralExpression([]);
5186
5049
  if (!ts22.isObjectLiteralExpression(meta)) {
@@ -5251,33 +5114,24 @@ var NgModuleDecoratorHandler = class {
5251
5114
  }
5252
5115
  }
5253
5116
  const valueContext = node.getSourceFile();
5254
- let typeContext = valueContext;
5255
- const typeNode = this.reflector.getDtsDeclaration(node);
5256
- if (typeNode !== null) {
5257
- typeContext = typeNode.getSourceFile();
5258
- }
5259
5117
  const exportedNodes = new Set(exportRefs.map((ref) => ref.node));
5260
5118
  const declarations = [];
5261
5119
  const exportedDeclarations = [];
5262
- const bootstrap = bootstrapRefs.map((bootstrap2) => this._toR3Reference(bootstrap2.getOriginForDiagnostics(meta, node.name), bootstrap2, valueContext, typeContext));
5120
+ const bootstrap = bootstrapRefs.map((bootstrap2) => this._toR3Reference(bootstrap2.getOriginForDiagnostics(meta, node.name), bootstrap2, valueContext));
5263
5121
  for (const ref of declarationRefs) {
5264
- const decl = this._toR3Reference(ref.getOriginForDiagnostics(meta, node.name), ref, valueContext, typeContext);
5122
+ const decl = this._toR3Reference(ref.getOriginForDiagnostics(meta, node.name), ref, valueContext);
5265
5123
  declarations.push(decl);
5266
5124
  if (exportedNodes.has(ref.node)) {
5267
5125
  exportedDeclarations.push(decl.type);
5268
5126
  }
5269
5127
  }
5270
- const imports = importRefs.map((imp) => this._toR3Reference(imp.getOriginForDiagnostics(meta, node.name), imp, valueContext, typeContext));
5271
- const exports = exportRefs.map((exp) => this._toR3Reference(exp.getOriginForDiagnostics(meta, node.name), exp, valueContext, typeContext));
5128
+ const imports = importRefs.map((imp) => this._toR3Reference(imp.getOriginForDiagnostics(meta, node.name), imp, valueContext));
5129
+ const exports = exportRefs.map((exp) => this._toR3Reference(exp.getOriginForDiagnostics(meta, node.name), exp, valueContext));
5272
5130
  const isForwardReference = (ref) => isExpressionForwardReference(ref.value, node.name, valueContext);
5273
5131
  const containsForwardDecls = bootstrap.some(isForwardReference) || declarations.some(isForwardReference) || imports.some(isForwardReference) || exports.some(isForwardReference);
5274
5132
  const type = wrapTypeReference(this.reflector, node);
5275
- const internalType = new WrappedNodeExpr6(this.reflector.getInternalNameOfClass(node));
5276
- const adjacentType = new WrappedNodeExpr6(this.reflector.getAdjacentNameOfClass(node));
5277
5133
  const ngModuleMetadata = {
5278
5134
  type,
5279
- internalType,
5280
- adjacentType,
5281
5135
  bootstrap,
5282
5136
  declarations,
5283
5137
  publicDeclarationTypes: this.onlyPublishPublicTypings ? exportedDeclarations : null,
@@ -5324,13 +5178,11 @@ var NgModuleDecoratorHandler = class {
5324
5178
  const injectorMetadata = {
5325
5179
  name,
5326
5180
  type,
5327
- internalType,
5328
5181
  providers: wrappedProviders
5329
5182
  };
5330
5183
  const factoryMetadata = {
5331
5184
  name,
5332
5185
  type,
5333
- internalType,
5334
5186
  typeArgumentCount: 0,
5335
5187
  deps: getValidConstructorDependencies(node, this.reflector, this.isCore),
5336
5188
  target: FactoryTarget2.NgModule
@@ -5529,16 +5381,11 @@ var NgModuleDecoratorHandler = class {
5529
5381
  ];
5530
5382
  return res;
5531
5383
  }
5532
- _toR3Reference(origin, valueRef, valueContext, typeContext) {
5384
+ _toR3Reference(origin, valueRef, valueContext) {
5533
5385
  if (valueRef.hasOwningModuleGuess) {
5534
- return toR3Reference(origin, valueRef, valueRef, valueContext, valueContext, this.refEmitter);
5386
+ return toR3Reference(origin, valueRef, valueContext, this.refEmitter);
5535
5387
  } else {
5536
- let typeRef = valueRef;
5537
- let typeNode = this.reflector.getDtsDeclaration(typeRef.node);
5538
- if (typeNode !== null && isNamedClassDeclaration(typeNode)) {
5539
- typeRef = new Reference(typeNode);
5540
- }
5541
- return toR3Reference(origin, valueRef, typeRef, valueContext, typeContext, this.refEmitter);
5388
+ return toR3Reference(origin, valueRef, valueContext, this.refEmitter);
5542
5389
  }
5543
5390
  }
5544
5391
  isClassDeclarationReference(ref) {
@@ -5596,7 +5443,7 @@ function isSyntheticReference(ref) {
5596
5443
  return ref.synthetic;
5597
5444
  }
5598
5445
 
5599
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5446
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5600
5447
  function makeCyclicImportInfo(ref, type, cycle) {
5601
5448
  const name = ref.debugName || "(unknown)";
5602
5449
  const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -5619,7 +5466,7 @@ function checkCustomElementSelectorForErrors(selector) {
5619
5466
  return null;
5620
5467
  }
5621
5468
 
5622
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5469
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5623
5470
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
5624
5471
  import ts23 from "typescript";
5625
5472
  function getTemplateDeclarationNodeForError(declaration) {
@@ -5774,7 +5621,7 @@ function parseTemplateDeclaration(node, decorator, component, containingFile, ev
5774
5621
  resolvedTemplateUrl: containingFile
5775
5622
  };
5776
5623
  } else {
5777
- throw new FatalDiagnosticError(ErrorCode.COMPONENT_MISSING_TEMPLATE, Decorator.nodeForError(decorator), "component is missing a template");
5624
+ throw new FatalDiagnosticError(ErrorCode.COMPONENT_MISSING_TEMPLATE, decorator.node, "component is missing a template");
5778
5625
  }
5779
5626
  }
5780
5627
  function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanalyzeTemplateCache, node, decorator, component, containingFile, defaultPreserveWhitespaces, options) {
@@ -5938,7 +5785,7 @@ function _extractTemplateStyleUrls(template) {
5938
5785
  return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
5939
5786
  }
5940
5787
 
5941
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5788
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5942
5789
  var ComponentSymbol = class extends DirectiveSymbol {
5943
5790
  constructor() {
5944
5791
  super(...arguments);
@@ -5973,7 +5820,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
5973
5820
  }
5974
5821
  };
5975
5822
 
5976
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5823
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5977
5824
  function collectAnimationNames(value, animationTriggerNames) {
5978
5825
  if (value instanceof Map) {
5979
5826
  const name = value.get("name");
@@ -6049,7 +5896,7 @@ function isLikelyModuleWithProviders(value) {
6049
5896
  return false;
6050
5897
  }
6051
5898
 
6052
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
5899
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
6053
5900
  var EMPTY_ARRAY2 = [];
6054
5901
  var ComponentDecoratorHandler = class {
6055
5902
  constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver) {
@@ -6696,7 +6543,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
6696
6543
  return diagnostics;
6697
6544
  }
6698
6545
 
6699
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6546
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6700
6547
  import { compileClassMetadata as compileClassMetadata4, compileDeclareClassMetadata as compileDeclareClassMetadata4, compileDeclareInjectableFromMetadata, compileInjectable, createMayBeForwardRefExpression as createMayBeForwardRefExpression2, FactoryTarget as FactoryTarget4, LiteralExpr as LiteralExpr3, WrappedNodeExpr as WrappedNodeExpr8 } from "@angular/compiler";
6701
6548
  import ts25 from "typescript";
6702
6549
  var InjectableDecoratorHandler = class {
@@ -6788,17 +6635,15 @@ var InjectableDecoratorHandler = class {
6788
6635
  function extractInjectableMetadata(clazz, decorator, reflector) {
6789
6636
  const name = clazz.name.text;
6790
6637
  const type = wrapTypeReference(reflector, clazz);
6791
- const internalType = new WrappedNodeExpr8(reflector.getInternalNameOfClass(clazz));
6792
6638
  const typeArgumentCount = reflector.getGenericArityOfClass(clazz) || 0;
6793
6639
  if (decorator.args === null) {
6794
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, Decorator.nodeForError(decorator), "@Injectable must be called");
6640
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, "@Injectable must be called");
6795
6641
  }
6796
6642
  if (decorator.args.length === 0) {
6797
6643
  return {
6798
6644
  name,
6799
6645
  type,
6800
6646
  typeArgumentCount,
6801
- internalType,
6802
6647
  providedIn: createMayBeForwardRefExpression2(new LiteralExpr3(null), 0)
6803
6648
  };
6804
6649
  } else if (decorator.args.length === 1) {
@@ -6816,7 +6661,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
6816
6661
  }
6817
6662
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
6818
6663
  }
6819
- const result = { name, type, typeArgumentCount, internalType, providedIn };
6664
+ const result = { name, type, typeArgumentCount, providedIn };
6820
6665
  if (meta.has("useValue")) {
6821
6666
  result.useValue = getProviderExpression(meta.get("useValue"), reflector);
6822
6667
  } else if (meta.has("useExisting")) {
@@ -6839,7 +6684,7 @@ function getProviderExpression(expression, reflector) {
6839
6684
  }
6840
6685
  function extractInjectableCtorDeps(clazz, meta, decorator, reflector, isCore, strictCtorDeps) {
6841
6686
  if (decorator.args === null) {
6842
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, Decorator.nodeForError(decorator), "@Injectable must be called");
6687
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, "@Injectable must be called");
6843
6688
  }
6844
6689
  let ctorDeps = null;
6845
6690
  if (decorator.args.length === 0) {
@@ -6913,8 +6758,8 @@ function getDep(dep, reflector) {
6913
6758
  return meta;
6914
6759
  }
6915
6760
 
6916
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6917
- import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5, WrappedNodeExpr as WrappedNodeExpr9 } from "@angular/compiler";
6761
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6762
+ import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
6918
6763
  import ts26 from "typescript";
6919
6764
  var PipeSymbol = class extends SemanticSymbol {
6920
6765
  constructor(decl, name) {
@@ -6963,12 +6808,11 @@ var PipeDecoratorHandler = class {
6963
6808
  this.perf.eventCount(PerfEvent.AnalyzePipe);
6964
6809
  const name = clazz.name.text;
6965
6810
  const type = wrapTypeReference(this.reflector, clazz);
6966
- const internalType = new WrappedNodeExpr9(this.reflector.getInternalNameOfClass(clazz));
6967
6811
  if (decorator.args === null) {
6968
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, Decorator.nodeForError(decorator), `@Pipe must be called`);
6812
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, `@Pipe must be called`);
6969
6813
  }
6970
6814
  if (decorator.args.length !== 1) {
6971
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), "@Pipe must have exactly one argument");
6815
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, "@Pipe must have exactly one argument");
6972
6816
  }
6973
6817
  const meta = unwrapExpression(decorator.args[0]);
6974
6818
  if (!ts26.isObjectLiteralExpression(meta)) {
@@ -7006,7 +6850,6 @@ var PipeDecoratorHandler = class {
7006
6850
  meta: {
7007
6851
  name,
7008
6852
  type,
7009
- internalType,
7010
6853
  typeArgumentCount: this.reflector.getGenericArityOfClass(clazz) || 0,
7011
6854
  pipeName,
7012
6855
  deps: getValidConstructorDependencies(clazz, this.reflector, this.isCore),
@@ -7059,14 +6902,14 @@ var PipeDecoratorHandler = class {
7059
6902
  }
7060
6903
  };
7061
6904
 
7062
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
6905
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
7063
6906
  var OptimizeFor;
7064
6907
  (function(OptimizeFor2) {
7065
6908
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
7066
6909
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
7067
6910
  })(OptimizeFor || (OptimizeFor = {}));
7068
6911
 
7069
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
6912
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
7070
6913
  var PotentialImportKind;
7071
6914
  (function(PotentialImportKind2) {
7072
6915
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -7078,14 +6921,14 @@ var PotentialImportMode;
7078
6921
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
7079
6922
  })(PotentialImportMode || (PotentialImportMode = {}));
7080
6923
 
7081
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
6924
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
7082
6925
  var CompletionKind;
7083
6926
  (function(CompletionKind2) {
7084
6927
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
7085
6928
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
7086
6929
  })(CompletionKind || (CompletionKind = {}));
7087
6930
 
7088
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
6931
+ // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
7089
6932
  var SymbolKind;
7090
6933
  (function(SymbolKind2) {
7091
6934
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -7152,4 +6995,4 @@ export {
7152
6995
  * Use of this source code is governed by an MIT-style license that can be
7153
6996
  * found in the LICENSE file at https://angular.io/license
7154
6997
  */
7155
- //# sourceMappingURL=chunk-SY7FDL66.js.map
6998
+ //# sourceMappingURL=chunk-QELUO2L4.js.map