@angular/compiler-cli 15.1.0-next.3 → 15.1.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 (439) hide show
  1. package/bundles/{chunk-3S7MERES.js → chunk-2BYULPLE.js} +72 -76
  2. package/bundles/chunk-2BYULPLE.js.map +6 -0
  3. package/bundles/{chunk-EFL37X7Q.js → chunk-64X67E3N.js} +31 -32
  4. package/bundles/chunk-64X67E3N.js.map +6 -0
  5. package/bundles/{chunk-OUTDZGN7.js → chunk-6ZJFIQBG.js} +7 -8
  6. package/bundles/chunk-6ZJFIQBG.js.map +6 -0
  7. package/bundles/{chunk-DLVFMDSC.js → chunk-7DUI3BSX.js} +2 -3
  8. package/bundles/chunk-7DUI3BSX.js.map +6 -0
  9. package/bundles/{chunk-E7DPJFUS.js → chunk-EC5K6QPP.js} +10 -11
  10. package/bundles/chunk-EC5K6QPP.js.map +6 -0
  11. package/bundles/{chunk-I4VIIB6S.js → chunk-MK5G5BMU.js} +106 -112
  12. package/bundles/chunk-MK5G5BMU.js.map +6 -0
  13. package/bundles/{chunk-MAF2KC4N.js → chunk-NJMZRTB6.js} +5 -6
  14. package/bundles/chunk-NJMZRTB6.js.map +6 -0
  15. package/bundles/{chunk-OHYTYUA4.js → chunk-O4JLZZWJ.js} +9 -14
  16. package/bundles/chunk-O4JLZZWJ.js.map +6 -0
  17. package/bundles/{chunk-Y6MBLTIR.js → chunk-Q6W3UCXI.js} +32 -34
  18. package/bundles/chunk-Q6W3UCXI.js.map +6 -0
  19. package/bundles/{chunk-3X2TSQ2D.js → chunk-REWAYEN7.js} +99 -105
  20. package/bundles/chunk-REWAYEN7.js.map +6 -0
  21. package/bundles/{chunk-V5JWXGQQ.js → chunk-RYP5C6YC.js} +65 -65
  22. package/bundles/chunk-RYP5C6YC.js.map +6 -0
  23. package/bundles/{chunk-OFXSI6E3.js → chunk-SBDNBITT.js} +3 -4
  24. package/bundles/chunk-SBDNBITT.js.map +6 -0
  25. package/bundles/{chunk-NDREJTCS.js → chunk-SRFZMXHZ.js} +1 -2
  26. package/bundles/{chunk-NDREJTCS.js.map → chunk-SRFZMXHZ.js.map} +0 -0
  27. package/bundles/{chunk-Y6OF4IE7.js → chunk-T4VR7YZM.js} +5 -6
  28. package/bundles/chunk-T4VR7YZM.js.map +6 -0
  29. package/bundles/{chunk-QVO57CDR.js → chunk-YRDMG3GM.js} +4 -5
  30. package/bundles/chunk-YRDMG3GM.js.map +6 -0
  31. package/bundles/{chunk-UN4WV3U4.js → chunk-Z534TW2O.js} +174 -138
  32. package/bundles/chunk-Z534TW2O.js.map +6 -0
  33. package/bundles/index.js +13 -15
  34. package/bundles/index.js.map +1 -1
  35. package/bundles/linker/babel/index.js +89 -99
  36. package/bundles/linker/babel/index.js.map +3 -3
  37. package/bundles/linker/index.js +5 -7
  38. package/bundles/ngcc/index.js +14 -17
  39. package/bundles/ngcc/index.js.map +1 -1
  40. package/bundles/ngcc/main-ngcc.js +14 -16
  41. package/bundles/ngcc/main-ngcc.js.map +1 -1
  42. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -16
  43. package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
  44. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +5 -6
  45. package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js.map +1 -1
  46. package/bundles/private/bazel.js +2 -3
  47. package/bundles/private/localize.js +4 -5
  48. package/bundles/private/migrations.js +6 -8
  49. package/bundles/private/tooling.js +3 -5
  50. package/bundles/src/bin/ng_xi18n.js +11 -13
  51. package/bundles/src/bin/ng_xi18n.js.map +1 -1
  52. package/bundles/src/bin/ngc.js +9 -11
  53. package/bundles/src/bin/ngc.js.map +1 -1
  54. package/bundles_metadata.json +1 -1
  55. package/index.d.ts +0 -1
  56. package/linker/babel/index.d.ts +0 -1
  57. package/linker/babel/src/ast/babel_ast_factory.d.ts +8 -2
  58. package/linker/babel/src/ast/babel_ast_host.d.ts +1 -2
  59. package/linker/babel/src/babel_declaration_scope.d.ts +1 -2
  60. package/linker/babel/src/babel_plugin.d.ts +8 -2
  61. package/linker/babel/src/es2015_linker_plugin.d.ts +1 -2
  62. package/linker/babel/src/linker_plugin_options.d.ts +0 -1
  63. package/linker/index.d.ts +0 -1
  64. package/linker/src/ast/ast_host.d.ts +0 -1
  65. package/linker/src/ast/ast_value.d.ts +0 -1
  66. package/linker/src/ast/typescript/typescript_ast_host.d.ts +0 -1
  67. package/linker/src/ast/utils.d.ts +0 -1
  68. package/linker/src/fatal_linker_error.d.ts +0 -1
  69. package/linker/src/file_linker/declaration_scope.d.ts +0 -1
  70. package/linker/src/file_linker/emit_scopes/emit_scope.d.ts +0 -1
  71. package/linker/src/file_linker/emit_scopes/local_emit_scope.d.ts +0 -1
  72. package/linker/src/file_linker/file_linker.d.ts +0 -1
  73. package/linker/src/file_linker/get_source_file.d.ts +0 -1
  74. package/linker/src/file_linker/linker_environment.d.ts +0 -1
  75. package/linker/src/file_linker/linker_options.d.ts +0 -1
  76. package/linker/src/file_linker/needs_linking.d.ts +0 -1
  77. package/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.d.ts +0 -1
  78. package/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +0 -1
  79. package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.d.ts +0 -1
  80. package/linker/src/file_linker/partial_linkers/partial_factory_linker_1.d.ts +0 -1
  81. package/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.d.ts +0 -1
  82. package/linker/src/file_linker/partial_linkers/partial_injector_linker_1.d.ts +0 -1
  83. package/linker/src/file_linker/partial_linkers/partial_linker.d.ts +0 -1
  84. package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +0 -1
  85. package/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.d.ts +0 -1
  86. package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.d.ts +0 -1
  87. package/linker/src/file_linker/partial_linkers/util.d.ts +0 -1
  88. package/linker/src/file_linker/translator.d.ts +0 -1
  89. package/linker/src/linker_import_generator.d.ts +0 -1
  90. package/ngcc/index.d.ts +0 -2
  91. package/ngcc/main-ngcc.d.ts +0 -1
  92. package/ngcc/src/analysis/decoration_analyzer.d.ts +0 -1
  93. package/ngcc/src/analysis/migration_host.d.ts +0 -1
  94. package/ngcc/src/analysis/module_with_providers_analyzer.d.ts +0 -1
  95. package/ngcc/src/analysis/ngcc_references_registry.d.ts +0 -1
  96. package/ngcc/src/analysis/ngcc_trait_compiler.d.ts +0 -1
  97. package/ngcc/src/analysis/private_declarations_analyzer.d.ts +0 -1
  98. package/ngcc/src/analysis/types.d.ts +0 -1
  99. package/ngcc/src/analysis/util.d.ts +0 -1
  100. package/ngcc/src/command_line_options.d.ts +0 -1
  101. package/ngcc/src/constants.d.ts +0 -1
  102. package/ngcc/src/dependencies/commonjs_dependency_host.d.ts +0 -1
  103. package/ngcc/src/dependencies/dependency_host.d.ts +0 -1
  104. package/ngcc/src/dependencies/dependency_resolver.d.ts +0 -1
  105. package/ngcc/src/dependencies/dts_dependency_host.d.ts +0 -1
  106. package/ngcc/src/dependencies/esm_dependency_host.d.ts +0 -1
  107. package/ngcc/src/dependencies/module_resolver.d.ts +0 -1
  108. package/ngcc/src/dependencies/umd_dependency_host.d.ts +0 -1
  109. package/ngcc/src/entry_point_finder/directory_walker_entry_point_finder.d.ts +0 -1
  110. package/ngcc/src/entry_point_finder/entry_point_collector.d.ts +0 -1
  111. package/ngcc/src/entry_point_finder/interface.d.ts +0 -1
  112. package/ngcc/src/entry_point_finder/program_based_entry_point_finder.d.ts +0 -1
  113. package/ngcc/src/entry_point_finder/targeted_entry_point_finder.d.ts +0 -1
  114. package/ngcc/src/entry_point_finder/tracing_entry_point_finder.d.ts +0 -1
  115. package/ngcc/src/entry_point_finder/utils.d.ts +0 -1
  116. package/ngcc/src/execution/analyze_entry_points.d.ts +0 -1
  117. package/ngcc/src/execution/api.d.ts +0 -1
  118. package/ngcc/src/execution/cluster/api.d.ts +0 -1
  119. package/ngcc/src/execution/cluster/executor.d.ts +0 -1
  120. package/ngcc/src/execution/cluster/master.d.ts +4 -3
  121. package/ngcc/src/execution/cluster/ngcc_cluster_worker.d.ts +0 -1
  122. package/ngcc/src/execution/cluster/package_json_updater.d.ts +0 -1
  123. package/ngcc/src/execution/cluster/utils.d.ts +0 -1
  124. package/ngcc/src/execution/cluster/worker.d.ts +0 -1
  125. package/ngcc/src/execution/create_compile_function.d.ts +0 -1
  126. package/ngcc/src/execution/single_process_executor.d.ts +0 -1
  127. package/ngcc/src/execution/tasks/api.d.ts +0 -1
  128. package/ngcc/src/execution/tasks/completion.d.ts +0 -1
  129. package/ngcc/src/execution/tasks/queues/base_task_queue.d.ts +0 -1
  130. package/ngcc/src/execution/tasks/queues/parallel_task_queue.d.ts +0 -1
  131. package/ngcc/src/execution/tasks/queues/serial_task_queue.d.ts +0 -1
  132. package/ngcc/src/execution/tasks/utils.d.ts +0 -1
  133. package/ngcc/src/host/commonjs_host.d.ts +0 -1
  134. package/ngcc/src/host/commonjs_umd_utils.d.ts +0 -1
  135. package/ngcc/src/host/delegating_host.d.ts +0 -1
  136. package/ngcc/src/host/esm2015_host.d.ts +0 -1
  137. package/ngcc/src/host/esm5_host.d.ts +0 -1
  138. package/ngcc/src/host/ngcc_host.d.ts +0 -1
  139. package/ngcc/src/host/umd_host.d.ts +0 -1
  140. package/ngcc/src/host/utils.d.ts +0 -1
  141. package/ngcc/src/locking/async_locker.d.ts +0 -1
  142. package/ngcc/src/locking/lock_file.d.ts +4 -2
  143. package/ngcc/src/locking/lock_file_with_child_process/index.d.ts +4 -3
  144. package/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.d.ts +0 -1
  145. package/ngcc/src/locking/lock_file_with_child_process/util.d.ts +0 -1
  146. package/ngcc/src/locking/sync_locker.d.ts +0 -1
  147. package/ngcc/src/main.d.ts +0 -1
  148. package/ngcc/src/migrations/migration.d.ts +0 -1
  149. package/ngcc/src/migrations/missing_injectable_migration.d.ts +0 -1
  150. package/ngcc/src/migrations/undecorated_child_migration.d.ts +0 -1
  151. package/ngcc/src/migrations/undecorated_parent_migration.d.ts +0 -1
  152. package/ngcc/src/migrations/utils.d.ts +0 -1
  153. package/ngcc/src/ngcc_options.d.ts +0 -1
  154. package/ngcc/src/packages/adjust_cjs_umd_exports.d.ts +0 -1
  155. package/ngcc/src/packages/build_marker.d.ts +1 -2
  156. package/ngcc/src/packages/bundle_program.d.ts +0 -1
  157. package/ngcc/src/packages/configuration.d.ts +0 -1
  158. package/ngcc/src/packages/entry_point.d.ts +0 -1
  159. package/ngcc/src/packages/entry_point_bundle.d.ts +0 -1
  160. package/ngcc/src/packages/entry_point_manifest.d.ts +0 -1
  161. package/ngcc/src/packages/ngcc_compiler_host.d.ts +0 -1
  162. package/ngcc/src/packages/patch_ts_expando_initializer.d.ts +0 -1
  163. package/ngcc/src/packages/source_file_cache.d.ts +0 -1
  164. package/ngcc/src/packages/transformer.d.ts +0 -1
  165. package/ngcc/src/path_mappings.d.ts +0 -1
  166. package/ngcc/src/rendering/commonjs_rendering_formatter.d.ts +0 -1
  167. package/ngcc/src/rendering/dts_renderer.d.ts +0 -1
  168. package/ngcc/src/rendering/esm5_rendering_formatter.d.ts +0 -1
  169. package/ngcc/src/rendering/esm_rendering_formatter.d.ts +0 -1
  170. package/ngcc/src/rendering/ngcc_import_rewriter.d.ts +0 -1
  171. package/ngcc/src/rendering/renderer.d.ts +0 -1
  172. package/ngcc/src/rendering/rendering_formatter.d.ts +0 -1
  173. package/ngcc/src/rendering/source_maps.d.ts +0 -1
  174. package/ngcc/src/rendering/umd_rendering_formatter.d.ts +0 -1
  175. package/ngcc/src/rendering/utils.d.ts +0 -1
  176. package/ngcc/src/utils.d.ts +0 -1
  177. package/ngcc/src/writing/cleaning/cleaning_strategies.d.ts +0 -1
  178. package/ngcc/src/writing/cleaning/package_cleaner.d.ts +0 -1
  179. package/ngcc/src/writing/cleaning/utils.d.ts +0 -1
  180. package/ngcc/src/writing/file_writer.d.ts +0 -1
  181. package/ngcc/src/writing/in_place_file_writer.d.ts +0 -1
  182. package/ngcc/src/writing/new_entry_point_file_writer.d.ts +0 -1
  183. package/ngcc/src/writing/package_json_updater.d.ts +0 -1
  184. package/package.json +3 -3
  185. package/private/bazel.d.ts +0 -1
  186. package/private/localize.d.ts +0 -1
  187. package/private/migrations.d.ts +0 -1
  188. package/private/tooling.d.ts +0 -1
  189. package/src/bin/ng_xi18n.d.ts +0 -1
  190. package/src/bin/ngc.d.ts +0 -1
  191. package/src/extract_i18n.d.ts +0 -1
  192. package/src/main.d.ts +0 -1
  193. package/src/ngtsc/annotations/common/index.d.ts +0 -1
  194. package/src/ngtsc/annotations/common/src/api.d.ts +0 -1
  195. package/src/ngtsc/annotations/common/src/di.d.ts +0 -1
  196. package/src/ngtsc/annotations/common/src/diagnostics.d.ts +0 -1
  197. package/src/ngtsc/annotations/common/src/evaluation.d.ts +0 -1
  198. package/src/ngtsc/annotations/common/src/factory.d.ts +0 -1
  199. package/src/ngtsc/annotations/common/src/injectable_registry.d.ts +0 -1
  200. package/src/ngtsc/annotations/common/src/metadata.d.ts +0 -1
  201. package/src/ngtsc/annotations/common/src/references_registry.d.ts +0 -1
  202. package/src/ngtsc/annotations/common/src/schema.d.ts +0 -1
  203. package/src/ngtsc/annotations/common/src/util.d.ts +0 -1
  204. package/src/ngtsc/annotations/component/index.d.ts +0 -1
  205. package/src/ngtsc/annotations/component/src/diagnostics.d.ts +0 -1
  206. package/src/ngtsc/annotations/component/src/handler.d.ts +0 -1
  207. package/src/ngtsc/annotations/component/src/metadata.d.ts +0 -1
  208. package/src/ngtsc/annotations/component/src/resources.d.ts +0 -1
  209. package/src/ngtsc/annotations/component/src/symbol.d.ts +0 -1
  210. package/src/ngtsc/annotations/component/src/util.d.ts +0 -1
  211. package/src/ngtsc/annotations/directive/index.d.ts +0 -1
  212. package/src/ngtsc/annotations/directive/src/handler.d.ts +0 -1
  213. package/src/ngtsc/annotations/directive/src/shared.d.ts +0 -1
  214. package/src/ngtsc/annotations/directive/src/symbol.d.ts +0 -1
  215. package/src/ngtsc/annotations/index.d.ts +0 -1
  216. package/src/ngtsc/annotations/ng_module/index.d.ts +0 -1
  217. package/src/ngtsc/annotations/ng_module/src/handler.d.ts +0 -1
  218. package/src/ngtsc/annotations/ng_module/src/module_with_providers.d.ts +0 -1
  219. package/src/ngtsc/annotations/src/injectable.d.ts +0 -1
  220. package/src/ngtsc/annotations/src/pipe.d.ts +0 -1
  221. package/src/ngtsc/core/api/index.d.ts +0 -1
  222. package/src/ngtsc/core/api/src/adapter.d.ts +0 -1
  223. package/src/ngtsc/core/api/src/interfaces.d.ts +0 -1
  224. package/src/ngtsc/core/api/src/options.d.ts +0 -1
  225. package/src/ngtsc/core/api/src/public_options.d.ts +0 -1
  226. package/src/ngtsc/core/index.d.ts +0 -1
  227. package/src/ngtsc/core/src/compiler.d.ts +0 -1
  228. package/src/ngtsc/core/src/host.d.ts +1 -2
  229. package/src/ngtsc/cycles/index.d.ts +0 -1
  230. package/src/ngtsc/cycles/src/analyzer.d.ts +0 -1
  231. package/src/ngtsc/cycles/src/imports.d.ts +0 -1
  232. package/src/ngtsc/diagnostics/index.d.ts +0 -1
  233. package/src/ngtsc/diagnostics/src/docs.d.ts +0 -1
  234. package/src/ngtsc/diagnostics/src/error.d.ts +0 -1
  235. package/src/ngtsc/diagnostics/src/error_code.d.ts +0 -1
  236. package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +0 -1
  237. package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +0 -1
  238. package/src/ngtsc/diagnostics/src/util.d.ts +0 -1
  239. package/src/ngtsc/entry_point/index.d.ts +0 -1
  240. package/src/ngtsc/entry_point/src/generator.d.ts +0 -1
  241. package/src/ngtsc/entry_point/src/logic.d.ts +0 -1
  242. package/src/ngtsc/entry_point/src/private_export_checker.d.ts +0 -1
  243. package/src/ngtsc/entry_point/src/reference_graph.d.ts +0 -1
  244. package/src/ngtsc/file_system/index.d.ts +0 -1
  245. package/src/ngtsc/file_system/src/compiler_host.d.ts +0 -1
  246. package/src/ngtsc/file_system/src/helpers.d.ts +0 -1
  247. package/src/ngtsc/file_system/src/invalid_file_system.d.ts +0 -1
  248. package/src/ngtsc/file_system/src/logical.d.ts +0 -1
  249. package/src/ngtsc/file_system/src/node_js_file_system.d.ts +0 -1
  250. package/src/ngtsc/file_system/src/types.d.ts +0 -1
  251. package/src/ngtsc/file_system/src/util.d.ts +0 -1
  252. package/src/ngtsc/imports/index.d.ts +0 -1
  253. package/src/ngtsc/imports/src/alias.d.ts +0 -1
  254. package/src/ngtsc/imports/src/core.d.ts +0 -1
  255. package/src/ngtsc/imports/src/default.d.ts +0 -1
  256. package/src/ngtsc/imports/src/emitter.d.ts +0 -1
  257. package/src/ngtsc/imports/src/find_export.d.ts +0 -1
  258. package/src/ngtsc/imports/src/reexport.d.ts +0 -1
  259. package/src/ngtsc/imports/src/references.d.ts +0 -1
  260. package/src/ngtsc/imports/src/resolver.d.ts +0 -1
  261. package/src/ngtsc/incremental/api.d.ts +0 -1
  262. package/src/ngtsc/incremental/index.d.ts +0 -1
  263. package/src/ngtsc/incremental/semantic_graph/index.d.ts +0 -1
  264. package/src/ngtsc/incremental/semantic_graph/src/api.d.ts +0 -1
  265. package/src/ngtsc/incremental/semantic_graph/src/graph.d.ts +1 -2
  266. package/src/ngtsc/incremental/semantic_graph/src/type_parameters.d.ts +0 -1
  267. package/src/ngtsc/incremental/semantic_graph/src/util.d.ts +0 -1
  268. package/src/ngtsc/incremental/src/dependency_tracking.d.ts +0 -1
  269. package/src/ngtsc/incremental/src/incremental.d.ts +0 -1
  270. package/src/ngtsc/incremental/src/noop.d.ts +0 -1
  271. package/src/ngtsc/incremental/src/state.d.ts +0 -1
  272. package/src/ngtsc/incremental/src/strategy.d.ts +0 -1
  273. package/src/ngtsc/indexer/index.d.ts +0 -1
  274. package/src/ngtsc/indexer/src/api.d.ts +0 -1
  275. package/src/ngtsc/indexer/src/context.d.ts +0 -1
  276. package/src/ngtsc/indexer/src/template.d.ts +0 -1
  277. package/src/ngtsc/indexer/src/transform.d.ts +0 -1
  278. package/src/ngtsc/logging/index.d.ts +0 -1
  279. package/src/ngtsc/logging/src/console_logger.d.ts +0 -1
  280. package/src/ngtsc/logging/src/logger.d.ts +0 -1
  281. package/src/ngtsc/metadata/index.d.ts +0 -1
  282. package/src/ngtsc/metadata/src/api.d.ts +0 -1
  283. package/src/ngtsc/metadata/src/dts.d.ts +0 -1
  284. package/src/ngtsc/metadata/src/host_directives_resolver.d.ts +0 -1
  285. package/src/ngtsc/metadata/src/inheritance.d.ts +0 -1
  286. package/src/ngtsc/metadata/src/property_mapping.d.ts +0 -1
  287. package/src/ngtsc/metadata/src/registry.d.ts +0 -1
  288. package/src/ngtsc/metadata/src/resource_registry.d.ts +0 -1
  289. package/src/ngtsc/metadata/src/util.d.ts +0 -1
  290. package/src/ngtsc/partial_evaluator/index.d.ts +0 -1
  291. package/src/ngtsc/partial_evaluator/src/builtin.d.ts +0 -1
  292. package/src/ngtsc/partial_evaluator/src/diagnostics.d.ts +0 -1
  293. package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +0 -1
  294. package/src/ngtsc/partial_evaluator/src/interface.d.ts +0 -1
  295. package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +0 -1
  296. package/src/ngtsc/partial_evaluator/src/known_declaration.d.ts +0 -1
  297. package/src/ngtsc/partial_evaluator/src/result.d.ts +0 -1
  298. package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +0 -1
  299. package/src/ngtsc/partial_evaluator/src/ts_helpers.d.ts +0 -1
  300. package/src/ngtsc/perf/index.d.ts +0 -1
  301. package/src/ngtsc/perf/src/api.d.ts +0 -1
  302. package/src/ngtsc/perf/src/clock.d.ts +0 -1
  303. package/src/ngtsc/perf/src/noop.d.ts +0 -1
  304. package/src/ngtsc/perf/src/recorder.d.ts +0 -1
  305. package/src/ngtsc/program.d.ts +0 -1
  306. package/src/ngtsc/program_driver/index.d.ts +0 -1
  307. package/src/ngtsc/program_driver/src/api.d.ts +0 -1
  308. package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +0 -1
  309. package/src/ngtsc/reflection/index.d.ts +0 -1
  310. package/src/ngtsc/reflection/src/host.d.ts +0 -1
  311. package/src/ngtsc/reflection/src/type_to_value.d.ts +0 -1
  312. package/src/ngtsc/reflection/src/typescript.d.ts +0 -1
  313. package/src/ngtsc/reflection/src/util.d.ts +0 -1
  314. package/src/ngtsc/resource/index.d.ts +0 -1
  315. package/src/ngtsc/resource/src/loader.d.ts +0 -1
  316. package/src/ngtsc/scope/index.d.ts +0 -1
  317. package/src/ngtsc/scope/src/api.d.ts +0 -1
  318. package/src/ngtsc/scope/src/component_scope.d.ts +0 -1
  319. package/src/ngtsc/scope/src/dependency.d.ts +0 -1
  320. package/src/ngtsc/scope/src/local.d.ts +0 -1
  321. package/src/ngtsc/scope/src/standalone.d.ts +0 -1
  322. package/src/ngtsc/scope/src/typecheck.d.ts +0 -1
  323. package/src/ngtsc/scope/src/util.d.ts +0 -1
  324. package/src/ngtsc/shims/api.d.ts +0 -1
  325. package/src/ngtsc/shims/index.d.ts +0 -1
  326. package/src/ngtsc/shims/src/adapter.d.ts +0 -1
  327. package/src/ngtsc/shims/src/expando.d.ts +0 -1
  328. package/src/ngtsc/shims/src/factory_generator.d.ts +0 -1
  329. package/src/ngtsc/shims/src/reference_tagger.d.ts +0 -1
  330. package/src/ngtsc/shims/src/summary_generator.d.ts +0 -1
  331. package/src/ngtsc/shims/src/util.d.ts +0 -1
  332. package/src/ngtsc/sourcemaps/index.d.ts +0 -1
  333. package/src/ngtsc/sourcemaps/src/content_origin.d.ts +0 -1
  334. package/src/ngtsc/sourcemaps/src/raw_source_map.d.ts +0 -1
  335. package/src/ngtsc/sourcemaps/src/segment_marker.d.ts +0 -1
  336. package/src/ngtsc/sourcemaps/src/source_file.d.ts +0 -1
  337. package/src/ngtsc/sourcemaps/src/source_file_loader.d.ts +0 -1
  338. package/src/ngtsc/transform/index.d.ts +0 -1
  339. package/src/ngtsc/transform/src/alias.d.ts +0 -1
  340. package/src/ngtsc/transform/src/api.d.ts +0 -1
  341. package/src/ngtsc/transform/src/compilation.d.ts +0 -1
  342. package/src/ngtsc/transform/src/declaration.d.ts +0 -1
  343. package/src/ngtsc/transform/src/trait.d.ts +0 -1
  344. package/src/ngtsc/transform/src/transform.d.ts +0 -1
  345. package/src/ngtsc/transform/src/utils.d.ts +0 -1
  346. package/src/ngtsc/translator/index.d.ts +0 -1
  347. package/src/ngtsc/translator/src/api/ast_factory.d.ts +0 -1
  348. package/src/ngtsc/translator/src/api/import_generator.d.ts +0 -1
  349. package/src/ngtsc/translator/src/context.d.ts +0 -1
  350. package/src/ngtsc/translator/src/import_manager.d.ts +0 -1
  351. package/src/ngtsc/translator/src/translator.d.ts +0 -1
  352. package/src/ngtsc/translator/src/type_translator.d.ts +0 -1
  353. package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +0 -1
  354. package/src/ngtsc/translator/src/typescript_translator.d.ts +0 -1
  355. package/src/ngtsc/ts_compatibility/index.d.ts +0 -1
  356. package/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.d.ts +2 -145
  357. package/src/ngtsc/tsc_plugin.d.ts +0 -1
  358. package/src/ngtsc/typecheck/api/api.d.ts +0 -1
  359. package/src/ngtsc/typecheck/api/checker.d.ts +0 -1
  360. package/src/ngtsc/typecheck/api/completion.d.ts +0 -1
  361. package/src/ngtsc/typecheck/api/context.d.ts +0 -1
  362. package/src/ngtsc/typecheck/api/index.d.ts +0 -1
  363. package/src/ngtsc/typecheck/api/scope.d.ts +0 -1
  364. package/src/ngtsc/typecheck/api/symbols.d.ts +0 -1
  365. package/src/ngtsc/typecheck/diagnostics/index.d.ts +0 -1
  366. package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +0 -1
  367. package/src/ngtsc/typecheck/diagnostics/src/id.d.ts +0 -1
  368. package/src/ngtsc/typecheck/extended/api/api.d.ts +0 -1
  369. package/src/ngtsc/typecheck/extended/api/extended_template_checker.d.ts +0 -1
  370. package/src/ngtsc/typecheck/extended/api/index.d.ts +0 -1
  371. package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.d.ts +0 -1
  372. package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +0 -1
  373. package/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.d.ts +0 -1
  374. package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.d.ts +0 -1
  375. package/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.d.ts +0 -1
  376. package/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.d.ts +0 -1
  377. package/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.d.ts +0 -1
  378. package/src/ngtsc/typecheck/extended/index.d.ts +0 -1
  379. package/src/ngtsc/typecheck/extended/src/extended_template_checker.d.ts +0 -1
  380. package/src/ngtsc/typecheck/index.d.ts +0 -1
  381. package/src/ngtsc/typecheck/src/checker.d.ts +0 -1
  382. package/src/ngtsc/typecheck/src/comments.d.ts +0 -1
  383. package/src/ngtsc/typecheck/src/completion.d.ts +0 -1
  384. package/src/ngtsc/typecheck/src/context.d.ts +0 -1
  385. package/src/ngtsc/typecheck/src/diagnostics.d.ts +0 -1
  386. package/src/ngtsc/typecheck/src/dom.d.ts +0 -1
  387. package/src/ngtsc/typecheck/src/environment.d.ts +0 -1
  388. package/src/ngtsc/typecheck/src/expression.d.ts +0 -1
  389. package/src/ngtsc/typecheck/src/line_mappings.d.ts +0 -1
  390. package/src/ngtsc/typecheck/src/oob.d.ts +0 -1
  391. package/src/ngtsc/typecheck/src/shim.d.ts +0 -1
  392. package/src/ngtsc/typecheck/src/source.d.ts +0 -1
  393. package/src/ngtsc/typecheck/src/tcb_util.d.ts +0 -1
  394. package/src/ngtsc/typecheck/src/template_semantics.d.ts +0 -1
  395. package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +0 -1
  396. package/src/ngtsc/typecheck/src/ts_util.d.ts +0 -1
  397. package/src/ngtsc/typecheck/src/type_check_block.d.ts +0 -1
  398. package/src/ngtsc/typecheck/src/type_check_file.d.ts +0 -1
  399. package/src/ngtsc/typecheck/src/type_constructor.d.ts +0 -1
  400. package/src/ngtsc/typecheck/src/type_emitter.d.ts +0 -1
  401. package/src/ngtsc/typecheck/src/type_parameter_emitter.d.ts +0 -1
  402. package/src/ngtsc/util/src/path.d.ts +0 -1
  403. package/src/ngtsc/util/src/typescript.d.ts +0 -1
  404. package/src/ngtsc/util/src/visitor.d.ts +0 -1
  405. package/src/ngtsc/xi18n/index.d.ts +0 -1
  406. package/src/ngtsc/xi18n/src/context.d.ts +0 -1
  407. package/src/perform_compile.d.ts +0 -1
  408. package/src/perform_watch.d.ts +0 -1
  409. package/src/transformers/api.d.ts +0 -1
  410. package/src/transformers/compiler_host.d.ts +0 -1
  411. package/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.d.ts +0 -1
  412. package/src/transformers/downlevel_decorators_transform/index.d.ts +0 -1
  413. package/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.d.ts +0 -1
  414. package/src/transformers/entry_points.d.ts +0 -1
  415. package/src/transformers/i18n.d.ts +0 -1
  416. package/src/transformers/program.d.ts +0 -1
  417. package/src/transformers/util.d.ts +0 -1
  418. package/src/typescript_support.d.ts +0 -1
  419. package/src/version.d.ts +0 -1
  420. package/src/version_helpers.d.ts +0 -1
  421. package/bundles/chunk-3S7MERES.js.map +0 -6
  422. package/bundles/chunk-3X2TSQ2D.js.map +0 -6
  423. package/bundles/chunk-DLVFMDSC.js.map +0 -6
  424. package/bundles/chunk-E7DPJFUS.js.map +0 -6
  425. package/bundles/chunk-EFL37X7Q.js.map +0 -6
  426. package/bundles/chunk-I4VIIB6S.js.map +0 -6
  427. package/bundles/chunk-IZN5U2AM.js +0 -103
  428. package/bundles/chunk-IZN5U2AM.js.map +0 -6
  429. package/bundles/chunk-MAF2KC4N.js.map +0 -6
  430. package/bundles/chunk-OFXSI6E3.js.map +0 -6
  431. package/bundles/chunk-OHYTYUA4.js.map +0 -6
  432. package/bundles/chunk-OUTDZGN7.js.map +0 -6
  433. package/bundles/chunk-QVO57CDR.js.map +0 -6
  434. package/bundles/chunk-UN4WV3U4.js.map +0 -6
  435. package/bundles/chunk-V5JWXGQQ.js.map +0 -6
  436. package/bundles/chunk-Y6MBLTIR.js.map +0 -6
  437. package/bundles/chunk-Y6OF4IE7.js.map +0 -6
  438. package/import_meta_url.d.ts +0 -14
  439. package/linker/babel/src/babel_core.d.ts +0 -37
