@angular/compiler-cli 16.0.0-next.6 → 16.0.0-rc.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.
Files changed (51) hide show
  1. package/bundles/{chunk-KOHNFJR2.js → chunk-4MSEL6HO.js} +128 -277
  2. package/bundles/chunk-4MSEL6HO.js.map +6 -0
  3. package/bundles/{chunk-HROZN3TD.js → chunk-4UQC5DMJ.js} +8 -47
  4. package/bundles/chunk-4UQC5DMJ.js.map +6 -0
  5. package/bundles/{chunk-URH5LEAG.js → chunk-7PCPPTTO.js} +5 -5
  6. package/bundles/{chunk-7RPZKH3B.js → chunk-B6WD2R2T.js} +21 -21
  7. package/bundles/{chunk-2G3UVWBI.js → chunk-C4B5W2XC.js} +8 -8
  8. package/bundles/{chunk-OULZQUKT.js → chunk-EKTJ7622.js} +7 -7
  9. package/bundles/{chunk-2YPKXLLJ.js → chunk-FJTRGXZM.js} +5 -5
  10. package/bundles/{chunk-IWRMD5BL.js → chunk-GVISPKNE.js} +5 -5
  11. package/bundles/{chunk-CF2CT7RQ.js → chunk-LYJKWJUC.js} +3 -3
  12. package/bundles/{chunk-2IU4GAMV.js → chunk-SIHBKSBW.js} +31 -38
  13. package/bundles/chunk-SIHBKSBW.js.map +6 -0
  14. package/bundles/{chunk-K2U2VZ7S.js → chunk-TBUSSXUA.js} +7 -7
  15. package/bundles/{chunk-2AZVA7MW.js → chunk-YGYAPJAN.js} +112 -97
  16. package/bundles/chunk-YGYAPJAN.js.map +6 -0
  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 +3 -3
  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/component/src/handler.d.ts +3 -2
  31. package/src/ngtsc/annotations/directive/src/handler.d.ts +3 -3
  32. package/src/ngtsc/annotations/directive/src/shared.d.ts +2 -1
  33. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +0 -3
  34. package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +0 -2
  35. package/src/ngtsc/reflection/src/host.d.ts +13 -178
  36. package/src/ngtsc/reflection/src/typescript.d.ts +0 -3
  37. package/src/ngtsc/transform/src/compilation.d.ts +5 -6
  38. package/bundles/chunk-2AZVA7MW.js.map +0 -6
  39. package/bundles/chunk-2IU4GAMV.js.map +0 -6
  40. package/bundles/chunk-HROZN3TD.js.map +0 -6
  41. package/bundles/chunk-KOHNFJR2.js.map +0 -6
  42. package/src/ngtsc/partial_evaluator/src/known_declaration.d.ts +0 -18
  43. package/src/ngtsc/partial_evaluator/src/ts_helpers.d.ts +0 -21
  44. /package/bundles/{chunk-URH5LEAG.js.map → chunk-7PCPPTTO.js.map} +0 -0
  45. /package/bundles/{chunk-7RPZKH3B.js.map → chunk-B6WD2R2T.js.map} +0 -0
  46. /package/bundles/{chunk-2G3UVWBI.js.map → chunk-C4B5W2XC.js.map} +0 -0
  47. /package/bundles/{chunk-OULZQUKT.js.map → chunk-EKTJ7622.js.map} +0 -0
  48. /package/bundles/{chunk-2YPKXLLJ.js.map → chunk-FJTRGXZM.js.map} +0 -0
  49. /package/bundles/{chunk-IWRMD5BL.js.map → chunk-GVISPKNE.js.map} +0 -0
  50. /package/bundles/{chunk-CF2CT7RQ.js.map → chunk-LYJKWJUC.js.map} +0 -0
  51. /package/bundles/{chunk-K2U2VZ7S.js.map → chunk-TBUSSXUA.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-HROZN3TD.js";
12
+ } from "./chunk-4UQC5DMJ.js";
16
13
  import {
17
14
  ImportManager,
18
15
  translateExpression,
19
16
  translateStatement,
20
17
  translateType
21
- } from "./chunk-2G3UVWBI.js";
18
+ } from "./chunk-C4B5W2XC.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-7RPZKH3B.js";
35
+ } from "./chunk-B6WD2R2T.js";
39
36
  import {
40
37
  PerfEvent,
41
38
  PerfPhase
42
- } from "./chunk-URH5LEAG.js";
39
+ } from "./chunk-7PCPPTTO.js";
43
40
  import {
44
41
  absoluteFrom,
45
42
  absoluteFromSourceFile,
46
43
  relative
47
- } from "./chunk-K2U2VZ7S.js";
44
+ } from "./chunk-TBUSSXUA.js";
48
45
 
49
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/util.mjs
46
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/dynamic.mjs
283
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
373
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
379
374
  import ts2 from "typescript";
380
375
 
