@angular/compiler-cli 19.0.0-rc.0 → 19.0.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/bundles/{chunk-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
  2. package/bundles/{chunk-V2Z4WDVR.js → chunk-6RLW23PZ.js} +3 -3
  3. package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
  4. package/bundles/{chunk-4W4CWRSP.js → chunk-F33AEX64.js} +5 -5
  5. package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
  6. package/bundles/{chunk-TRCFFQ47.js → chunk-NC4E5UYB.js} +73 -64
  7. package/bundles/chunk-NC4E5UYB.js.map +6 -0
  8. package/bundles/{chunk-S2JI2WY5.js → chunk-OM3GHCE5.js} +193 -159
  9. package/bundles/chunk-OM3GHCE5.js.map +6 -0
  10. package/bundles/{chunk-PXQLBKVP.js → chunk-P6YTDBL7.js} +31 -31
  11. package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
  12. package/bundles/{chunk-NS33RCEE.js → chunk-RJMMB5HJ.js} +12 -12
  13. package/bundles/{chunk-TQQOHNLL.js → chunk-WLQBAON6.js} +108 -94
  14. package/bundles/chunk-WLQBAON6.js.map +6 -0
  15. package/bundles/index.js +12 -12
  16. package/bundles/linker/babel/index.js +12 -12
  17. package/bundles/linker/index.js +4 -4
  18. package/bundles/ngcc/index.js +1 -1
  19. package/bundles/private/bazel.js +1 -1
  20. package/bundles/private/localize.js +3 -3
  21. package/bundles/private/migrations.js +4 -4
  22. package/bundles/private/tooling.js +6 -6
  23. package/bundles/src/bin/ng_xi18n.js +10 -10
  24. package/bundles/src/bin/ngc.js +8 -8
  25. package/bundles_metadata.json +1 -1
  26. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  27. package/package.json +3 -3
  28. package/src/ngtsc/docs/src/entities.d.ts +4 -2
  29. package/src/ngtsc/docs/src/type_alias_extractor.d.ts +1 -0
  30. package/src/ngtsc/imports/src/emitter.d.ts +1 -1
  31. package/src/ngtsc/metadata/src/api.d.ts +5 -0
  32. package/src/ngtsc/metadata/src/util.d.ts +5 -2
  33. package/src/ngtsc/reflection/src/typescript.d.ts +6 -0
  34. package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
  35. package/src/ngtsc/typecheck/src/checker.d.ts +1 -1
  36. package/src/ngtsc/validation/src/rules/unused_standalone_imports_rule.d.ts +4 -4
  37. package/bundles/chunk-S2JI2WY5.js.map +0 -6
  38. package/bundles/chunk-TQQOHNLL.js.map +0 -6
  39. package/bundles/chunk-TRCFFQ47.js.map +0 -6
  40. /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
  41. /package/bundles/{chunk-V2Z4WDVR.js.map → chunk-6RLW23PZ.js.map} +0 -0
  42. /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
  43. /package/bundles/{chunk-4W4CWRSP.js.map → chunk-F33AEX64.js.map} +0 -0
  44. /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
  45. /package/bundles/{chunk-PXQLBKVP.js.map → chunk-P6YTDBL7.js.map} +0 -0
  46. /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
  47. /package/bundles/{chunk-NS33RCEE.js.map → chunk-RJMMB5HJ.js.map} +0 -0
@@ -12,12 +12,12 @@ import {
12
12
  resolve,
13
13
  stripExtension,
14
14
  toRelativeImport
15
- } from "./chunk-STORTTKY.js";
15
+ } from "./chunk-37JMVF7H.js";
16
16
 
17
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
17
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
18
18
  import ts from "typescript";
19
19
 
20
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
20
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
21
21
  var ErrorCode;
22
22
  (function(ErrorCode2) {
23
23
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -114,7 +114,7 @@ var ErrorCode;
114
114
  ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
115
115
  })(ErrorCode || (ErrorCode = {}));
116
116
 
117
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
117
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
118
118
  var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
119
119
  function replaceTsWithNgInErrors(errors) {
120
120
  return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
@@ -123,7 +123,7 @@ function ngErrorCode(code) {
123
123
  return parseInt("-99" + code);
124
124
  }
125
125
 
126
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
127
127
  var FatalDiagnosticError = class extends Error {
128
128
  code;
129
129
  node;
@@ -191,7 +191,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
191
191
  return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
192
192
  }
193
193
 
194
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
194
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
195
195
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
196
196
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
197
197
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -203,10 +203,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
203
203
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
204
204
  ]);