@@ -1,13 +1,7 @@
1
1
 
2
2
  import {createRequire as __cjsCompatRequire} from 'module';
3
3
  const require = __cjsCompatRequire(import.meta.url);
4
- const __ESM_IMPORT_META_URL__ = import.meta.url;
5
4
 
6
- import {
7
- createFunctionDeclaration,
8
- createIndexSignature,
9
- createParameterDeclaration
10
- } from "./chunk-IZN5U2AM.js";
11
5
  import {
12
6
  LogicalProjectPath,
13
7
  absoluteFrom,
@@ -18,9 +12,9 @@ import {
18
12
  resolve,
19
13
  stripExtension,
20
14
  toRelativeImport
21
- } from "./chunk-E7DPJFUS.js";
15
+ } from "./chunk-EC5K6QPP.js";
22
16
 
23
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
17
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/typescript.mjs
24
18
  import ts from "typescript";
25
19
  var TS = /\.tsx?$/i;
26
20
  var D_TS = /\.d\.ts$/i;
@@ -121,7 +115,7 @@ function toUnredirectedSourceFile(sf) {
121
115
  return redirectInfo.unredirected;
122
116
  }
123
117
 
124
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
118
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/references.mjs
125
119
  var Reference = class {
126
120
  constructor(node, bestGuessOwningModule = null) {
127
121
  this.node = node;
@@ -184,14 +178,14 @@ var Reference = class {
184
178
  }
185
179
  };
186
180
 
187
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
181
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
188
182
  import { ExternalExpr as ExternalExpr2 } from "@angular/compiler";
189
183
 
190
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
184
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
191
185
  import { ExternalExpr, ExternalReference, WrappedNodeExpr } from "@angular/compiler";
192
186
  import ts3 from "typescript";
193
187
 
194
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
188
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
195
189
  var ErrorCode;
196
190
  (function(ErrorCode2) {
197
191
  ErrorCode2[ErrorCode2["DECORATOR_ARG_NOT_LITERAL"] = 1001] = "DECORATOR_ARG_NOT_LITERAL";
@@ -261,7 +255,7 @@ var ErrorCode;
261
255
  ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
262
256
  })(ErrorCode || (ErrorCode = {}));
263
257
 
264
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
258
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
265
259
  var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
266
260
  ErrorCode.DECORATOR_ARG_NOT_LITERAL,
267
261
  ErrorCode.IMPORT_CYCLE_DETECTED,
@@ -273,10 +267,10 @@ var COMPILER_ERRORS_WITH_GUIDES = /* @__PURE__ */ new Set([
273
267
  ErrorCode.WARN_NGMODULE_ID_UNNECESSARY
274
268
  ]);
275
269
 
276
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
270
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
277
271
  import ts2 from "typescript";
278
272
 
279
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
273
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
280
274
  var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
281
275
  function replaceTsWithNgInErrors(errors) {
282
276
  return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
@@ -285,7 +279,7 @@ function ngErrorCode(code) {
285
279
  return parseInt("-99" + code);
286
280
  }
287
281
 
288
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
282
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
289
283
  var FatalDiagnosticError = class {
290
284
  constructor(code, node, message, relatedInformation) {
291
285
  this.code = code;
@@ -344,10 +338,10 @@ function isFatalDiagnosticError(err) {
344
338
  return err._isFatalDiagnosticError === true;
345
339
  }
346
340
 
347
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
341
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.mjs
348
342
  var ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
349
343
 
350
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
344
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.mjs
351
345
  var ExtendedTemplateDiagnosticName;
352
346
  (function(ExtendedTemplateDiagnosticName2) {
353
347
  ExtendedTemplateDiagnosticName2["INVALID_BANANA_IN_BOX"] = "invalidBananaInBox";
@@ -359,7 +353,7 @@ var ExtendedTemplateDiagnosticName;
359
353
  ExtendedTemplateDiagnosticName2["SUFFIX_NOT_SUPPORTED"] = "suffixNotSupported";
360
354
  })(ExtendedTemplateDiagnosticName || (ExtendedTemplateDiagnosticName = {}));
361
355
 
362
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
356
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/find_export.mjs
363
357
  function findExportedNameOfNode(target, file, reflector) {
364
358
  const exports = reflector.getExportsOfModule(file);
365
359
  if (exports === null) {
@@ -379,7 +373,7 @@ function findExportedNameOfNode(target, file, reflector) {
379
373
  return foundExportName;
380
374
  }
381
375
 
382
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
376
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/emitter.mjs
383
377
  var ImportFlags;
384
378
  (function(ImportFlags2) {
385
379
  ImportFlags2[ImportFlags2["None"] = 0] = "None";
@@ -595,7 +589,7 @@ var UnifiedModulesStrategy = class {
595
589
  }
596
590
  };
597
591
 
598
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
592
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/alias.mjs
599
593
  var CHARS_TO_ESCAPE = /[^a-zA-Z0-9/_]/g;
600
594
  var UnifiedModulesAliasingHost = class {
601
595
  constructor(unifiedModulesHost) {
@@ -662,7 +656,7 @@ var AliasStrategy = class {
662
656
  }
663
657
  };
664
658
 
665
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
659
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/util/src/path.mjs
666
660
  function relativePathBetween(from, to) {
667
661
  const relativePath = stripExtension(relative(dirname(resolve(from)), resolve(to)));
668
662
  return relativePath !== "" ? toRelativeImport(relativePath) : null;
@@ -671,7 +665,7 @@ function normalizeSeparators(path) {
671
665
  return path.replace(/\\/g, "/");
672
666
  }
673
667
 
674
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
668
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/core.mjs
675
669
  var NoopImportRewriter = class {
676
670
  shouldImportSymbol(symbol, specifier) {
677
671
  return true;
@@ -729,7 +723,7 @@ function validateAndRewriteCoreSymbol(name) {
729
723
  return CORE_SUPPORTED_SYMBOLS.get(name);
730
724
  }
731
725
 
732
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
726
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/default.mjs
733
727
  import ts4 from "typescript";
734
728
  var DefaultImportDeclaration = Symbol("DefaultImportDeclaration");
735
729
  function attachDefaultImportDeclaration(expr, importDecl) {
@@ -774,7 +768,7 @@ var DefaultImportTracker = class {
774
768
  }
775
769
  };
776
770
 
777
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
771
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/imports/src/resolver.mjs
778
772
  var ModuleResolver = class {
779
773
  constructor(program, compilerOptions, host, moduleResolutionCache) {
780
774
  this.program = program;
@@ -791,7 +785,7 @@ var ModuleResolver = class {
791
785
  }
792
786
  };
793
787
 
794
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
788
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/context.mjs
795
789
  var Context = class {
796
790
  constructor(isStatement) {
797
791
  this.isStatement = isStatement;
@@ -804,7 +798,7 @@ var Context = class {
804
798
  }
805
799
  };
806
800
 
807
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
801
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/translator.mjs
808
802
  import * as o from "@angular/compiler";
809
803
  var UNARY_OPERATORS = /* @__PURE__ */ new Map([
810
804
  [o.UnaryOperator.Minus, "-"],
@@ -1036,7 +1030,7 @@ function createRange(span) {
1036
1030
  };
1037
1031
  }
1038
1032
 
1039
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
1033
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/import_manager.mjs
1040
1034
  import ts5 from "typescript";
1041
1035
  var ImportManager = class {
1042
1036
  constructor(rewriter = new NoopImportRewriter(), prefix = "i") {
@@ -1072,9 +1066,41 @@ var ImportManager = class {
1072
1066
  }
1073
1067
  };
1074
1068
 
1075
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
1069
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
1076
1070
  import * as o2 from "@angular/compiler";
1071
+ import ts7 from "typescript";
1072
+
1073
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.mjs
1077
1074
  import ts6 from "typescript";
1075
+ var IS_AFTER_TS_49 = isAfterVersion(4, 9);
1076
+ var createParameterDeclaration = IS_AFTER_TS_49 ? ts6.factory.createParameterDeclaration : (modifiers, dotDotDotToken, name, questionToken, type, initializer) => ts6.factory.createParameterDeclaration(...splitModifiers(modifiers), dotDotDotToken, name, questionToken, type, initializer);
1077
+ var createImportDeclaration = IS_AFTER_TS_49 ? ts6.factory.createImportDeclaration : (modifiers, importClause, moduleSpecifier, assertClause) => ts6.factory.createImportDeclaration(void 0, modifiers, importClause, moduleSpecifier, assertClause);
1078
+ var createFunctionDeclaration = IS_AFTER_TS_49 ? ts6.factory.createFunctionDeclaration : (modifiers, asteriskToken, name, typeParameters, parameters, type, body) => ts6.factory.createFunctionDeclaration(...splitModifiers(modifiers), asteriskToken, name, typeParameters, parameters, type, body);
1079
+ var createIndexSignature = IS_AFTER_TS_49 ? ts6.factory.createIndexSignature : (modifiers, parameters, type) => ts6.factory.createIndexSignature(modifiers, parameters, type);
1080
+ function splitModifiers(allModifiers) {
1081
+ if (!allModifiers) {
1082
+ return [void 0, void 0];
1083
+ }
1084
+ const decorators = [];
1085
+ const modifiers = [];
1086
+ for (const current of allModifiers) {
1087
+ if (ts6.isDecorator(current)) {
1088
+ decorators.push(current);
1089
+ } else {
1090
+ modifiers.push(current);
1091
+ }
1092
+ }
1093
+ return [decorators.length ? decorators : void 0, modifiers.length ? modifiers : void 0];
1094
+ }
1095
+ function isAfterVersion(targetMajor, targetMinor) {
1096
+ const [major, minor] = ts6.versionMajorMinor.split(".").map((part) => parseInt(part));
1097
+ if (major < targetMajor) {
1098
+ return false;
1099
+ }
1100
+ return major === targetMajor ? minor >= targetMinor : true;
1101
+ }
1102
+
1103
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/type_translator.mjs
1078
1104
  function translateType(type, imports) {
1079
1105
  return type.visitType(new TypeTranslatorVisitor(imports), new Context(false));
1080
1106
  }
@@ -1085,16 +1111,16 @@ var TypeTranslatorVisitor = class {
1085
1111
  visitBuiltinType(type, context) {
1086
1112
  switch (type.name) {
1087
1113
  case o2.BuiltinTypeName.Bool:
1088
- return ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.BooleanKeyword);
1114
+ return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.BooleanKeyword);
1089
1115
  case o2.BuiltinTypeName.Dynamic:
1090
- return ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.AnyKeyword);
1116
+ return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.AnyKeyword);
1091
1117
  case o2.BuiltinTypeName.Int:
1092
1118
  case o2.BuiltinTypeName.Number:
1093
- return ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.NumberKeyword);
1119
+ return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.NumberKeyword);
1094
1120
  case o2.BuiltinTypeName.String:
1095
- return ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.StringKeyword);
1121
+ return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.StringKeyword);
1096
1122
  case o2.BuiltinTypeName.None:
1097
- return ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.NeverKeyword);
1123
+ return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.NeverKeyword);
1098
1124
  default:
1099
1125
  throw new Error(`Unsupported builtin type: ${o2.BuiltinTypeName[type.name]}`);
1100
1126
  }
@@ -1104,28 +1130,28 @@ var TypeTranslatorVisitor = class {
1104
1130
  if (type.typeParams === null) {
1105
1131
  return typeNode;
1106
1132
  }
1107
- if (!ts6.isTypeReferenceNode(typeNode)) {
1133
+ if (!ts7.isTypeReferenceNode(typeNode)) {
1108
1134
  throw new Error("An ExpressionType with type arguments must translate into a TypeReferenceNode");
1109
1135
  } else if (typeNode.typeArguments !== void 0) {
1110
1136
  throw new Error(`An ExpressionType with type arguments cannot have multiple levels of type arguments`);
1111
1137
  }
1112
1138
  const typeArgs = type.typeParams.map((param) => this.translateType(param, context));
1113
- return ts6.factory.createTypeReferenceNode(typeNode.typeName, typeArgs);
1139
+ return ts7.factory.createTypeReferenceNode(typeNode.typeName, typeArgs);
1114
1140
  }
1115
1141
  visitArrayType(type, context) {
1116
- return ts6.factory.createArrayTypeNode(this.translateType(type.of, context));
1142
+ return ts7.factory.createArrayTypeNode(this.translateType(type.of, context));
1117
1143
  }
1118
1144
  visitMapType(type, context) {
1119
- const parameter = createParameterDeclaration(void 0, void 0, "key", void 0, ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.StringKeyword));
1120
- const typeArgs = type.valueType !== null ? this.translateType(type.valueType, context) : ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.UnknownKeyword);
1145
+ const parameter = createParameterDeclaration(void 0, void 0, "key", void 0, ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.StringKeyword));
1146
+ const typeArgs = type.valueType !== null ? this.translateType(type.valueType, context) : ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.UnknownKeyword);
1121
1147
  const indexSignature = createIndexSignature(void 0, [parameter], typeArgs);
1122
- return ts6.factory.createTypeLiteralNode([indexSignature]);
1148
+ return ts7.factory.createTypeLiteralNode([indexSignature]);
1123
1149
  }
1124
1150
  visitReadVarExpr(ast, context) {
1125
1151
  if (ast.name === null) {
1126
1152
  throw new Error(`ReadVarExpr with no variable name in type`);
1127
1153
  }
1128
- return ts6.factory.createTypeQueryNode(ts6.factory.createIdentifier(ast.name));
1154
+ return ts7.factory.createTypeQueryNode(ts7.factory.createIdentifier(ast.name));
1129
1155
  }
1130
1156
  visitWriteVarExpr(expr, context) {
1131
1157
  throw new Error("Method not implemented.");
@@ -1147,15 +1173,15 @@ var TypeTranslatorVisitor = class {
1147
1173
  }
1148
1174
  visitLiteralExpr(ast, context) {
1149
1175
  if (ast.value === null) {
1150
- return ts6.factory.createLiteralTypeNode(ts6.factory.createNull());
1176
+ return ts7.factory.createLiteralTypeNode(ts7.factory.createNull());
1151
1177
  } else if (ast.value === void 0) {
1152
- return ts6.factory.createKeywordTypeNode(ts6.SyntaxKind.UndefinedKeyword);
1178
+ return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.UndefinedKeyword);
1153
1179
  } else if (typeof ast.value === "boolean") {
1154
- return ts6.factory.createLiteralTypeNode(ast.value ? ts6.factory.createTrue() : ts6.factory.createFalse());
1180
+ return ts7.factory.createLiteralTypeNode(ast.value ? ts7.factory.createTrue() : ts7.factory.createFalse());
1155
1181
  } else if (typeof ast.value === "number") {
1156
- return ts6.factory.createLiteralTypeNode(ts6.factory.createNumericLiteral(ast.value));
1182
+ return ts7.factory.createLiteralTypeNode(ts7.factory.createNumericLiteral(ast.value));
1157
1183
  } else {
1158
- return ts6.factory.createLiteralTypeNode(ts6.factory.createStringLiteral(ast.value));
1184
+ return ts7.factory.createLiteralTypeNode(ts7.factory.createStringLiteral(ast.value));
1159
1185
  }
1160
1186
  }
1161
1187
  visitLocalizedString(ast, context) {
@@ -1166,10 +1192,10 @@ var TypeTranslatorVisitor = class {
1166
1192
  throw new Error(`Import unknown module or symbol`);
1167
1193
  }
1168
1194
  const { moduleImport, symbol } = this.imports.generateNamedImport(ast.value.moduleName, ast.value.name);
1169
- const symbolIdentifier = ts6.factory.createIdentifier(symbol);
1170
- const typeName = moduleImport ? ts6.factory.createQualifiedName(moduleImport, symbolIdentifier) : symbolIdentifier;
1195
+ const symbolIdentifier = ts7.factory.createIdentifier(symbol);
1196
+ const typeName = moduleImport ? ts7.factory.createQualifiedName(moduleImport, symbolIdentifier) : symbolIdentifier;
1171
1197
  const typeArguments = ast.typeParams !== null ? ast.typeParams.map((type) => this.translateType(type, context)) : void 0;
1172
- return ts6.factory.createTypeReferenceNode(typeName, typeArguments);
1198
+ return ts7.factory.createTypeReferenceNode(typeName, typeArguments);
1173
1199
  }
1174
1200
  visitConditionalExpr(ast, context) {
1175
1201
  throw new Error("Method not implemented.");
@@ -1194,125 +1220,125 @@ var TypeTranslatorVisitor = class {
1194
1220
  }
1195
1221
  visitLiteralArrayExpr(ast, context) {
1196
1222
  const values = ast.entries.map((expr) => this.translateExpression(expr, context));
1197
- return ts6.factory.createTupleTypeNode(values);
1223
+ return ts7.factory.createTupleTypeNode(values);
1198
1224
  }
1199
1225
  visitLiteralMapExpr(ast, context) {
1200
1226
  const entries = ast.entries.map((entry) => {
1201
1227
  const { key, quoted } = entry;
1202
1228
  const type = this.translateExpression(entry.value, context);
1203
- return ts6.factory.createPropertySignature(
1229
+ return ts7.factory.createPropertySignature(
1204
1230
  void 0,
1205
- quoted ? ts6.factory.createStringLiteral(key) : key,
1231
+ quoted ? ts7.factory.createStringLiteral(key) : key,
1206
1232
  void 0,
1207
1233
  type
1208
1234
  );
1209
1235
  });
1210
- return ts6.factory.createTypeLiteralNode(entries);
1236
+ return ts7.factory.createTypeLiteralNode(entries);
1211
1237
  }
1212
1238
  visitCommaExpr(ast, context) {
1213
1239
  throw new Error("Method not implemented.");
1214
1240
  }
1215
1241
  visitWrappedNodeExpr(ast, context) {
1216
1242
  const node = ast.node;
1217
- if (ts6.isEntityName(node)) {
1218
- return ts6.factory.createTypeReferenceNode(node, void 0);
1219
- } else if (ts6.isTypeNode(node)) {
1243
+ if (ts7.isEntityName(node)) {
1244
+ return ts7.factory.createTypeReferenceNode(node, void 0);
1245
+ } else if (ts7.isTypeNode(node)) {
1220
1246
  return node;
1221
- } else if (ts6.isLiteralExpression(node)) {
1222
- return ts6.factory.createLiteralTypeNode(node);
1247
+ } else if (ts7.isLiteralExpression(node)) {
1248
+ return ts7.factory.createLiteralTypeNode(node);
1223
1249
  } else {
1224
- throw new Error(`Unsupported WrappedNodeExpr in TypeTranslatorVisitor: ${ts6.SyntaxKind[node.kind]}`);
1250
+ throw new Error(`Unsupported WrappedNodeExpr in TypeTranslatorVisitor: ${ts7.SyntaxKind[node.kind]}`);
1225
1251
  }
1226
1252
  }
1227
1253
  visitTypeofExpr(ast, context) {
1228
1254
  const typeNode = this.translateExpression(ast.expr, context);
1229
- if (!ts6.isTypeReferenceNode(typeNode)) {
1255
+ if (!ts7.isTypeReferenceNode(typeNode)) {
1230
1256
  throw new Error(`The target of a typeof expression must be a type reference, but it was
1231
- ${ts6.SyntaxKind[typeNode.kind]}`);
1257
+ ${ts7.SyntaxKind[typeNode.kind]}`);
1232
1258
  }
1233
- return ts6.factory.createTypeQueryNode(typeNode.typeName);
1259
+ return ts7.factory.createTypeQueryNode(typeNode.typeName);
1234
1260
  }
1235
1261
  translateType(type, context) {
1236
1262
  const typeNode = type.visitType(this, context);
1237
- if (!ts6.isTypeNode(typeNode)) {
1238
- throw new Error(`A Type must translate to a TypeNode, but was ${ts6.SyntaxKind[typeNode.kind]}`);
1263
+ if (!ts7.isTypeNode(typeNode)) {
1264
+ throw new Error(`A Type must translate to a TypeNode, but was ${ts7.SyntaxKind[typeNode.kind]}`);
1239
1265
  }
1240
1266
  return typeNode;
1241
1267
  }
1242
1268
  translateExpression(expr, context) {
1243
1269
  const typeNode = expr.visitExpression(this, context);
1244
- if (!ts6.isTypeNode(typeNode)) {
1245
- throw new Error(`An Expression must translate to a TypeNode, but was ${ts6.SyntaxKind[typeNode.kind]}`);
1270
+ if (!ts7.isTypeNode(typeNode)) {
1271
+ throw new Error(`An Expression must translate to a TypeNode, but was ${ts7.SyntaxKind[typeNode.kind]}`);
1246
1272
  }
1247
1273
  return typeNode;
1248
1274
  }
1249
1275
  };
1250
1276
 
1251
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
1252
- import ts7 from "typescript";
1277
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_ast_factory.mjs
1278
+ import ts8 from "typescript";
1253
1279
  var PureAnnotation;
1254
1280
  (function(PureAnnotation2) {
1255
1281
  PureAnnotation2["CLOSURE"] = "* @pureOrBreakMyCode ";
1256
1282
  PureAnnotation2["TERSER"] = "@__PURE__";
1257
1283
  })(PureAnnotation || (PureAnnotation = {}));
1258
1284
  var UNARY_OPERATORS2 = {
1259
- "+": ts7.SyntaxKind.PlusToken,
1260
- "-": ts7.SyntaxKind.MinusToken,
1261
- "!": ts7.SyntaxKind.ExclamationToken
1285
+ "+": ts8.SyntaxKind.PlusToken,
1286
+ "-": ts8.SyntaxKind.MinusToken,
1287
+ "!": ts8.SyntaxKind.ExclamationToken
1262
1288
  };
1263
1289
  var BINARY_OPERATORS2 = {
1264
- "&&": ts7.SyntaxKind.AmpersandAmpersandToken,
1265
- ">": ts7.SyntaxKind.GreaterThanToken,
1266
- ">=": ts7.SyntaxKind.GreaterThanEqualsToken,
1267
- "&": ts7.SyntaxKind.AmpersandToken,
1268
- "/": ts7.SyntaxKind.SlashToken,
1269
- "==": ts7.SyntaxKind.EqualsEqualsToken,
1270
- "===": ts7.SyntaxKind.EqualsEqualsEqualsToken,
1271
- "<": ts7.SyntaxKind.LessThanToken,
1272
- "<=": ts7.SyntaxKind.LessThanEqualsToken,
1273
- "-": ts7.SyntaxKind.MinusToken,
1274
- "%": ts7.SyntaxKind.PercentToken,
1275
- "*": ts7.SyntaxKind.AsteriskToken,
1276
- "!=": ts7.SyntaxKind.ExclamationEqualsToken,
1277
- "!==": ts7.SyntaxKind.ExclamationEqualsEqualsToken,
1278
- "||": ts7.SyntaxKind.BarBarToken,
1279
- "+": ts7.SyntaxKind.PlusToken,
1280
- "??": ts7.SyntaxKind.QuestionQuestionToken
1290
+ "&&": ts8.SyntaxKind.AmpersandAmpersandToken,
1291
+ ">": ts8.SyntaxKind.GreaterThanToken,
1292
+ ">=": ts8.SyntaxKind.GreaterThanEqualsToken,
1293
+ "&": ts8.SyntaxKind.AmpersandToken,
1294
+ "/": ts8.SyntaxKind.SlashToken,
1295
+ "==": ts8.SyntaxKind.EqualsEqualsToken,
1296
+ "===": ts8.SyntaxKind.EqualsEqualsEqualsToken,
1297
+ "<": ts8.SyntaxKind.LessThanToken,
1298
+ "<=": ts8.SyntaxKind.LessThanEqualsToken,
1299
+ "-": ts8.SyntaxKind.MinusToken,
1300
+ "%": ts8.SyntaxKind.PercentToken,
1301
+ "*": ts8.SyntaxKind.AsteriskToken,
1302
+ "!=": ts8.SyntaxKind.ExclamationEqualsToken,
1303
+ "!==": ts8.SyntaxKind.ExclamationEqualsEqualsToken,
1304
+ "||": ts8.SyntaxKind.BarBarToken,
1305
+ "+": ts8.SyntaxKind.PlusToken,
1306
+ "??": ts8.SyntaxKind.QuestionQuestionToken
1281
1307
  };
1282
1308
  var VAR_TYPES = {
1283
- "const": ts7.NodeFlags.Const,
1284
- "let": ts7.NodeFlags.Let,
1285
- "var": ts7.NodeFlags.None
1309
+ "const": ts8.NodeFlags.Const,
1310
+ "let": ts8.NodeFlags.Let,
1311
+ "var": ts8.NodeFlags.None
1286
1312
  };
1287
1313
  var TypeScriptAstFactory = class {
1288
1314
  constructor(annotateForClosureCompiler) {
1289
1315
  this.annotateForClosureCompiler = annotateForClosureCompiler;
1290
1316
  this.externalSourceFiles = /* @__PURE__ */ new Map();
1291
1317
  this.attachComments = attachComments;
1292
- this.createArrayLiteral = ts7.factory.createArrayLiteralExpression;
1293
- this.createElementAccess = ts7.factory.createElementAccessExpression;
1294
- this.createExpressionStatement = ts7.factory.createExpressionStatement;
1295
- this.createIdentifier = ts7.factory.createIdentifier;
1296
- this.createParenthesizedExpression = ts7.factory.createParenthesizedExpression;
1297
- this.createPropertyAccess = ts7.factory.createPropertyAccessExpression;
1298
- this.createThrowStatement = ts7.factory.createThrowStatement;
1299
- this.createTypeOfExpression = ts7.factory.createTypeOfExpression;
1318
+ this.createArrayLiteral = ts8.factory.createArrayLiteralExpression;
1319
+ this.createElementAccess = ts8.factory.createElementAccessExpression;
1320
+ this.createExpressionStatement = ts8.factory.createExpressionStatement;
1321
+ this.createIdentifier = ts8.factory.createIdentifier;
1322
+ this.createParenthesizedExpression = ts8.factory.createParenthesizedExpression;
1323
+ this.createPropertyAccess = ts8.factory.createPropertyAccessExpression;
1324
+ this.createThrowStatement = ts8.factory.createThrowStatement;
1325
+ this.createTypeOfExpression = ts8.factory.createTypeOfExpression;
1300
1326
  }
1301
1327
  createAssignment(target, value) {
1302
- return ts7.factory.createBinaryExpression(target, ts7.SyntaxKind.EqualsToken, value);
1328
+ return ts8.factory.createBinaryExpression(target, ts8.SyntaxKind.EqualsToken, value);
1303
1329
  }
1304
1330
  createBinaryExpression(leftOperand, operator, rightOperand) {
1305
- return ts7.factory.createBinaryExpression(leftOperand, BINARY_OPERATORS2[operator], rightOperand);
1331
+ return ts8.factory.createBinaryExpression(leftOperand, BINARY_OPERATORS2[operator], rightOperand);
1306
1332
  }
1307
1333
  createBlock(body) {
1308
- return ts7.factory.createBlock(body);
1334
+ return ts8.factory.createBlock(body);
1309
1335
  }
1310
1336
  createCallExpression(callee, args, pure) {
1311
- const call = ts7.factory.createCallExpression(callee, void 0, args);
1337
+ const call = ts8.factory.createCallExpression(callee, void 0, args);
1312
1338
  if (pure) {
1313
- ts7.addSyntheticLeadingComment(
1339
+ ts8.addSyntheticLeadingComment(
1314
1340
  call,
1315
- ts7.SyntaxKind.MultiLineCommentTrivia,
1341
+ ts8.SyntaxKind.MultiLineCommentTrivia,
1316
1342
  this.annotateForClosureCompiler ? PureAnnotation.CLOSURE : PureAnnotation.TERSER,
1317
1343
  false
1318
1344
  );
@@ -1320,51 +1346,51 @@ var TypeScriptAstFactory = class {
1320
1346
  return call;
1321
1347
  }
1322
1348
  createConditional(condition, whenTrue, whenFalse) {
1323
- return ts7.factory.createConditionalExpression(condition, void 0, whenTrue, void 0, whenFalse);
1349
+ return ts8.factory.createConditionalExpression(condition, void 0, whenTrue, void 0, whenFalse);
1324
1350
  }
1325
1351
  createFunctionDeclaration(functionName, parameters, body) {
1326
- if (!ts7.isBlock(body)) {
1327
- throw new Error(`Invalid syntax, expected a block, but got ${ts7.SyntaxKind[body.kind]}.`);
1352
+ if (!ts8.isBlock(body)) {
1353
+ throw new Error(`Invalid syntax, expected a block, but got ${ts8.SyntaxKind[body.kind]}.`);
1328
1354
  }
1329
1355
  return createFunctionDeclaration(void 0, void 0, functionName, void 0, parameters.map((param) => createParameterDeclaration(void 0, void 0, param)), void 0, body);
1330
1356
  }
1331
1357
  createFunctionExpression(functionName, parameters, body) {
1332
- if (!ts7.isBlock(body)) {
1333
- throw new Error(`Invalid syntax, expected a block, but got ${ts7.SyntaxKind[body.kind]}.`);
1358
+ if (!ts8.isBlock(body)) {
1359
+ throw new Error(`Invalid syntax, expected a block, but got ${ts8.SyntaxKind[body.kind]}.`);
1334
1360
  }
1335
- return ts7.factory.createFunctionExpression(void 0, void 0, functionName != null ? functionName : void 0, void 0, parameters.map((param) => createParameterDeclaration(void 0, void 0, param)), void 0, body);
1361
+ return ts8.factory.createFunctionExpression(void 0, void 0, functionName != null ? functionName : void 0, void 0, parameters.map((param) => createParameterDeclaration(void 0, void 0, param)), void 0, body);
1336
1362
  }
1337
1363
  createIfStatement(condition, thenStatement, elseStatement) {
1338
- return ts7.factory.createIfStatement(condition, thenStatement, elseStatement != null ? elseStatement : void 0);
1364
+ return ts8.factory.createIfStatement(condition, thenStatement, elseStatement != null ? elseStatement : void 0);
1339
1365
  }
1340
1366
  createLiteral(value) {
1341
1367
  if (value === void 0) {
1342
- return ts7.factory.createIdentifier("undefined");
1368
+ return ts8.factory.createIdentifier("undefined");
1343
1369
  } else if (value === null) {
1344
- return ts7.factory.createNull();
1370
+ return ts8.factory.createNull();
1345
1371
  } else if (typeof value === "boolean") {
1346
- return value ? ts7.factory.createTrue() : ts7.factory.createFalse();
1372
+ return value ? ts8.factory.createTrue() : ts8.factory.createFalse();
1347
1373
  } else if (typeof value === "number") {
1348
- return ts7.factory.createNumericLiteral(value);
1374
+ return ts8.factory.createNumericLiteral(value);
1349
1375
  } else {
1350
- return ts7.factory.createStringLiteral(value);
1376
+ return ts8.factory.createStringLiteral(value);
1351
1377
  }
1352
1378
  }
1353
1379
  createNewExpression(expression, args) {
1354
- return ts7.factory.createNewExpression(expression, void 0, args);
1380
+ return ts8.factory.createNewExpression(expression, void 0, args);
1355
1381
  }
1356
1382
  createObjectLiteral(properties) {
1357
- return ts7.factory.createObjectLiteralExpression(properties.map((prop) => ts7.factory.createPropertyAssignment(prop.quoted ? ts7.factory.createStringLiteral(prop.propertyName) : ts7.factory.createIdentifier(prop.propertyName), prop.value)));
1383
+ return ts8.factory.createObjectLiteralExpression(properties.map((prop) => ts8.factory.createPropertyAssignment(prop.quoted ? ts8.factory.createStringLiteral(prop.propertyName) : ts8.factory.createIdentifier(prop.propertyName), prop.value)));
1358
1384
  }
1359
1385
  createReturnStatement(expression) {
1360
- return ts7.factory.createReturnStatement(expression != null ? expression : void 0);
1386
+ return ts8.factory.createReturnStatement(expression != null ? expression : void 0);
1361
1387
  }
1362
1388
  createTaggedTemplate(tag, template) {
1363
1389
  let templateLiteral;
1364
1390
  const length = template.elements.length;
1365
1391
  const head = template.elements[0];
1366
1392
  if (length === 1) {
1367
- templateLiteral = ts7.factory.createNoSubstitutionTemplateLiteral(head.cooked, head.raw);
1393
+ templateLiteral = ts8.factory.createNoSubstitutionTemplateLiteral(head.cooked, head.raw);
1368
1394
  } else {
1369
1395
  const spans = [];
1370
1396
  for (let i = 1; i < length - 1; i++) {
@@ -1373,7 +1399,7 @@ var TypeScriptAstFactory = class {
1373
1399
  if (range !== null) {
1374
1400
  this.setSourceMapRange(middle, range);
1375
1401
  }
1376
- spans.push(ts7.factory.createTemplateSpan(template.expressions[i - 1], middle));
1402
+ spans.push(ts8.factory.createTemplateSpan(template.expressions[i - 1], middle));
1377
1403
  }
1378
1404
  const resolvedExpression = template.expressions[length - 2];
1379
1405
  const templatePart = template.elements[length - 1];
@@ -1381,19 +1407,19 @@ var TypeScriptAstFactory = class {
1381
1407
  if (templatePart.range !== null) {
1382
1408
  this.setSourceMapRange(templateTail, templatePart.range);
1383
1409
  }
1384
- spans.push(ts7.factory.createTemplateSpan(resolvedExpression, templateTail));
1385
- templateLiteral = ts7.factory.createTemplateExpression(ts7.factory.createTemplateHead(head.cooked, head.raw), spans);
1410
+ spans.push(ts8.factory.createTemplateSpan(resolvedExpression, templateTail));
1411
+ templateLiteral = ts8.factory.createTemplateExpression(ts8.factory.createTemplateHead(head.cooked, head.raw), spans);
1386
1412
  }
1387
1413
  if (head.range !== null) {
1388
1414
  this.setSourceMapRange(templateLiteral, head.range);
1389
1415
  }
1390
- return ts7.factory.createTaggedTemplateExpression(tag, void 0, templateLiteral);
1416
+ return ts8.factory.createTaggedTemplateExpression(tag, void 0, templateLiteral);
1391
1417
  }
1392
1418
  createUnaryExpression(operator, operand) {
1393
- return ts7.factory.createPrefixUnaryExpression(UNARY_OPERATORS2[operator], operand);
1419
+ return ts8.factory.createPrefixUnaryExpression(UNARY_OPERATORS2[operator], operand);
1394
1420
  }
1395
1421
  createVariableDeclaration(variableName, initializer, type) {
1396
- return ts7.factory.createVariableStatement(void 0, ts7.factory.createVariableDeclarationList([ts7.factory.createVariableDeclaration(variableName, void 0, void 0, initializer != null ? initializer : void 0)], VAR_TYPES[type]));
1422
+ return ts8.factory.createVariableStatement(void 0, ts8.factory.createVariableDeclarationList([ts8.factory.createVariableDeclaration(variableName, void 0, void 0, initializer != null ? initializer : void 0)], VAR_TYPES[type]));
1397
1423
  }
1398
1424
  setSourceMapRange(node, sourceMapRange) {
1399
1425
  if (sourceMapRange === null) {
@@ -1401,37 +1427,37 @@ var TypeScriptAstFactory = class {
1401
1427
  }
1402
1428
  const url = sourceMapRange.url;
1403
1429
  if (!this.externalSourceFiles.has(url)) {
1404
- this.externalSourceFiles.set(url, ts7.createSourceMapSource(url, sourceMapRange.content, (pos) => pos));
1430
+ this.externalSourceFiles.set(url, ts8.createSourceMapSource(url, sourceMapRange.content, (pos) => pos));
1405
1431
  }
1406
1432
  const source = this.externalSourceFiles.get(url);
1407
- ts7.setSourceMapRange(node, { pos: sourceMapRange.start.offset, end: sourceMapRange.end.offset, source });
1433
+ ts8.setSourceMapRange(node, { pos: sourceMapRange.start.offset, end: sourceMapRange.end.offset, source });
1408
1434
  return node;
1409
1435
  }
1410
1436
  };
1411
1437
  function createTemplateMiddle(cooked, raw) {
1412
- const node = ts7.factory.createTemplateHead(cooked, raw);
1413
- node.kind = ts7.SyntaxKind.TemplateMiddle;
1438
+ const node = ts8.factory.createTemplateHead(cooked, raw);
1439
+ node.kind = ts8.SyntaxKind.TemplateMiddle;
1414
1440
  return node;
1415
1441
  }
1416
1442
  function createTemplateTail(cooked, raw) {
1417
- const node = ts7.factory.createTemplateHead(cooked, raw);
1418
- node.kind = ts7.SyntaxKind.TemplateTail;
1443
+ const node = ts8.factory.createTemplateHead(cooked, raw);
1444
+ node.kind = ts8.SyntaxKind.TemplateTail;
1419
1445
  return node;
1420
1446
  }
1421
1447
  function attachComments(statement, leadingComments) {
1422
1448
  for (const comment of leadingComments) {
1423
- const commentKind = comment.multiline ? ts7.SyntaxKind.MultiLineCommentTrivia : ts7.SyntaxKind.SingleLineCommentTrivia;
1449
+ const commentKind = comment.multiline ? ts8.SyntaxKind.MultiLineCommentTrivia : ts8.SyntaxKind.SingleLineCommentTrivia;
1424
1450
  if (comment.multiline) {
1425
- ts7.addSyntheticLeadingComment(statement, commentKind, comment.toString(), comment.trailingNewline);
1451
+ ts8.addSyntheticLeadingComment(statement, commentKind, comment.toString(), comment.trailingNewline);
1426
1452
  } else {
1427
1453
  for (const line of comment.toString().split("\n")) {
1428
- ts7.addSyntheticLeadingComment(statement, commentKind, line, comment.trailingNewline);
1454
+ ts8.addSyntheticLeadingComment(statement, commentKind, line, comment.trailingNewline);
1429
1455
  }
1430
1456
  }
1431
1457
  }
1432
1458
  }
1433
1459
 
1434
- // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
1460
+ // bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/ngtsc/translator/src/typescript_translator.mjs
1435
1461
  function translateExpression(expression, imports, options = {}) {
1436
1462
  return expression.visitExpression(new ExpressionTranslatorVisitor(new TypeScriptAstFactory(options.annotateForClosureCompiler === true), imports, options), new Context(false));
1437
1463
  }
@@ -1490,10 +1516,20 @@ export {
1490
1516
  Context,
1491
1517
  ImportManager,
1492
1518
  ExpressionTranslatorVisitor,
1519
+ createParameterDeclaration,
1520
+ createImportDeclaration,
1521
+ createFunctionDeclaration,
1493
1522
  translateType,
1494
1523
  translateExpression,
1495
1524
  translateStatement
1496
1525
  };
1526
+ /*!
1527
+ * @license
1528
+ * Copyright Google LLC All Rights Reserved.
1529
+ *
1530
+ * Use of this source code is governed by an MIT-style license that can be
1531
+ * found in the LICENSE file at https://angular.io/license
1532
+ */
1497
1533
  /**
1498
1534
  * @license
1499
1535
  * Copyright Google LLC All Rights Reserved.
@@ -1501,4 +1537,4 @@ export {
1501
1537
  * Use of this source code is governed by an MIT-style license that can be
1502
1538
  * found in the LICENSE file at https://angular.io/license
1503
1539
  */
1504
- //# sourceMappingURL=chunk-UN4WV3U4.js.map
1540
+ //# sourceMappingURL=chunk-Z534TW2O.js.map