381
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/result.mjs
376
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/builtin.mjs
406
+ // bazel-out/k8-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/darwin-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/darwin-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/synthetic.mjs
458
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interpreter.mjs
465
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/interface.mjs
1043
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/partial_evaluator/src/diagnostics.mjs
1063
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/di.mjs
1193
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1337
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
1462
1338
  import ts7 from "typescript";
1463
1339
 
1464
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/api.mjs
1340
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1353
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1478
1354
  import ts6 from "typescript";
1479
1355
 
1480
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/property_mapping.mjs
1356
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/util.mjs
1434
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/dts.mjs
1616
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/inheritance.mjs
1784
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/registry.mjs
1842
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/resource_registry.mjs
1899
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/metadata/src/host_directives_resolver.mjs
1964
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/diagnostics.mjs
2025
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/evaluation.mjs
2221
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/factory.mjs
2254
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/injectable_registry.mjs
2265
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/metadata.mjs
2291
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/references_registry.mjs
2378
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/common/src/schema.mjs
2384
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
2414
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/api.mjs
2418
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/graph.mjs
2434
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2577
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/util.mjs
2580
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/incremental/semantic_graph/src/type_parameters.mjs
2630
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/api.mjs
2650
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/component_scope.mjs
2657
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/dependency.mjs
2682
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2758
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/util.mjs
2762
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/local.mjs
2785
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/scope/src/typecheck.mjs
3124
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/api.mjs
3193
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/alias.mjs
3211
+ // bazel-out/k8-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/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3234
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3359
3235
  import ts15 from "typescript";
3360
3236
 
3361
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/trait.mjs
3237
+ // bazel-out/k8-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";
@@ -3377,6 +3253,7 @@ var TraitImpl = class {
3377
3253
  this.resolution = null;
3378
3254
  this.analysisDiagnostics = null;
3379
3255
  this.resolveDiagnostics = null;
3256
+ this.typeCheckDiagnostics = null;
3380
3257
  this.handler = handler;
3381
3258
  this.detected = detected;
3382
3259
  }
@@ -3396,6 +3273,7 @@ var TraitImpl = class {
3396
3273
  this.resolution = resolution;
3397
3274
  this.state = TraitState.Resolved;
3398
3275
  this.resolveDiagnostics = diagnostics;
3276
+ this.typeCheckDiagnostics = null;
3399
3277
  return this;
3400
3278
  }
3401
3279
  toSkipped() {
@@ -3413,7 +3291,7 @@ var TraitImpl = class {
3413
3291
  }
3414
3292
  };
3415
3293
 