205
205
 
206
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
206
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
207
207
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
208
208
 
209
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
209
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
210
210
  var ExtendedTemplateDiagnosticName;
211
211
  (function(ExtendedTemplateDiagnosticName2) {
212
212
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -224,10 +224,10 @@ var ExtendedTemplateDiagnosticName;
224
224
  ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
225
225
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
226
226
 
227
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
227
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
228
228
  import ts5 from "typescript";
229
229
 
230
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
230
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
231
231
  import ts2 from "typescript";
232
232
  function isDecoratorIdentifier(exp) {
233
233
  return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
@@ -250,7 +250,7 @@ var ClassMemberAccessLevel;
250
250
  })(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
251
251
  var AmbientImport = {};
252
252
 
253
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
253
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
254
254
  import ts3 from "typescript";
255
255
  function typeToValue(typeNode, checker, isLocalCompilation) {
256
256
  var _a, _b;
@@ -434,7 +434,7 @@ function extractModuleName(node) {
434
434
  return node.moduleSpecifier.text;
435
435
  }
436
436
 
437
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
437
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
438
438
  import ts4 from "typescript";
439
439
  function isNamedClassDeclaration(node) {
440
440
  return ts4.isClassDeclaration(node) && isIdentifier(node.name);
@@ -458,7 +458,7 @@ function classMemberAccessLevelToString(level) {
458
458
  }
459
459
  }
460
460
 
461
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
461
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
462
462
  var TypeScriptReflectionHost = class {
463
463
  checker;
464
464
  isLocalCompilation;
@@ -748,10 +748,12 @@ var TypeScriptReflectionHost = class {
748
748
  return importInfo !== null && importInfo.from !== null && !importInfo.from.startsWith(".") ? importInfo.from : null;
749
749
  }
750
750
  };
751
+ var TypeEntityToDeclarationError = class extends Error {
752
+ };
751
753
  function reflectTypeEntityToDeclaration(type, checker) {
752
754
  let realSymbol = checker.getSymbolAtLocation(type);
753
755
  if (realSymbol === void 0) {
754
- throw new Error(`Cannot resolve type entity ${type.getText()} to symbol`);
756
+ throw new TypeEntityToDeclarationError(`Cannot resolve type entity ${type.getText()} to symbol`);
755
757
  }
756
758
  while (realSymbol.flags & ts5.SymbolFlags.Alias) {
757
759
  realSymbol = checker.getAliasedSymbol(realSymbol);
@@ -762,28 +764,28 @@ function reflectTypeEntityToDeclaration(type, checker) {
762
764
  } else if (realSymbol.declarations !== void 0 && realSymbol.declarations.length === 1) {
763
765
  node = realSymbol.declarations[0];
764
766
  } else {
765
- throw new Error(`Cannot resolve type entity symbol to declaration`);
767
+ throw new TypeEntityToDeclarationError(`Cannot resolve type entity symbol to declaration`);
766
768
  }
767
769
  if (ts5.isQualifiedName(type)) {
768
770
  if (!ts5.isIdentifier(type.left)) {
769
- throw new Error(`Cannot handle qualified name with non-identifier lhs`);
771
+ throw new TypeEntityToDeclarationError(`Cannot handle qualified name with non-identifier lhs`);
770
772
  }
771
773
  const symbol = checker.getSymbolAtLocation(type.left);
772
774
  if (symbol === void 0 || symbol.declarations === void 0 || symbol.declarations.length !== 1) {
773
- throw new Error(`Cannot resolve qualified type entity lhs to symbol`);
775
+ throw new TypeEntityToDeclarationError(`Cannot resolve qualified type entity lhs to symbol`);
774
776
  }
775
777
  const decl = symbol.declarations[0];
776
778
  if (ts5.isNamespaceImport(decl)) {
777
779
  const clause = decl.parent;
778
780
  const importDecl = clause.parent;
779
781
  if (!ts5.isStringLiteral(importDecl.moduleSpecifier)) {
780
- throw new Error(`Module specifier is not a string`);
782
+ throw new TypeEntityToDeclarationError(`Module specifier is not a string`);
781
783
  }
782
784
  return { node, from: importDecl.moduleSpecifier.text };
783
785
  } else if (ts5.isModuleDeclaration(decl)) {
784
786
  return { node, from: null };
785
787
  } else {
786
- throw new Error(`Unknown import type?`);
788
+ throw new TypeEntityToDeclarationError(`Unknown import type?`);
787
789
  }
788
790
  } else {
789
791
  return { node, from: null };
@@ -948,7 +950,7 @@ function getExportedName(decl, originalId) {
948
950
  }
949
951
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
950
952
 
951
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
953
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
952
954
  import ts6 from "typescript";
953
955
  var TS = /\.tsx?$/i;
954
956
  var D_TS = /\.d\.ts$/i;
@@ -1049,7 +1051,7 @@ function toUnredirectedSourceFile(sf) {
1049
1051
  return redirectInfo.unredirected;
1050
1052
  }
1051
1053
 
1052
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1054
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1053
1055
  var Reference = class {
1054
1056
  node;
1055
1057
  bestGuessOwningModule;
@@ -1121,14 +1123,14 @@ var Reference = class {
1121
1123
  }
1122
1124
  };
1123
1125
 
1124
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1126
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1125
1127
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
1126
1128
 
1127
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1129
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1128
1130
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
1129
1131
  import ts7 from "typescript";
1130
1132
 
1131
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1133
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1132
1134
  function findExportedNameOfNode(target, file, reflector) {
1133
1135
  const exports = reflector.getExportsOfModule(file);
1134
1136
  if (exports === null) {
@@ -1148,7 +1150,7 @@ function findExportedNameOfNode(target, file, reflector) {
1148
1150
  return foundExportName;
1149
1151
  }
1150
1152
 
1151
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1153
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1152
1154
  var ImportFlags;
1153
1155
  (function(ImportFlags2) {
1154
1156
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -1158,8 +1160,13 @@ var ImportFlags;
1158
1160
  ImportFlags2[ImportFlags2["AllowRelativeDtsImports"] = 8] = "AllowRelativeDtsImports";
1159
1161
  ImportFlags2[ImportFlags2["AllowAmbientReferences"] = 16] = "AllowAmbientReferences";
1160
1162
  })(ImportFlags || (ImportFlags = {}));
1163
+ var ReferenceEmitKind;
1164
+ (function(ReferenceEmitKind2) {
1165
+ ReferenceEmitKind2[ReferenceEmitKind2["Success"] = 0] = "Success";
1166
+ ReferenceEmitKind2[ReferenceEmitKind2["Failed"] = 1] = "Failed";
1167
+ })(ReferenceEmitKind || (ReferenceEmitKind = {}));
1161
1168
  function assertSuccessfulReferenceEmit(result, origin, typeKind) {
1162
- if (result.kind === 0) {
1169
+ if (result.kind === ReferenceEmitKind.Success) {
1163
1170
  return;
1164
1171
  }
1165
1172
  const message = makeDiagnosticChain(`Unable to import ${typeKind} ${nodeNameForError(result.ref.node)}.`, [makeDiagnosticChain(result.reason)]);
@@ -1180,7 +1187,7 @@ var ReferenceEmitter = class {
1180
1187
  }
1181
1188
  }
1182
1189
  return {
1183
- kind: 1,
1190
+ kind: ReferenceEmitKind.Failed,
1184
1191
  ref,
1185
1192
  context,
1186
1193
  reason: `Unable to write a reference to ${nodeNameForError(ref.node)}.`
@@ -1195,7 +1202,7 @@ var LocalIdentifierStrategy = class {
1195
1202
  }
1196
1203
  if (!isDeclaration(ref.node) && refSf === context) {
1197
1204
  return {
1198
- kind: 0,
1205
+ kind: ReferenceEmitKind.Success,
1199
1206
  expression: new WrappedNodeExpr(ref.node),
1200
1207
  importedFile: null
1201
1208
  };
@@ -1204,7 +1211,7 @@ var LocalIdentifierStrategy = class {
1204
1211
  const identifier2 = identifierOfNode(ref.node);
1205
1212
  if (identifier2 !== null) {
1206
1213
  return {
1207
- kind: 0,
1214
+ kind: ReferenceEmitKind.Success,
1208
1215
  expression: new WrappedNodeExpr(identifier2),
1209
1216
  importedFile: null
1210
1217
  };
@@ -1215,7 +1222,7 @@ var LocalIdentifierStrategy = class {
1215
1222
  const identifier = ref.getIdentityIn(context);
1216
1223
  if (identifier !== null) {
1217
1224
  return {
1218
- kind: 0,
1225
+ kind: ReferenceEmitKind.Success,
1219
1226
  expression: new WrappedNodeExpr(identifier),
1220
1227
  importedFile: null
1221
1228
  };
@@ -1248,14 +1255,14 @@ var AbsoluteModuleStrategy = class {
1248
1255
  const exports = this.getExportsOfModule(specifier, resolutionContext);
1249
1256
  if (exports.module === null) {
1250
1257
  return {
1251
- kind: 1,
1258
+ kind: ReferenceEmitKind.Failed,
1252
1259
  ref,
1253
1260
  context,
1254
1261
  reason: `The module '${specifier}' could not be found.`
1255
1262
  };
1256
1263
  } else if (exports.exportMap === null || !exports.exportMap.has(ref.node)) {
1257
1264
  return {
1258
- kind: 1,
1265
+ kind: ReferenceEmitKind.Failed,
1259
1266
  ref,
1260
1267
  context,
1261
1268
  reason: `The symbol is not exported from ${exports.module.fileName} (module '${specifier}').`
@@ -1263,7 +1270,7 @@ var AbsoluteModuleStrategy = class {
1263
1270
  }
1264
1271
  const symbolName = exports.exportMap.get(ref.node);
1265
1272
  return {
1266
- kind: 0,
1273
+ kind: ReferenceEmitKind.Success,
1267
1274
  expression: new ExternalExpr(new ExternalReference(specifier, symbolName)),
1268
1275
  importedFile: exports.module
1269
1276
  };
@@ -1313,7 +1320,7 @@ var LogicalProjectStrategy = class {
1313
1320
  return this.relativePathStrategy.emit(ref, context);
1314
1321
  }
1315
1322
  return {
1316
- kind: 1,
1323
+ kind: ReferenceEmitKind.Failed,
1317
1324
  ref,
1318
1325
  context,
1319
1326
  reason: `The file ${destSf.fileName} is outside of the configured 'rootDir'.`
@@ -1329,7 +1336,7 @@ var LogicalProjectStrategy = class {
1329
1336
  const name = findExportedNameOfNode(ref.node, destSf, this.reflector);
1330
1337
  if (name === null) {
1331
1338
  return {
1332
- kind: 1,
1339
+ kind: ReferenceEmitKind.Failed,
1333
1340
  ref,
1334
1341
  context,
1335
1342
  reason: `The symbol is not exported from ${destSf.fileName}.`
@@ -1337,7 +1344,7 @@ var LogicalProjectStrategy = class {
1337
1344
  }
1338
1345
  const moduleName = LogicalProjectPath.relativePathBetween(originPath, destPath);
1339
1346
  return {
1340
- kind: 0,
1347
+ kind: ReferenceEmitKind.Success,
1341
1348
  expression: new ExternalExpr({ moduleName, name }),
1342
1349
  importedFile: destSf
1343
1350
  };
@@ -1355,14 +1362,14 @@ var RelativePathStrategy = class {
1355
1362
  const name = findExportedNameOfNode(ref.node, destSf, this.reflector);
1356
1363
  if (name === null) {
1357
1364
  return {
1358
- kind: 1,
1365
+ kind: ReferenceEmitKind.Failed,
1359
1366
  ref,
1360
1367
  context,
1361
1368
  reason: `The symbol is not exported from ${destSf.fileName}.`
1362
1369
  };
1363
1370
  }
1364
1371
  return {
1365
- kind: 0,
1372
+ kind: ReferenceEmitKind.Success,
1366
1373
  expression: new ExternalExpr({ moduleName, name }),
1367
1374
  importedFile: destSf
1368
1375
  };
@@ -1383,14 +1390,14 @@ var UnifiedModulesStrategy = class {
1383
1390
  }
1384
1391
  const moduleName = this.unifiedModulesHost.fileNameToModuleName(destSf.fileName, context.fileName);
1385
1392
  return {
1386
- kind: 0,
1393
+ kind: ReferenceEmitKind.Success,
1387
1394
  expression: new ExternalExpr({ moduleName, name }),
1388
1395
  importedFile: destSf
1389
1396
  };
1390
1397
  }
1391
1398
  };
1392
1399
 
1393
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1400
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1394
1401
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
1395
1402
  var UnifiedModulesAliasingHost = class {
1396
1403
  unifiedModulesHost;
@@ -1452,14 +1459,14 @@ var AliasStrategy = class {
1452
1459
  return null;
1453
1460
  }
1454
1461
  return {
1455
- kind: 0,
1462
+ kind: ReferenceEmitKind.Success,
1456
1463
  expression: ref.alias,
1457
1464
  importedFile: "unknown"
1458
1465
  };
1459
1466
  }
1460
1467
  };
1461
1468
 
1462
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1469
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1463
1470
  function relativePathBetween(from, to) {
1464
1471
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
1465
1472
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -1478,7 +1485,7 @@ function getProjectRelativePath(sourceFile, rootDirs, compilerHost) {
1478
1485
  return null;
1479
1486
  }
1480
1487
 
1481
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1488
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1482
1489
  var NoopImportRewriter = class {
1483
1490
  rewriteSymbol(symbol, specifier) {
1484
1491
  return symbol;
@@ -1538,7 +1545,7 @@ function validateAndRewriteCoreSymbol(name) {
1538
1545
  return CORE_SUPPORTED_SYMBOLS.get(name);
1539
1546
  }
1540
1547
 
1541
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1548
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1542
1549
  import ts8 from "typescript";
1543
1550
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
1544
1551
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -1573,7 +1580,7 @@ function throwIncompatibleTransformationContextError() {
1573
1580
  throw Error("Angular compiler is incompatible with this version of the TypeScript compiler.\n\nIf you recently updated TypeScript and this issue surfaces now, consider downgrading.\n\nPlease report an issue on the Angular repositories when this issue surfaces and you are using a supposedly compatible TypeScript version.");
1574
1581
  }
1575
1582
 
1576
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1583
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1577
1584
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
1578
1585
  function attachDefaultImportDeclaration(expr, importDecl) {
1579
1586
  expr[DefaultImportDeclaration] = importDecl;
@@ -1612,7 +1619,7 @@ var DefaultImportTracker = class {
1612
1619
  }
1613
1620
  };
1614
1621
 
1615
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1622
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1616
1623
  import ts9 from "typescript";
1617
1624
  var AssumeEager = "AssumeEager";
1618
1625
  var DeferredSymbolTracker = class {
@@ -1735,7 +1742,7 @@ var DeferredSymbolTracker = class {
1735
1742
  }
1736
1743
  };
1737
1744
 
1738
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1745
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1739
1746
  import ts10 from "typescript";
1740
1747
  var ImportedSymbolsTracker = class {
1741
1748
  fileToNamedImports = /* @__PURE__ */ new WeakMap();
@@ -1803,7 +1810,7 @@ var ImportedSymbolsTracker = class {
1803
1810
  }
1804
1811
  };
1805
1812
 
1806
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1813
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1807
1814
  import ts11 from "typescript";
1808
1815
  var LocalCompilationExtraImportsTracker = class {
1809
1816
  typeChecker;
@@ -1855,7 +1862,7 @@ function removeQuotations(s) {
1855
1862
  return s.substring(1, s.length - 1).trim();
1856
1863
  }
1857
1864
 
1858
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1865
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1859
1866
  var ModuleResolver = class {
1860
1867
  program;
1861
1868
  compilerOptions;
@@ -1876,10 +1883,10 @@ var ModuleResolver = class {
1876
1883
  }
1877
1884
  };
1878
1885
 
1879
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1886
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1880
1887
  import ts16 from "typescript";
1881
1888
 
1882
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1889
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1883
1890
  import ts12 from "typescript";
1884
1891
  function createGenerateUniqueIdentifierHelper() {
1885
1892
  const generatedIdentifiers = /* @__PURE__ */ new Set();
@@ -1905,7 +1912,7 @@ function createGenerateUniqueIdentifierHelper() {
1905
1912
  };
1906
1913
  }
1907
1914
 
1908
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1915
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1909
1916
  import ts13 from "typescript";
1910
1917
  function createTsTransformForImportManager(manager, extraStatementsForFiles) {
1911
1918
  return (ctx) => {
@@ -1972,7 +1979,7 @@ function isImportStatement(stmt) {
1972
1979
  return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
1973
1980
  }
1974
1981
 
1975
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1982
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1976
1983
  import ts14 from "typescript";
1977
1984
  function attemptToReuseGeneratedImports(tracker, request) {
1978
1985
  const requestHash = hashImportRequest(request);
@@ -1999,7 +2006,7 @@ function hashImportRequest(req) {
1999
2006
  return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
2000
2007
  }
2001
2008
 
2002
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
2009
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
2003
2010
  import ts15 from "typescript";
2004
2011
  function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
2005
2012
  let candidateImportToBeUpdated = null;
@@ -2059,7 +2066,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
2059
2066
  return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
2060
2067
  }
2061
2068
 
2062
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
2069
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
2063
2070
  var presetImportManagerForceNamespaceImports = {
2064
2071
  disableOriginalSourceFileReuse: true,
2065
2072
  forceGenerateNamespacesForNewImports: true
@@ -2282,7 +2289,7 @@ function createImportReference(asTypeReference, ref) {
2282
2289
  }
2283
2290
  }
2284
2291
 
2285
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2292
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2286
2293
  var Context = class {
2287
2294
  isStatement;
2288
2295
  constructor(isStatement) {
@@ -2296,7 +2303,7 @@ var Context = class {
2296
2303
  }
2297
2304
  };
2298
2305
 
2299
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2306
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2300
2307
  import * as o from "@angular/compiler";
2301
2308
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
2302
2309
  [o.UnaryOperator.Minus, "-"],
@@ -2552,7 +2559,7 @@ function createRange(span) {
2552
2559
  };
2553
2560
  }
2554
2561
 
2555
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2562
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2556
2563
  import ts17 from "typescript";
2557
2564
  var INELIGIBLE = {};
2558
2565
  function canEmitType(type, canEmit) {
@@ -2628,11 +2635,11 @@ var TypeEmitter = class {
2628
2635
  }
2629
2636
  };
2630
2637
 
2631
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2638
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2632
2639
  import * as o2 from "@angular/compiler";
2633
2640
  import ts19 from "typescript";
2634
2641
 
2635
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2642
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2636
2643
  import ts18 from "typescript";
2637
2644
  function tsNumericExpression(value) {
2638
2645
  if (value < 0) {
@@ -2642,7 +2649,7 @@ function tsNumericExpression(value) {
2642
2649
  return ts18.factory.createNumericLiteral(value);
2643
2650
  }
2644
2651
 
2645
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2652
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2646
2653
  function translateType(type, contextFile, reflector, refEmitter, imports) {
2647
2654
  return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
2648
2655
  }
@@ -2863,7 +2870,7 @@ var TypeTranslatorVisitor = class {
2863
2870
  }
2864
2871
  };
2865
2872
 
2866
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2873
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2867
2874
  import ts20 from "typescript";
2868
2875
  var PureAnnotation;
2869
2876
  (function(PureAnnotation2) {
@@ -3067,7 +3074,7 @@ function attachComments(statement, leadingComments) {
3067
3074
  }
3068
3075
  }
3069
3076
 
3070
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
3077
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
3071
3078
  function translateExpression(contextFile, expression, imports, options = {}) {
3072
3079
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
3073
3080
  }
@@ -3104,6 +3111,7 @@ export {
3104
3111
  isAssignment,
3105
3112
  toUnredirectedSourceFile,
3106
3113
  ImportFlags,
3114
+ ReferenceEmitKind,
3107
3115
  assertSuccessfulReferenceEmit,
3108
3116
  ReferenceEmitter,
3109
3117
  LocalIdentifierStrategy,
@@ -3132,6 +3140,7 @@ export {
3132
3140
  isNamedClassDeclaration,
3133
3141
  classMemberAccessLevelToString,
3134
3142
  TypeScriptReflectionHost,
3143
+ TypeEntityToDeclarationError,
3135
3144
  reflectTypeEntityToDeclaration,
3136
3145
  filterToMembersWithDecorator,
3137
3146
  reflectClassMember,
@@ -3165,4 +3174,4 @@ export {
3165
3174
  * Use of this source code is governed by an MIT-style license that can be
3166
3175
  * found in the LICENSE file at https://angular.dev/license
3167
3176
  */
3168
- //# sourceMappingURL=chunk-TRCFFQ47.js.map
3177
+ //# sourceMappingURL=chunk-NC4E5UYB.js.map