@angular/compiler-cli 19.1.4 → 19.2.0-next.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 (40) hide show
  1. package/bundles/{chunk-STORTTKY.js → chunk-37JMVF7H.js} +8 -8
  2. package/bundles/{chunk-5UDS2TPQ.js → chunk-77D5CI2U.js} +7 -7
  3. package/bundles/{chunk-FKFYHCYY.js → chunk-BQBPEWUM.js} +81 -81
  4. package/bundles/{chunk-KEYCV7GA.js → chunk-BYC2LPQI.js} +31 -31
  5. package/bundles/{chunk-VKWVSPWR.js → chunk-E4OAEK7A.js} +12 -12
  6. package/bundles/{chunk-GBKXY6BH.js → chunk-FKXFEX7K.js} +3 -3
  7. package/bundles/{chunk-XZ4L2FK2.js → chunk-IVYDKMDU.js} +3 -3
  8. package/bundles/{chunk-WKHF7UQD.js → chunk-J3VFQRNB.js} +74 -56
  9. package/bundles/{chunk-WKHF7UQD.js.map → chunk-J3VFQRNB.js.map} +1 -1
  10. package/bundles/{chunk-DTXH7LOW.js → chunk-L6PLONOG.js} +154 -125
  11. package/bundles/{chunk-DTXH7LOW.js.map → chunk-L6PLONOG.js.map} +1 -1
  12. package/bundles/{chunk-I6R3GL3L.js → chunk-Q2WE7ECN.js} +5 -5
  13. package/bundles/{chunk-IWQC66R5.js → chunk-YBMV7GU7.js} +5 -5
  14. package/bundles/index.js +12 -12
  15. package/bundles/linker/babel/index.js +16 -13
  16. package/bundles/linker/babel/index.js.map +1 -1
  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/babel/src/ast/babel_ast_factory.d.ts +1 -0
  27. package/linker/src/file_linker/partial_linkers/util.d.ts +1 -1
  28. package/package.json +2 -2
  29. package/src/ngtsc/translator/src/api/ast_factory.d.ts +11 -0
  30. package/src/ngtsc/translator/src/translator.d.ts +4 -1
  31. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +1 -0
  32. /package/bundles/{chunk-STORTTKY.js.map → chunk-37JMVF7H.js.map} +0 -0
  33. /package/bundles/{chunk-5UDS2TPQ.js.map → chunk-77D5CI2U.js.map} +0 -0
  34. /package/bundles/{chunk-FKFYHCYY.js.map → chunk-BQBPEWUM.js.map} +0 -0
  35. /package/bundles/{chunk-KEYCV7GA.js.map → chunk-BYC2LPQI.js.map} +0 -0
  36. /package/bundles/{chunk-VKWVSPWR.js.map → chunk-E4OAEK7A.js.map} +0 -0
  37. /package/bundles/{chunk-GBKXY6BH.js.map → chunk-FKXFEX7K.js.map} +0 -0
  38. /package/bundles/{chunk-XZ4L2FK2.js.map → chunk-IVYDKMDU.js.map} +0 -0
  39. /package/bundles/{chunk-I6R3GL3L.js.map → chunk-Q2WE7ECN.js.map} +0 -0
  40. /package/bundles/{chunk-IWQC66R5.js.map → chunk-YBMV7GU7.js.map} +0 -0
@@ -12,9 +12,9 @@ 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_code.mjs
17
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
18
18
  var ErrorCode;
19
19
  (function(ErrorCode2) {
20
20
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -111,7 +111,7 @@ var ErrorCode;
111
111
  ErrorCode2[ErrorCode2["LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION"] = 11003] = "LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION";
112
112
  })(ErrorCode || (ErrorCode = {}));
113
113
 
114
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
114
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
115
115
  var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
116
116
  function replaceTsWithNgInErrors(errors) {
117
117
  return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
@@ -120,7 +120,7 @@ function ngErrorCode(code) {
120
120
  return parseInt("-99" + code);
121
121
  }
122
122
 
123
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
123
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
124
124
  import ts from "typescript";
125
125
  var FatalDiagnosticError = class extends Error {
126
126
  code;
@@ -189,7 +189,7 @@ function isLocalCompilationDiagnostics(diagnostic) {
189
189
  return diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNRESOLVED_CONST) || diagnostic.code === ngErrorCode(ErrorCode.LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION);
190
190
  }
191
191
 
192
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
192
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
193
193
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
194
194
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
195
195
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -201,10 +201,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
201
201
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
202
202
  ]);