3416
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3294
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/compilation.mjs
3417
3295
  var TraitCompiler = class {
3418
3296
  constructor(handlers, reflector, perf, incrementalBuild, compileNonExportedClasses, compilationMode, dtsTransforms, semanticDepGraphUpdater, sourceFileTypeIdentifier) {
3419
3297
  this.handlers = handlers;
@@ -3481,16 +3359,6 @@ var TraitCompiler = class {
3481
3359
  return null;
3482
3360
  }
3483
3361
  }
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
3362
  getAnalyzedRecords() {
3495
3363
  const result = /* @__PURE__ */ new Map();
3496
3364
  for (const [sf, classes] of this.fileToClasses) {
@@ -3832,6 +3700,7 @@ var TraitCompiler = class {
3832
3700
  return decorators;
3833
3701
  }
3834
3702
  get diagnostics() {
3703
+ var _a;
3835
3704
  const diagnostics = [];
3836
3705
  for (const clazz of this.classes.keys()) {
3837
3706
  const record = this.classes.get(clazz);
@@ -3842,8 +3711,8 @@ var TraitCompiler = class {
3842
3711
  if ((trait.state === TraitState.Analyzed || trait.state === TraitState.Resolved) && trait.analysisDiagnostics !== null) {
3843
3712
  diagnostics.push(...trait.analysisDiagnostics);
3844
3713
  }
3845
- if (trait.state === TraitState.Resolved && trait.resolveDiagnostics !== null) {
3846
- diagnostics.push(...trait.resolveDiagnostics);
3714
+ if (trait.state === TraitState.Resolved) {
3715
+ diagnostics.push(...(_a = trait.resolveDiagnostics) != null ? _a : []);
3847
3716
  }
3848
3717
  }
3849
3718
  }
@@ -3857,10 +3726,10 @@ function containsErrors(diagnostics) {
3857
3726
  return diagnostics !== null && diagnostics.some((diag) => diag.category === ts15.DiagnosticCategory.Error);
3858
3727
  }
3859
3728
 
3860
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3729
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3861
3730
  import ts17 from "typescript";
3862
3731
 
3863
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3732
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/utils.mjs
3864
3733
  import ts16 from "typescript";
3865
3734
  function addImports(importManager, sf, extraStatements = []) {
3866
3735
  const addedImports = importManager.getAllImports(sf.fileName).map((i) => {
@@ -3896,7 +3765,7 @@ function isImportStatement(stmt) {
3896
3765
  return ts16.isImportDeclaration(stmt) || ts16.isImportEqualsDeclaration(stmt) || ts16.isNamespaceImport(stmt);
3897
3766
  }
3898
3767
 
3899
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3768
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/declaration.mjs
3900
3769
  var DtsTransformRegistry = class {
3901
3770
  constructor() {
3902
3771
  this.ivyDeclarationTransforms = /* @__PURE__ */ new Map();
@@ -4041,11 +3910,11 @@ function markForEmitAsSingleLine(node) {
4041
3910
  ts17.forEachChild(node, markForEmitAsSingleLine);
4042
3911
  }
4043
3912
 
4044
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3913
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4045
3914
  import { ConstantPool } from "@angular/compiler";
4046
3915
  import ts19 from "typescript";
4047
3916
 
4048
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
3917
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/visitor.mjs
4049
3918
  import ts18 from "typescript";
4050
3919
  function visit(node, visitor, context) {
4051
3920
  return visitor._visit(node, context);
@@ -4106,7 +3975,7 @@ var Visitor = class {
4106
3975
  }
4107
3976
  };
4108
3977
 
4109
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
3978
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/transform/src/transform.mjs
4110
3979
  var NO_DECORATORS = /* @__PURE__ */ new Set();
4111
3980
  var CLOSURE_FILE_OVERVIEW_REGEXP = /\s+@fileoverview\s+/i;
4112
3981
  function ivyTransformFactory(compilation, reflector, importRewriter, defaultImportTracker, perf, isCore, isClosureCompilerEnabled) {
@@ -4314,10 +4183,10 @@ function nodeArrayFromDecoratorsArray(decorators) {
4314
4183
  return array;
4315
4184
  }
4316
4185
 
4317
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4186
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4318
4187
  import { compileClassMetadata, compileDeclareClassMetadata, compileDeclareDirectiveFromMetadata, compileDirectiveFromMetadata, FactoryTarget, makeBindingParser, WrappedNodeExpr as WrappedNodeExpr5 } from "@angular/compiler";
4319
4188
 
4320
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4189
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/shared.mjs
4321
4190
  import { createMayBeForwardRefExpression, emitDistinctChangesOnlyDefaultValue, ExternalExpr as ExternalExpr4, getSafePropertyAccessString, parseHostBindings, verifyHostBindings, WrappedNodeExpr as WrappedNodeExpr4 } from "@angular/compiler";
4322
4191
  import ts20 from "typescript";
4323
4192
  var EMPTY_OBJECT = {};
@@ -4327,12 +4196,12 @@ var QUERY_TYPES = /* @__PURE__ */ new Set([
4327
4196
  "ViewChild",
4328
4197
  "ViewChildren"
4329
4198
  ]);
4330
- function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmitter, isCore, flags, annotateForClosureCompiler, defaultSelector = null) {
4199
+ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmitter, referencesRegistry, isCore, flags, annotateForClosureCompiler, defaultSelector = null) {
4331
4200
  let directive;
4332
4201
  if (decorator === null || decorator.args === null || decorator.args.length === 0) {
4333
4202
  directive = /* @__PURE__ */ new Map();
4334
4203
  } 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`);
4204
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `Incorrect number of arguments to @${decorator.name} decorator`);
4336
4205
  } else {
4337
4206
  const meta = unwrapExpression(decorator.args[0]);
4338
4207
  if (!ts20.isObjectLiteralExpression(meta)) {
@@ -4402,9 +4271,11 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
4402
4271
  const usesInheritance = reflector.hasBaseClass(clazz);
4403
4272
  const sourceFile = clazz.getSourceFile();
4404
4273
  const type = wrapTypeReference(reflector, clazz);
4405
- const internalType = new WrappedNodeExpr4(reflector.getInternalNameOfClass(clazz));
4406
4274
  const rawHostDirectives = directive.get("hostDirectives") || null;
4407
4275
  const hostDirectives = rawHostDirectives === null ? null : extractHostDirectives(rawHostDirectives, evaluator);
4276
+ if (hostDirectives !== null) {
4277
+ referencesRegistry.add(clazz, ...hostDirectives.map((hostDir) => hostDir.directive));
4278
+ }
4408
4279
  const metadata = {
4409
4280
  name: clazz.name.text,
4410
4281
  deps: ctorDeps,
@@ -4419,7 +4290,6 @@ function extractDirectiveMetadata(clazz, decorator, reflector, evaluator, refEmi
4419
4290
  selector,
4420
4291
  fullInheritance: !!(flags & HandlerFlags.FULL_INHERITANCE),
4421
4292
  type,
4422
- internalType,
4423
4293
  typeArgumentCount: reflector.getGenericArityOfClass(clazz) || 0,
4424
4294
  typeSourceSpan: createSourceSpan(clazz.name),
4425
4295
  usesInheritance,
@@ -4517,11 +4387,11 @@ function extractHostBindings(members, evaluator, coreModule, metadata) {
4517
4387
  let hostPropertyName = member.name;
4518
4388
  if (decorator.args !== null && decorator.args.length > 0) {
4519
4389
  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)`);
4390
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `@HostBinding can have at most one argument, got ${decorator.args.length} argument(s)`);
4521
4391
  }
4522
4392
  const resolved = evaluator.evaluate(decorator.args[0]);
4523
4393
  if (typeof resolved !== "string") {
4524
- throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), resolved, `@HostBinding's argument must be a string`);
4394
+ throw createValueHasWrongTypeError(decorator.node, resolved, `@HostBinding's argument must be a string`);
4525
4395
  }
4526
4396
  hostPropertyName = resolved;
4527
4397
  }
@@ -4607,7 +4477,7 @@ function isStringArrayOrDie(value, name, node) {
4607
4477
  function queriesFromFields(fields, reflector, evaluator) {
4608
4478
  return fields.map(({ member, decorators }) => {
4609
4479
  const decorator = decorators[0];
4610
- const node = member.node || Decorator.nodeForError(decorator);
4480
+ const node = member.node || decorator.node;
4611
4481
  if (member.decorators.some((v) => v.name === "Input")) {
4612
4482
  throw new FatalDiagnosticError(ErrorCode.DECORATOR_COLLISION, node, "Cannot combine @Input decorators with query decorators");
4613
4483
  }
@@ -4641,7 +4511,7 @@ function parseDecoratedFields(fields, evaluator, callback) {
4641
4511
  const fieldName = field.member.name;
4642
4512
  for (const decorator of field.decorators) {
4643
4513
  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)`);
4514
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `@${decorator.name} can have at most one argument, got ${decorator.args.length} argument(s)`);
4645
4515
  }
4646
4516
  const value = decorator.args != null && decorator.args.length > 0 ? evaluator.evaluate(decorator.args[0]) : null;
4647
4517
  callback(fieldName, value, decorator);
@@ -4695,7 +4565,7 @@ function parseInputFields(inputMembers, evaluator) {
4695
4565
  bindingPropertyName = typeof aliasInConfig === "string" ? aliasInConfig : classPropertyName;
4696
4566
  required = options.get("required") === true;
4697
4567
  } else {
4698
- throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
4568
+ throw createValueHasWrongTypeError(decorator.node, options, `@${decorator.name} decorator argument must resolve to a string or an object literal`);
4699
4569
  }
4700
4570
  inputs[classPropertyName] = { bindingPropertyName, classPropertyName, required };
4701
4571
  });
@@ -4709,7 +4579,7 @@ function parseOutputFields(outputMembers, evaluator) {
4709
4579
  const outputs = {};
4710
4580
  parseDecoratedFields(outputMembers, evaluator, (fieldName, bindingPropertyName, decorator) => {
4711
4581
  if (bindingPropertyName != null && typeof bindingPropertyName !== "string") {
4712
- throw createValueHasWrongTypeError(Decorator.nodeForError(decorator), bindingPropertyName, `@${decorator.name} decorator argument must resolve to a string`);
4582
+ throw createValueHasWrongTypeError(decorator.node, bindingPropertyName, `@${decorator.name} decorator argument must resolve to a string`);
4713
4583
  }
4714
4584
  outputs[fieldName] = bindingPropertyName != null ? bindingPropertyName : fieldName;
4715
4585
  });
@@ -4781,14 +4651,14 @@ function parseHostDirectivesMapping(field, resolvedValue, classReference, source
4781
4651
  }
4782
4652
  function toHostDirectiveMetadata(hostDirective, context, refEmitter) {
4783
4653
  return {
4784
- directive: toR3Reference(hostDirective.directive.node, hostDirective.directive, hostDirective.directive, context, context, refEmitter),
4654
+ directive: toR3Reference(hostDirective.directive.node, hostDirective.directive, context, refEmitter),
4785
4655
  isForwardReference: hostDirective.isForwardReference,
4786
4656
  inputs: hostDirective.inputs || null,
4787
4657
  outputs: hostDirective.outputs || null
4788
4658
  };
4789
4659
  }
4790
4660
 
4791
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4661
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/symbol.mjs
4792
4662
  var DirectiveSymbol = class extends SemanticSymbol {
4793
4663
  constructor(decl, selector, inputs, outputs, exportAs, typeCheckMeta, typeParameters) {
4794
4664
  super(decl);
@@ -4868,7 +4738,7 @@ function isBaseClassEqual(current, previous) {
4868
4738
  return isSymbolEqual(current, previous);
4869
4739
  }
4870
4740
 
4871
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4741
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/directive/src/handler.mjs
4872
4742
  var FIELD_DECORATORS = [
4873
4743
  "Input",
4874
4744
  "Output",
@@ -4890,7 +4760,7 @@ var LIFECYCLE_HOOKS = /* @__PURE__ */ new Set([
4890
4760
  "ngAfterContentChecked"
4891
4761
  ]);
4892
4762
  var DirectiveDecoratorHandler = class {
4893
- constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, compileUndecoratedClassesWithAngularFeatures, perf) {
4763
+ constructor(reflector, evaluator, metaRegistry, scopeRegistry, metaReader, injectableRegistry, refEmitter, referencesRegistry, isCore, strictCtorDeps, semanticDepGraphUpdater, annotateForClosureCompiler, perf) {
4894
4764
  this.reflector = reflector;
4895
4765
  this.evaluator = evaluator;
4896
4766
  this.metaRegistry = metaRegistry;
@@ -4898,11 +4768,11 @@ var DirectiveDecoratorHandler = class {
4898
4768
  this.metaReader = metaReader;
4899
4769
  this.injectableRegistry = injectableRegistry;
4900
4770
  this.refEmitter = refEmitter;
4771
+ this.referencesRegistry = referencesRegistry;
4901
4772
  this.isCore = isCore;
4902
4773
  this.strictCtorDeps = strictCtorDeps;
4903
4774
  this.semanticDepGraphUpdater = semanticDepGraphUpdater;
4904
4775
  this.annotateForClosureCompiler = annotateForClosureCompiler;
4905
- this.compileUndecoratedClassesWithAngularFeatures = compileUndecoratedClassesWithAngularFeatures;
4906
4776
  this.perf = perf;
4907
4777
  this.precedence = HandlerPrecedence.PRIMARY;
4908
4778
  this.name = DirectiveDecoratorHandler.name;
@@ -4918,14 +4788,14 @@ var DirectiveDecoratorHandler = class {
4918
4788
  }
4919
4789
  analyze(node, decorator, flags = HandlerFlags.NONE) {
4920
4790
  var _a;
4921
- if (this.compileUndecoratedClassesWithAngularFeatures === false && decorator === null) {
4791
+ if (decorator === null) {
4922
4792
  if (this.isCore) {
4923
4793
  return {};
4924
4794
  }
4925
4795
  return { diagnostics: [getUndecoratedClassWithAngularFeaturesDiagnostic(node)] };
4926
4796
  }
4927
4797
  this.perf.eventCount(PerfEvent.AnalyzeDirective);
4928
- const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.evaluator, this.refEmitter, this.isCore, flags, this.annotateForClosureCompiler);
4798
+ const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.evaluator, this.refEmitter, this.referencesRegistry, this.isCore, flags, this.annotateForClosureCompiler);
4929
4799
  if (directiveResult === void 0) {
4930
4800
  return {};
4931
4801
  }
@@ -5027,11 +4897,11 @@ var DirectiveDecoratorHandler = class {
5027
4897
  }
5028
4898
  };
5029
4899
 
5030
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4900
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5031
4901
  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
4902
  import ts22 from "typescript";
5033
4903
 
5034
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
4904
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/module_with_providers.mjs
5035
4905
  import ts21 from "typescript";
5036
4906
  function createModuleWithProvidersResolver(reflector, isCore) {
5037
4907
  function _reflectModuleFromTypeParam(type, node) {
@@ -5098,7 +4968,7 @@ function isResolvedModuleWithProviders(sv) {
5098
4968
  return typeof sv.value === "object" && sv.value != null && sv.value.hasOwnProperty("ngModule") && sv.value.hasOwnProperty("mwpCall");
5099
4969
  }
5100
4970
 
5101
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
4971
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/ng_module/src/handler.mjs
5102
4972
  var NgModuleSymbol = class extends SemanticSymbol {
5103
4973
  constructor() {
5104
4974
  super(...arguments);
@@ -5180,7 +5050,7 @@ var NgModuleDecoratorHandler = class {
5180
5050
  this.perf.eventCount(PerfEvent.AnalyzeNgModule);
5181
5051
  const name = node.name.text;
5182
5052
  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`);
5053
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, `Incorrect number of arguments to @NgModule decorator`);
5184
5054
  }
5185
5055
  const meta = decorator.args.length === 1 ? unwrapExpression(decorator.args[0]) : ts22.factory.createObjectLiteralExpression([]);
5186
5056
  if (!ts22.isObjectLiteralExpression(meta)) {
@@ -5251,33 +5121,24 @@ var NgModuleDecoratorHandler = class {
5251
5121
  }
5252
5122
  }
5253
5123
  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
5124
  const exportedNodes = new Set(exportRefs.map((ref) => ref.node));
5260
5125
  const declarations = [];
5261
5126
  const exportedDeclarations = [];
5262
- const bootstrap = bootstrapRefs.map((bootstrap2) => this._toR3Reference(bootstrap2.getOriginForDiagnostics(meta, node.name), bootstrap2, valueContext, typeContext));
5127
+ const bootstrap = bootstrapRefs.map((bootstrap2) => this._toR3Reference(bootstrap2.getOriginForDiagnostics(meta, node.name), bootstrap2, valueContext));
5263
5128
  for (const ref of declarationRefs) {
5264
- const decl = this._toR3Reference(ref.getOriginForDiagnostics(meta, node.name), ref, valueContext, typeContext);
5129
+ const decl = this._toR3Reference(ref.getOriginForDiagnostics(meta, node.name), ref, valueContext);
5265
5130
  declarations.push(decl);
5266
5131
  if (exportedNodes.has(ref.node)) {
5267
5132
  exportedDeclarations.push(decl.type);
5268
5133
  }
5269
5134
  }
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));
5135
+ const imports = importRefs.map((imp) => this._toR3Reference(imp.getOriginForDiagnostics(meta, node.name), imp, valueContext));
5136
+ const exports = exportRefs.map((exp) => this._toR3Reference(exp.getOriginForDiagnostics(meta, node.name), exp, valueContext));
5272
5137
  const isForwardReference = (ref) => isExpressionForwardReference(ref.value, node.name, valueContext);
5273
5138
  const containsForwardDecls = bootstrap.some(isForwardReference) || declarations.some(isForwardReference) || imports.some(isForwardReference) || exports.some(isForwardReference);
5274
5139
  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
5140
  const ngModuleMetadata = {
5278
5141
  type,
5279
- internalType,
5280
- adjacentType,
5281
5142
  bootstrap,
5282
5143
  declarations,
5283
5144
  publicDeclarationTypes: this.onlyPublishPublicTypings ? exportedDeclarations : null,
@@ -5324,13 +5185,11 @@ var NgModuleDecoratorHandler = class {
5324
5185
  const injectorMetadata = {
5325
5186
  name,
5326
5187
  type,
5327
- internalType,
5328
5188
  providers: wrappedProviders
5329
5189
  };
5330
5190
  const factoryMetadata = {
5331
5191
  name,
5332
5192
  type,
5333
- internalType,
5334
5193
  typeArgumentCount: 0,
5335
5194
  deps: getValidConstructorDependencies(node, this.reflector, this.isCore),
5336
5195
  target: FactoryTarget2.NgModule
@@ -5529,16 +5388,11 @@ var NgModuleDecoratorHandler = class {
5529
5388
  ];
5530
5389
  return res;
5531
5390
  }
5532
- _toR3Reference(origin, valueRef, valueContext, typeContext) {
5391
+ _toR3Reference(origin, valueRef, valueContext) {
5533
5392
  if (valueRef.hasOwningModuleGuess) {
5534
- return toR3Reference(origin, valueRef, valueRef, valueContext, valueContext, this.refEmitter);
5393
+ return toR3Reference(origin, valueRef, valueContext, this.refEmitter);
5535
5394
  } 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);
5395
+ return toR3Reference(origin, valueRef, valueContext, this.refEmitter);
5542
5396
  }
5543
5397
  }
5544
5398
  isClassDeclarationReference(ref) {
@@ -5596,7 +5450,7 @@ function isSyntheticReference(ref) {
5596
5450
  return ref.synthetic;
5597
5451
  }
5598
5452
 
5599
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5453
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/diagnostics.mjs
5600
5454
  function makeCyclicImportInfo(ref, type, cycle) {
5601
5455
  const name = ref.debugName || "(unknown)";
5602
5456
  const path = cycle.getPath().map((sf) => sf.fileName).join(" -> ");
@@ -5619,7 +5473,7 @@ function checkCustomElementSelectorForErrors(selector) {
5619
5473
  return null;
5620
5474
  }
5621
5475
 
5622
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5476
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/resources.mjs
5623
5477
  import { DEFAULT_INTERPOLATION_CONFIG, InterpolationConfig, ParseSourceFile as ParseSourceFile2, parseTemplate } from "@angular/compiler";
5624
5478
  import ts23 from "typescript";
5625
5479
  function getTemplateDeclarationNodeForError(declaration) {
@@ -5774,7 +5628,7 @@ function parseTemplateDeclaration(node, decorator, component, containingFile, ev
5774
5628
  resolvedTemplateUrl: containingFile
5775
5629
  };
5776
5630
  } else {
5777
- throw new FatalDiagnosticError(ErrorCode.COMPONENT_MISSING_TEMPLATE, Decorator.nodeForError(decorator), "component is missing a template");
5631
+ throw new FatalDiagnosticError(ErrorCode.COMPONENT_MISSING_TEMPLATE, decorator.node, "component is missing a template");
5778
5632
  }
5779
5633
  }
5780
5634
  function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanalyzeTemplateCache, node, decorator, component, containingFile, defaultPreserveWhitespaces, options) {
@@ -5938,7 +5792,7 @@ function _extractTemplateStyleUrls(template) {
5938
5792
  return template.styleUrls.map((url) => ({ url, source: 1, nodeForError }));
5939
5793
  }
5940
5794
 
5941
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5795
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/symbol.mjs
5942
5796
  var ComponentSymbol = class extends DirectiveSymbol {
5943
5797
  constructor() {
5944
5798
  super(...arguments);
@@ -5973,7 +5827,7 @@ var ComponentSymbol = class extends DirectiveSymbol {
5973
5827
  }
5974
5828
  };
5975
5829
 
5976
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5830
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/util.mjs
5977
5831
  function collectAnimationNames(value, animationTriggerNames) {
5978
5832
  if (value instanceof Map) {
5979
5833
  const name = value.get("name");
@@ -6049,10 +5903,10 @@ function isLikelyModuleWithProviders(value) {
6049
5903
  return false;
6050
5904
  }
6051
5905
 
6052
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
5906
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/component/src/handler.mjs
6053
5907
  var EMPTY_ARRAY2 = [];
6054
5908
  var ComponentDecoratorHandler = class {
6055
- 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) {
5909
+ constructor(reflector, evaluator, metaRegistry, metaReader, scopeReader, dtsScopeReader, scopeRegistry, typeCheckScopeRegistry, resourceRegistry, isCore, strictCtorDeps, resourceLoader, rootDirs, defaultPreserveWhitespaces, i18nUseExternalIds, enableI18nLegacyMessageIdFormat, usePoisonedData, i18nNormalizeLineEndingsInICUs, moduleResolver, cycleAnalyzer, cycleHandlingStrategy, refEmitter, referencesRegistry, depTracker, injectableRegistry, semanticDepGraphUpdater, annotateForClosureCompiler, perf, hostDirectivesResolver) {
6056
5910
  this.reflector = reflector;
6057
5911
  this.evaluator = evaluator;
6058
5912
  this.metaRegistry = metaRegistry;
@@ -6075,6 +5929,7 @@ var ComponentDecoratorHandler = class {
6075
5929
  this.cycleAnalyzer = cycleAnalyzer;
6076
5930
  this.cycleHandlingStrategy = cycleHandlingStrategy;
6077
5931
  this.refEmitter = refEmitter;
5932
+ this.referencesRegistry = referencesRegistry;
6078
5933
  this.depTracker = depTracker;
6079
5934
  this.injectableRegistry = injectableRegistry;
6080
5935
  this.semanticDepGraphUpdater = semanticDepGraphUpdater;
@@ -6156,7 +6011,7 @@ var ComponentDecoratorHandler = class {
6156
6011
  this.literalCache.delete(decorator);
6157
6012
  let diagnostics;
6158
6013
  let isPoisoned = false;
6159
- const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.evaluator, this.refEmitter, this.isCore, flags, this.annotateForClosureCompiler, this.elementSchemaRegistry.getDefaultComponentElementName());
6014
+ const directiveResult = extractDirectiveMetadata(node, decorator, this.reflector, this.evaluator, this.refEmitter, this.referencesRegistry, this.isCore, flags, this.annotateForClosureCompiler, this.elementSchemaRegistry.getDefaultComponentElementName());
6160
6015
  if (directiveResult === void 0) {
6161
6016
  return {};
6162
6017
  }
@@ -6696,7 +6551,7 @@ function validateStandaloneImports(importRefs, importExpr, metaReader, scopeRead
6696
6551
  return diagnostics;
6697
6552
  }
6698
6553
 
6699
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6554
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/injectable.mjs
6700
6555
  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
6556
  import ts25 from "typescript";
6702
6557
  var InjectableDecoratorHandler = class {
@@ -6788,17 +6643,15 @@ var InjectableDecoratorHandler = class {
6788
6643
  function extractInjectableMetadata(clazz, decorator, reflector) {
6789
6644
  const name = clazz.name.text;
6790
6645
  const type = wrapTypeReference(reflector, clazz);
6791
- const internalType = new WrappedNodeExpr8(reflector.getInternalNameOfClass(clazz));
6792
6646
  const typeArgumentCount = reflector.getGenericArityOfClass(clazz) || 0;
6793
6647
  if (decorator.args === null) {
6794
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, Decorator.nodeForError(decorator), "@Injectable must be called");
6648
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, "@Injectable must be called");
6795
6649
  }
6796
6650
  if (decorator.args.length === 0) {
6797
6651
  return {
6798
6652
  name,
6799
6653
  type,
6800
6654
  typeArgumentCount,
6801
- internalType,
6802
6655
  providedIn: createMayBeForwardRefExpression2(new LiteralExpr3(null), 0)
6803
6656
  };
6804
6657
  } else if (decorator.args.length === 1) {
@@ -6816,7 +6669,7 @@ function extractInjectableMetadata(clazz, decorator, reflector) {
6816
6669
  }
6817
6670
  deps = depsExpr.elements.map((dep) => getDep(dep, reflector));
6818
6671
  }
6819
- const result = { name, type, typeArgumentCount, internalType, providedIn };
6672
+ const result = { name, type, typeArgumentCount, providedIn };
6820
6673
  if (meta.has("useValue")) {
6821
6674
  result.useValue = getProviderExpression(meta.get("useValue"), reflector);
6822
6675
  } else if (meta.has("useExisting")) {
@@ -6839,7 +6692,7 @@ function getProviderExpression(expression, reflector) {
6839
6692
  }
6840
6693
  function extractInjectableCtorDeps(clazz, meta, decorator, reflector, isCore, strictCtorDeps) {
6841
6694
  if (decorator.args === null) {
6842
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, Decorator.nodeForError(decorator), "@Injectable must be called");
6695
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, "@Injectable must be called");
6843
6696
  }
6844
6697
  let ctorDeps = null;
6845
6698
  if (decorator.args.length === 0) {
@@ -6913,8 +6766,8 @@ function getDep(dep, reflector) {
6913
6766
  return meta;
6914
6767
  }
6915
6768
 
6916
- // bazel-out/darwin-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";
6769
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/annotations/src/pipe.mjs
6770
+ import { compileClassMetadata as compileClassMetadata5, compileDeclareClassMetadata as compileDeclareClassMetadata5, compileDeclarePipeFromMetadata, compilePipeFromMetadata, FactoryTarget as FactoryTarget5 } from "@angular/compiler";
6918
6771
  import ts26 from "typescript";
6919
6772
  var PipeSymbol = class extends SemanticSymbol {
6920
6773
  constructor(decl, name) {
@@ -6963,12 +6816,11 @@ var PipeDecoratorHandler = class {
6963
6816
  this.perf.eventCount(PerfEvent.AnalyzePipe);
6964
6817
  const name = clazz.name.text;
6965
6818
  const type = wrapTypeReference(this.reflector, clazz);
6966
- const internalType = new WrappedNodeExpr9(this.reflector.getInternalNameOfClass(clazz));
6967
6819
  if (decorator.args === null) {
6968
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, Decorator.nodeForError(decorator), `@Pipe must be called`);
6820
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_NOT_CALLED, decorator.node, `@Pipe must be called`);
6969
6821
  }
6970
6822
  if (decorator.args.length !== 1) {
6971
- throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, Decorator.nodeForError(decorator), "@Pipe must have exactly one argument");
6823
+ throw new FatalDiagnosticError(ErrorCode.DECORATOR_ARITY_WRONG, decorator.node, "@Pipe must have exactly one argument");
6972
6824
  }
6973
6825
  const meta = unwrapExpression(decorator.args[0]);
6974
6826
  if (!ts26.isObjectLiteralExpression(meta)) {
@@ -7006,7 +6858,6 @@ var PipeDecoratorHandler = class {
7006
6858
  meta: {
7007
6859
  name,
7008
6860
  type,
7009
- internalType,
7010
6861
  typeArgumentCount: this.reflector.getGenericArityOfClass(clazz) || 0,
7011
6862
  pipeName,
7012
6863
  deps: getValidConstructorDependencies(clazz, this.reflector, this.isCore),
@@ -7059,14 +6910,14 @@ var PipeDecoratorHandler = class {
7059
6910
  }
7060
6911
  };
7061
6912
 
7062
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
6913
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/checker.mjs
7063
6914
  var OptimizeFor;
7064
6915
  (function(OptimizeFor2) {
7065
6916
  OptimizeFor2[OptimizeFor2["SingleFile"] = 0] = "SingleFile";
7066
6917
  OptimizeFor2[OptimizeFor2["WholeProgram"] = 1] = "WholeProgram";
7067
6918
  })(OptimizeFor || (OptimizeFor = {}));
7068
6919
 
7069
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
6920
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/scope.mjs
7070
6921
  var PotentialImportKind;
7071
6922
  (function(PotentialImportKind2) {
7072
6923
  PotentialImportKind2[PotentialImportKind2["NgModule"] = 0] = "NgModule";
@@ -7078,14 +6929,14 @@ var PotentialImportMode;
7078
6929
  PotentialImportMode2[PotentialImportMode2["ForceDirect"] = 1] = "ForceDirect";
7079
6930
  })(PotentialImportMode || (PotentialImportMode = {}));
7080
6931
 
7081
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
6932
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/completion.mjs
7082
6933
  var CompletionKind;
7083
6934
  (function(CompletionKind2) {
7084
6935
  CompletionKind2[CompletionKind2["Reference"] = 0] = "Reference";
7085
6936
  CompletionKind2[CompletionKind2["Variable"] = 1] = "Variable";
7086
6937
  })(CompletionKind || (CompletionKind = {}));
7087
6938
 
7088
- // bazel-out/darwin-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
6939
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/typecheck/api/symbols.mjs
7089
6940
  var SymbolKind;
7090
6941
  (function(SymbolKind2) {
7091
6942
  SymbolKind2[SymbolKind2["Input"] = 0] = "Input";
@@ -7152,4 +7003,4 @@ export {
7152
7003
  * Use of this source code is governed by an MIT-style license that can be
7153
7004
  * found in the LICENSE file at https://angular.io/license
7154
7005
  */
7155
- //# sourceMappingURL=chunk-KOHNFJR2.js.map
7006
+ //# sourceMappingURL=chunk-4MSEL6HO.js.map