203
203
 
204
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
204
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
205
205
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.dev/errors";
206
206
 
207
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
207
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
208
208
  var ExtendedTemplateDiagnosticName;
209
209
  (function(ExtendedTemplateDiagnosticName2) {
210
210
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -222,10 +222,10 @@ var ExtendedTemplateDiagnosticName;
222
222
  ExtendedTemplateDiagnosticName2["UNUSED_STANDALONE_IMPORTS"] = "unusedStandaloneImports";
223
223
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
224
224
 
225
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
225
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
226
226
  import ts5 from "typescript";
227
227
 
228
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
228
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/host.mjs
229
229
  import ts2 from "typescript";
230
230
  function isDecoratorIdentifier(exp) {
231
231
  return ts2.isIdentifier(exp) || ts2.isPropertyAccessExpression(exp) && ts2.isIdentifier(exp.expression) && ts2.isIdentifier(exp.name);
@@ -248,7 +248,7 @@ var ClassMemberAccessLevel;
248
248
  })(ClassMemberAccessLevel || (ClassMemberAccessLevel = {}));
249
249
  var AmbientImport = {};
250
250
 
251
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
251
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/type_to_value.mjs
252
252
  import ts3 from "typescript";
253
253
  function typeToValue(typeNode, checker, isLocalCompilation) {
254
254
  var _a, _b;
@@ -432,7 +432,7 @@ function extractModuleName(node) {
432
432
  return node.moduleSpecifier.text;
433
433
  }
434
434
 
435
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
435
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/util.mjs
436
436
  import ts4 from "typescript";
437
437
  function isNamedClassDeclaration(node) {
438
438
  return ts4.isClassDeclaration(node) && isIdentifier(node.name);
@@ -456,7 +456,7 @@ function classMemberAccessLevelToString(level) {
456
456
  }
457
457
  }
458
458
 
459
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
459
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/reflection/src/typescript.mjs
460
460
  var TypeScriptReflectionHost = class {
461
461
  checker;
462
462
  isLocalCompilation;
@@ -962,7 +962,7 @@ function getExportedName(decl, originalId) {
962
962
  }
963
963
  var LocalExportedDeclarations = Symbol("LocalExportedDeclarations");
964
964
 
965
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
965
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
966
966
  import ts6 from "typescript";
967
967
  var TS = /\.tsx?$/i;
968
968
  var D_TS = /\.d\.ts$/i;
@@ -1063,7 +1063,7 @@ function toUnredirectedSourceFile(sf) {
1063
1063
  return redirectInfo.unredirected;
1064
1064
  }
1065
1065
 
1066
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1066
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
1067
1067
  var Reference = class {
1068
1068
  node;
1069
1069
  bestGuessOwningModule;
@@ -1135,14 +1135,14 @@ var Reference = class {
1135
1135
  }
1136
1136
  };
1137
1137
 
1138
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1138
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1139
1139
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
1140
1140
 
1141
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1141
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1142
1142
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
1143
1143
  import ts7 from "typescript";
1144
1144
 
1145
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1145
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
1146
1146
  function findExportedNameOfNode(target, file, reflector) {
1147
1147
  const exports = reflector.getExportsOfModule(file);
1148
1148
  if (exports === null) {
@@ -1162,7 +1162,7 @@ function findExportedNameOfNode(target, file, reflector) {
1162
1162
  return foundExportName;
1163
1163
  }
1164
1164
 
1165
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1165
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
1166
1166
  var ImportFlags;
1167
1167
  (function(ImportFlags2) {
1168
1168
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -1409,7 +1409,7 @@ var UnifiedModulesStrategy = class {
1409
1409
  }
1410
1410
  };
1411
1411
 
1412
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1412
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
1413
1413
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
1414
1414
  var UnifiedModulesAliasingHost = class {
1415
1415
  unifiedModulesHost;
@@ -1478,7 +1478,7 @@ var AliasStrategy = class {
1478
1478
  }
1479
1479
  };
1480
1480
 
1481
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1481
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
1482
1482
  function relativePathBetween(from, to) {
1483
1483
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
1484
1484
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -1497,7 +1497,7 @@ function getProjectRelativePath(fileName, rootDirs, compilerHost) {
1497
1497
  return null;
1498
1498
  }
1499
1499
 
1500
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1500
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
1501
1501
  var NoopImportRewriter = class {
1502
1502
  rewriteSymbol(symbol, specifier) {
1503
1503
  return symbol;
@@ -1557,7 +1557,7 @@ function validateAndRewriteCoreSymbol(name) {
1557
1557
  return CORE_SUPPORTED_SYMBOLS.get(name);
1558
1558
  }
1559
1559
 
1560
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1560
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/patch_alias_reference_resolution.mjs
1561
1561
  import ts8 from "typescript";
1562
1562
  var patchedReferencedAliasesSymbol = Symbol("patchedReferencedAliases");
1563
1563
  function loadIsReferencedAliasDeclarationPatch(context) {
@@ -1592,7 +1592,7 @@ function throwIncompatibleTransformationContextError() {
1592
1592
  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.");
1593
1593
  }
1594
1594
 
1595
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1595
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
1596
1596
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
1597
1597
  function attachDefaultImportDeclaration(expr, importDecl) {
1598
1598
  expr[DefaultImportDeclaration] = importDecl;
@@ -1631,7 +1631,7 @@ var DefaultImportTracker = class {
1631
1631
  }
1632
1632
  };
1633
1633
 
1634
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1634
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/deferred_symbol_tracker.mjs
1635
1635
  import ts9 from "typescript";
1636
1636
  var AssumeEager = "AssumeEager";
1637
1637
  var DeferredSymbolTracker = class {
@@ -1754,7 +1754,7 @@ var DeferredSymbolTracker = class {
1754
1754
  }
1755
1755
  };
1756
1756
 
1757
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1757
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/imported_symbols_tracker.mjs
1758
1758
  import ts10 from "typescript";
1759
1759
  var ImportedSymbolsTracker = class {
1760
1760
  fileToNamedImports = /* @__PURE__ */ new WeakMap();
@@ -1822,7 +1822,7 @@ var ImportedSymbolsTracker = class {
1822
1822
  }
1823
1823
  };
1824
1824
 
1825
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1825
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/local_compilation_extra_imports_tracker.mjs
1826
1826
  import ts11 from "typescript";
1827
1827
  var LocalCompilationExtraImportsTracker = class {
1828
1828
  typeChecker;
@@ -1874,7 +1874,7 @@ function removeQuotations(s) {
1874
1874
  return s.substring(1, s.length - 1).trim();
1875
1875
  }
1876
1876
 
1877
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1877
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
1878
1878
  var ModuleResolver = class {
1879
1879
  program;
1880
1880
  compilerOptions;
@@ -1895,10 +1895,10 @@ var ModuleResolver = class {
1895
1895
  }
1896
1896
  };
1897
1897
 
1898
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1898
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
1899
1899
  import ts16 from "typescript";
1900
1900
 
1901
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1901
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/check_unique_identifier_name.mjs
1902
1902
  import ts12 from "typescript";
1903
1903
  function createGenerateUniqueIdentifierHelper() {
1904
1904
  const generatedIdentifiers = /* @__PURE__ */ new Set();
@@ -1924,7 +1924,7 @@ function createGenerateUniqueIdentifierHelper() {
1924
1924
  };
1925
1925
  }
1926
1926
 
1927
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1927
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_typescript_transform.mjs
1928
1928
  import ts13 from "typescript";
1929
1929
  function createTsTransformForImportManager(manager, extraStatementsForFiles) {
1930
1930
  return (ctx) => {
@@ -1991,7 +1991,7 @@ function isImportStatement(stmt) {
1991
1991
  return ts13.isImportDeclaration(stmt) || ts13.isImportEqualsDeclaration(stmt) || ts13.isNamespaceImport(stmt);
1992
1992
  }
1993
1993
 
1994
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1994
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_generated_imports.mjs
1995
1995
  import ts14 from "typescript";
1996
1996
  function attemptToReuseGeneratedImports(tracker, request) {
1997
1997
  const requestHash = hashImportRequest(request);
@@ -2018,7 +2018,7 @@ function hashImportRequest(req) {
2018
2018
  return `${req.requestedFile.fileName}:${req.exportModuleSpecifier}:${req.exportSymbolName}${req.unsafeAliasOverride ? ":" + req.unsafeAliasOverride : ""}`;
2019
2019
  }
2020
2020
 
2021
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
2021
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/reuse_source_file_imports.mjs
2022
2022
  import ts15 from "typescript";
2023
2023
  function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
2024
2024
  let candidateImportToBeUpdated = null;
@@ -2078,7 +2078,7 @@ function attemptToReuseExistingSourceFileImports(tracker, sourceFile, request) {
2078
2078
  return fileUniqueAlias != null ? fileUniqueAlias : propertyName;
2079
2079
  }
2080
2080
 
2081
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
2081
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager/import_manager.mjs
2082
2082
  var presetImportManagerForceNamespaceImports = {
2083
2083
  disableOriginalSourceFileReuse: true,
2084
2084
  forceGenerateNamespacesForNewImports: true
@@ -2301,7 +2301,7 @@ function createImportReference(asTypeReference, ref) {
2301
2301
  }
2302
2302
  }
2303
2303
 
2304
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2304
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
2305
2305
  var Context = class {
2306
2306
  isStatement;
2307
2307
  constructor(isStatement) {
@@ -2315,7 +2315,7 @@ var Context = class {
2315
2315
  }
2316
2316
  };
2317
2317
 
2318
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2318
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
2319
2319
  import * as o from "@angular/compiler";
2320
2320
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
2321
2321
  [o.UnaryOperator.Minus, "-"],
@@ -2396,18 +2396,11 @@ var ExpressionTranslatorVisitor = class {
2396
2396
  visitInvokeFunctionExpr(ast, context) {
2397
2397
  return this.setSourceMapRange(this.factory.createCallExpression(ast.fn.visitExpression(this, context), ast.args.map((arg) => arg.visitExpression(this, context)), ast.pure), ast.sourceSpan);
2398
2398
  }
2399
- visitTaggedTemplateExpr(ast, context) {
2400
- return this.setSourceMapRange(this.createTaggedTemplateExpression(ast.tag.visitExpression(this, context), {
2401
- elements: ast.template.elements.map((e) => {
2402
- var _a;
2403
- return createTemplateElement({
2404
- cooked: e.text,
2405
- raw: e.rawText,
2406
- range: (_a = e.sourceSpan) != null ? _a : ast.sourceSpan
2407
- });
2408
- }),
2409
- expressions: ast.template.expressions.map((e) => e.visitExpression(this, context))
2410
- }), ast.sourceSpan);
2399
+ visitTaggedTemplateLiteralExpr(ast, context) {
2400
+ return this.setSourceMapRange(this.createTaggedTemplateExpression(ast.tag.visitExpression(this, context), this.getTemplateLiteralFromAst(ast.template, context)), ast.sourceSpan);
2401
+ }
2402
+ visitTemplateLiteralExpr(ast, context) {
2403
+ return this.setSourceMapRange(this.factory.createTemplateLiteral(this.getTemplateLiteralFromAst(ast, context)), ast.sourceSpan);
2411
2404
  }
2412
2405
  visitInstantiateExpr(ast, context) {
2413
2406
  return this.factory.createNewExpression(ast.classExpr.visitExpression(this, context), ast.args.map((arg) => arg.visitExpression(this, context)));
@@ -2525,6 +2518,9 @@ var ExpressionTranslatorVisitor = class {
2525
2518
  visitCommaExpr(ast, context) {
2526
2519
  throw new Error("Method not implemented.");
2527
2520
  }
2521
+ visitTemplateLiteralElementExpr(ast, context) {
2522
+ throw new Error("Method not implemented");
2523
+ }
2528
2524
  visitWrappedNodeExpr(ast, _context) {
2529
2525
  this.recordWrappedNode(ast);
2530
2526
  return ast.node;
@@ -2550,6 +2546,19 @@ var ExpressionTranslatorVisitor = class {
2550
2546
  }
2551
2547
  return statement;
2552
2548
  }
2549
+ getTemplateLiteralFromAst(ast, context) {
2550
+ return {
2551
+ elements: ast.elements.map((e) => {
2552
+ var _a;
2553
+ return createTemplateElement({
2554
+ cooked: e.text,
2555
+ raw: e.rawText,
2556
+ range: (_a = e.sourceSpan) != null ? _a : ast.sourceSpan
2557
+ });
2558
+ }),
2559
+ expressions: ast.expressions.map((e) => e.visitExpression(this, context))
2560
+ };
2561
+ }
2553
2562
  };
2554
2563
  function createTemplateElement({ cooked, raw, range }) {
2555
2564
  return { cooked, raw, range: createRange(range) };
@@ -2571,7 +2580,7 @@ function createRange(span) {
2571
2580
  };
2572
2581
  }
2573
2582
 
2574
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2583
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_emitter.mjs
2575
2584
  import ts17 from "typescript";
2576
2585
  var INELIGIBLE = {};
2577
2586
  function canEmitType(type, canEmit) {
@@ -2647,11 +2656,11 @@ var TypeEmitter = class {
2647
2656
  }
2648
2657
  };
2649
2658
 
2650
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2659
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2651
2660
  import * as o2 from "@angular/compiler";
2652
2661
  import ts19 from "typescript";
2653
2662
 
2654
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2663
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/ts_util.mjs
2655
2664
  import ts18 from "typescript";
2656
2665
  function tsNumericExpression(value) {
2657
2666
  if (value < 0) {
@@ -2661,7 +2670,7 @@ function tsNumericExpression(value) {
2661
2670
  return ts18.factory.createNumericLiteral(value);
2662
2671
  }
2663
2672
 
2664
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2673
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
2665
2674
  function translateType(type, contextFile, reflector, refEmitter, imports) {
2666
2675
  return type.visitType(new TypeTranslatorVisitor(imports, contextFile, reflector, refEmitter), new Context(false));
2667
2676
  }
@@ -2742,7 +2751,13 @@ var TypeTranslatorVisitor = class {
2742
2751
  visitInvokeFunctionExpr(ast, context) {
2743
2752
  throw new Error("Method not implemented.");
2744
2753
  }
2745
- visitTaggedTemplateExpr(ast, context) {
2754
+ visitTaggedTemplateLiteralExpr(ast, context) {
2755
+ throw new Error("Method not implemented.");
2756
+ }
2757
+ visitTemplateLiteralExpr(ast, context) {
2758
+ throw new Error("Method not implemented.");
2759
+ }
2760
+ visitTemplateLiteralElementExpr(ast, context) {
2746
2761
  throw new Error("Method not implemented.");
2747
2762
  }
2748
2763
  visitInstantiateExpr(ast, context) {
@@ -2882,7 +2897,7 @@ var TypeTranslatorVisitor = class {
2882
2897
  }
2883
2898
  };
2884
2899
 
2885
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2900
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
2886
2901
  import ts20 from "typescript";
2887
2902
  var PureAnnotation;
2888
2903
  (function(PureAnnotation2) {
@@ -3007,6 +3022,9 @@ var TypeScriptAstFactory = class {
3007
3022
  return ts20.factory.createReturnStatement(expression != null ? expression : void 0);
3008
3023
  }
3009
3024
  createTaggedTemplate(tag, template) {
3025
+ return ts20.factory.createTaggedTemplateExpression(tag, void 0, this.createTemplateLiteral(template));
3026
+ }
3027
+ createTemplateLiteral(template) {
3010
3028
  let templateLiteral;
3011
3029
  const length = template.elements.length;
3012
3030
  const head = template.elements[0];
@@ -3034,7 +3052,7 @@ var TypeScriptAstFactory = class {
3034
3052
  if (head.range !== null) {
3035
3053
  this.setSourceMapRange(templateLiteral, head.range);
3036
3054
  }
3037
- return ts20.factory.createTaggedTemplateExpression(tag, void 0, templateLiteral);
3055
+ return templateLiteral;
3038
3056
  }
3039
3057
  createThrowStatement = ts20.factory.createThrowStatement;
3040
3058
  createTypeOfExpression = ts20.factory.createTypeOfExpression;
@@ -3086,7 +3104,7 @@ function attachComments(statement, leadingComments) {
3086
3104
  }
3087
3105
  }
3088
3106
 
3089
- // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
3107
+ // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
3090
3108
  function translateExpression(contextFile, expression, imports, options = {}) {
3091
3109
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, contextFile, options), new Context(false));
3092
3110
  }
@@ -3186,4 +3204,4 @@ export {
3186
3204
  * Use of this source code is governed by an MIT-style license that can be
3187
3205
  * found in the LICENSE file at https://angular.dev/license
3188
3206
  */
3189
- //# sourceMappingURL=chunk-WKHF7UQD.js.map
3207
+ //# sourceMappingURL=chunk-J3VFQRNB.js.map