@angular/compiler-cli 15.1.0-next.3 → 15.1.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.
- package/bundles/{chunk-V5JWXGQQ.js → chunk-47D45K5K.js} +65 -65
- package/bundles/chunk-47D45K5K.js.map +6 -0
- package/bundles/{chunk-EFL37X7Q.js → chunk-64X67E3N.js} +31 -32
- package/bundles/chunk-64X67E3N.js.map +6 -0
- package/bundles/{chunk-OUTDZGN7.js → chunk-6ZJFIQBG.js} +7 -8
- package/bundles/chunk-6ZJFIQBG.js.map +6 -0
- package/bundles/{chunk-DLVFMDSC.js → chunk-7DUI3BSX.js} +2 -3
- package/bundles/chunk-7DUI3BSX.js.map +6 -0
- package/bundles/{chunk-3X2TSQ2D.js → chunk-DCKTQM63.js} +101 -108
- package/bundles/chunk-DCKTQM63.js.map +6 -0
- package/bundles/{chunk-E7DPJFUS.js → chunk-EC5K6QPP.js} +10 -11
- package/bundles/chunk-EC5K6QPP.js.map +6 -0
- package/bundles/{chunk-Y6OF4IE7.js → chunk-HRV5BIYU.js} +5 -6
- package/bundles/chunk-HRV5BIYU.js.map +6 -0
- package/bundles/{chunk-3S7MERES.js → chunk-LHX5X4GY.js} +72 -76
- package/bundles/chunk-LHX5X4GY.js.map +6 -0
- package/bundles/{chunk-MAF2KC4N.js → chunk-NJMZRTB6.js} +5 -6
- package/bundles/chunk-NJMZRTB6.js.map +6 -0
- package/bundles/{chunk-OHYTYUA4.js → chunk-O4JLZZWJ.js} +9 -14
- package/bundles/chunk-O4JLZZWJ.js.map +6 -0
- package/bundles/{chunk-Y6MBLTIR.js → chunk-Q6W3UCXI.js} +32 -34
- package/bundles/chunk-Q6W3UCXI.js.map +6 -0
- package/bundles/{chunk-OFXSI6E3.js → chunk-SBDNBITT.js} +3 -4
- package/bundles/chunk-SBDNBITT.js.map +6 -0
- package/bundles/{chunk-NDREJTCS.js → chunk-SRFZMXHZ.js} +1 -2
- package/bundles/{chunk-NDREJTCS.js.map → chunk-SRFZMXHZ.js.map} +0 -0
- package/bundles/{chunk-QVO57CDR.js → chunk-YRDMG3GM.js} +4 -5
- package/bundles/chunk-YRDMG3GM.js.map +6 -0
- package/bundles/{chunk-UN4WV3U4.js → chunk-Z534TW2O.js} +174 -138
- package/bundles/chunk-Z534TW2O.js.map +6 -0
- package/bundles/{chunk-I4VIIB6S.js → chunk-ZPQIVD3E.js} +106 -112
- package/bundles/chunk-ZPQIVD3E.js.map +6 -0
- package/bundles/index.js +13 -15
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +89 -99
- package/bundles/linker/babel/index.js.map +3 -3
- package/bundles/linker/index.js +5 -7
- package/bundles/ngcc/index.js +14 -17
- package/bundles/ngcc/index.js.map +1 -1
- package/bundles/ngcc/main-ngcc.js +14 -16
- package/bundles/ngcc/main-ngcc.js.map +1 -1
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -16
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +1 -1
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +5 -6
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js.map +1 -1
- package/bundles/private/bazel.js +2 -3
- package/bundles/private/localize.js +4 -5
- package/bundles/private/migrations.js +6 -8
- package/bundles/private/tooling.js +3 -5
- package/bundles/src/bin/ng_xi18n.js +11 -13
- package/bundles/src/bin/ng_xi18n.js.map +1 -1
- package/bundles/src/bin/ngc.js +9 -11
- package/bundles/src/bin/ngc.js.map +1 -1
- package/bundles_metadata.json +1 -1
- package/index.d.ts +0 -1
- package/linker/babel/index.d.ts +0 -1
- package/linker/babel/src/ast/babel_ast_factory.d.ts +8 -2
- package/linker/babel/src/ast/babel_ast_host.d.ts +1 -2
- package/linker/babel/src/babel_declaration_scope.d.ts +1 -2
- package/linker/babel/src/babel_plugin.d.ts +8 -2
- package/linker/babel/src/es2015_linker_plugin.d.ts +1 -2
- package/linker/babel/src/linker_plugin_options.d.ts +0 -1
- package/linker/index.d.ts +0 -1
- package/linker/src/ast/ast_host.d.ts +0 -1
- package/linker/src/ast/ast_value.d.ts +0 -1
- package/linker/src/ast/typescript/typescript_ast_host.d.ts +0 -1
- package/linker/src/ast/utils.d.ts +0 -1
- package/linker/src/fatal_linker_error.d.ts +0 -1
- package/linker/src/file_linker/declaration_scope.d.ts +0 -1
- package/linker/src/file_linker/emit_scopes/emit_scope.d.ts +0 -1
- package/linker/src/file_linker/emit_scopes/local_emit_scope.d.ts +0 -1
- package/linker/src/file_linker/file_linker.d.ts +0 -1
- package/linker/src/file_linker/get_source_file.d.ts +0 -1
- package/linker/src/file_linker/linker_environment.d.ts +0 -1
- package/linker/src/file_linker/linker_options.d.ts +0 -1
- package/linker/src/file_linker/needs_linking.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_class_metadata_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_component_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_directive_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_factory_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_injectable_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_injector_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_linker.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_linker_selector.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_ng_module_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/partial_pipe_linker_1.d.ts +0 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +0 -1
- package/linker/src/file_linker/translator.d.ts +0 -1
- package/linker/src/linker_import_generator.d.ts +0 -1
- package/ngcc/index.d.ts +0 -2
- package/ngcc/main-ngcc.d.ts +0 -1
- package/ngcc/src/analysis/decoration_analyzer.d.ts +0 -1
- package/ngcc/src/analysis/migration_host.d.ts +0 -1
- package/ngcc/src/analysis/module_with_providers_analyzer.d.ts +0 -1
- package/ngcc/src/analysis/ngcc_references_registry.d.ts +0 -1
- package/ngcc/src/analysis/ngcc_trait_compiler.d.ts +0 -1
- package/ngcc/src/analysis/private_declarations_analyzer.d.ts +0 -1
- package/ngcc/src/analysis/types.d.ts +0 -1
- package/ngcc/src/analysis/util.d.ts +0 -1
- package/ngcc/src/command_line_options.d.ts +0 -1
- package/ngcc/src/constants.d.ts +0 -1
- package/ngcc/src/dependencies/commonjs_dependency_host.d.ts +0 -1
- package/ngcc/src/dependencies/dependency_host.d.ts +0 -1
- package/ngcc/src/dependencies/dependency_resolver.d.ts +0 -1
- package/ngcc/src/dependencies/dts_dependency_host.d.ts +0 -1
- package/ngcc/src/dependencies/esm_dependency_host.d.ts +0 -1
- package/ngcc/src/dependencies/module_resolver.d.ts +0 -1
- package/ngcc/src/dependencies/umd_dependency_host.d.ts +0 -1
- package/ngcc/src/entry_point_finder/directory_walker_entry_point_finder.d.ts +0 -1
- package/ngcc/src/entry_point_finder/entry_point_collector.d.ts +0 -1
- package/ngcc/src/entry_point_finder/interface.d.ts +0 -1
- package/ngcc/src/entry_point_finder/program_based_entry_point_finder.d.ts +0 -1
- package/ngcc/src/entry_point_finder/targeted_entry_point_finder.d.ts +0 -1
- package/ngcc/src/entry_point_finder/tracing_entry_point_finder.d.ts +0 -1
- package/ngcc/src/entry_point_finder/utils.d.ts +0 -1
- package/ngcc/src/execution/analyze_entry_points.d.ts +0 -1
- package/ngcc/src/execution/api.d.ts +0 -1
- package/ngcc/src/execution/cluster/api.d.ts +0 -1
- package/ngcc/src/execution/cluster/executor.d.ts +0 -1
- package/ngcc/src/execution/cluster/master.d.ts +4 -3
- package/ngcc/src/execution/cluster/ngcc_cluster_worker.d.ts +0 -1
- package/ngcc/src/execution/cluster/package_json_updater.d.ts +0 -1
- package/ngcc/src/execution/cluster/utils.d.ts +0 -1
- package/ngcc/src/execution/cluster/worker.d.ts +0 -1
- package/ngcc/src/execution/create_compile_function.d.ts +0 -1
- package/ngcc/src/execution/single_process_executor.d.ts +0 -1
- package/ngcc/src/execution/tasks/api.d.ts +0 -1
- package/ngcc/src/execution/tasks/completion.d.ts +0 -1
- package/ngcc/src/execution/tasks/queues/base_task_queue.d.ts +0 -1
- package/ngcc/src/execution/tasks/queues/parallel_task_queue.d.ts +0 -1
- package/ngcc/src/execution/tasks/queues/serial_task_queue.d.ts +0 -1
- package/ngcc/src/execution/tasks/utils.d.ts +0 -1
- package/ngcc/src/host/commonjs_host.d.ts +0 -1
- package/ngcc/src/host/commonjs_umd_utils.d.ts +0 -1
- package/ngcc/src/host/delegating_host.d.ts +0 -1
- package/ngcc/src/host/esm2015_host.d.ts +0 -1
- package/ngcc/src/host/esm5_host.d.ts +0 -1
- package/ngcc/src/host/ngcc_host.d.ts +0 -1
- package/ngcc/src/host/umd_host.d.ts +0 -1
- package/ngcc/src/host/utils.d.ts +0 -1
- package/ngcc/src/locking/async_locker.d.ts +0 -1
- package/ngcc/src/locking/lock_file.d.ts +4 -2
- package/ngcc/src/locking/lock_file_with_child_process/index.d.ts +4 -3
- package/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.d.ts +0 -1
- package/ngcc/src/locking/lock_file_with_child_process/util.d.ts +0 -1
- package/ngcc/src/locking/sync_locker.d.ts +0 -1
- package/ngcc/src/main.d.ts +0 -1
- package/ngcc/src/migrations/migration.d.ts +0 -1
- package/ngcc/src/migrations/missing_injectable_migration.d.ts +0 -1
- package/ngcc/src/migrations/undecorated_child_migration.d.ts +0 -1
- package/ngcc/src/migrations/undecorated_parent_migration.d.ts +0 -1
- package/ngcc/src/migrations/utils.d.ts +0 -1
- package/ngcc/src/ngcc_options.d.ts +0 -1
- package/ngcc/src/packages/adjust_cjs_umd_exports.d.ts +0 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -2
- package/ngcc/src/packages/bundle_program.d.ts +0 -1
- package/ngcc/src/packages/configuration.d.ts +0 -1
- package/ngcc/src/packages/entry_point.d.ts +0 -1
- package/ngcc/src/packages/entry_point_bundle.d.ts +0 -1
- package/ngcc/src/packages/entry_point_manifest.d.ts +0 -1
- package/ngcc/src/packages/ngcc_compiler_host.d.ts +0 -1
- package/ngcc/src/packages/patch_ts_expando_initializer.d.ts +0 -1
- package/ngcc/src/packages/source_file_cache.d.ts +0 -1
- package/ngcc/src/packages/transformer.d.ts +0 -1
- package/ngcc/src/path_mappings.d.ts +0 -1
- package/ngcc/src/rendering/commonjs_rendering_formatter.d.ts +0 -1
- package/ngcc/src/rendering/dts_renderer.d.ts +0 -1
- package/ngcc/src/rendering/esm5_rendering_formatter.d.ts +0 -1
- package/ngcc/src/rendering/esm_rendering_formatter.d.ts +0 -1
- package/ngcc/src/rendering/ngcc_import_rewriter.d.ts +0 -1
- package/ngcc/src/rendering/renderer.d.ts +0 -1
- package/ngcc/src/rendering/rendering_formatter.d.ts +0 -1
- package/ngcc/src/rendering/source_maps.d.ts +0 -1
- package/ngcc/src/rendering/umd_rendering_formatter.d.ts +0 -1
- package/ngcc/src/rendering/utils.d.ts +0 -1
- package/ngcc/src/utils.d.ts +0 -1
- package/ngcc/src/writing/cleaning/cleaning_strategies.d.ts +0 -1
- package/ngcc/src/writing/cleaning/package_cleaner.d.ts +0 -1
- package/ngcc/src/writing/cleaning/utils.d.ts +0 -1
- package/ngcc/src/writing/file_writer.d.ts +0 -1
- package/ngcc/src/writing/in_place_file_writer.d.ts +0 -1
- package/ngcc/src/writing/new_entry_point_file_writer.d.ts +0 -1
- package/ngcc/src/writing/package_json_updater.d.ts +0 -1
- package/package.json +3 -3
- package/private/bazel.d.ts +0 -1
- package/private/localize.d.ts +0 -1
- package/private/migrations.d.ts +0 -1
- package/private/tooling.d.ts +0 -1
- package/src/bin/ng_xi18n.d.ts +0 -1
- package/src/bin/ngc.d.ts +0 -1
- package/src/extract_i18n.d.ts +0 -1
- package/src/main.d.ts +0 -1
- package/src/ngtsc/annotations/common/index.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/api.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/di.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/diagnostics.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/evaluation.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/factory.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/injectable_registry.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/metadata.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/references_registry.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/schema.d.ts +0 -1
- package/src/ngtsc/annotations/common/src/util.d.ts +0 -1
- package/src/ngtsc/annotations/component/index.d.ts +0 -1
- package/src/ngtsc/annotations/component/src/diagnostics.d.ts +0 -1
- package/src/ngtsc/annotations/component/src/handler.d.ts +0 -1
- package/src/ngtsc/annotations/component/src/metadata.d.ts +0 -1
- package/src/ngtsc/annotations/component/src/resources.d.ts +0 -1
- package/src/ngtsc/annotations/component/src/symbol.d.ts +0 -1
- package/src/ngtsc/annotations/component/src/util.d.ts +0 -1
- package/src/ngtsc/annotations/directive/index.d.ts +0 -1
- package/src/ngtsc/annotations/directive/src/handler.d.ts +0 -1
- package/src/ngtsc/annotations/directive/src/shared.d.ts +0 -1
- package/src/ngtsc/annotations/directive/src/symbol.d.ts +0 -1
- package/src/ngtsc/annotations/index.d.ts +0 -1
- package/src/ngtsc/annotations/ng_module/index.d.ts +0 -1
- package/src/ngtsc/annotations/ng_module/src/handler.d.ts +0 -1
- package/src/ngtsc/annotations/ng_module/src/module_with_providers.d.ts +0 -1
- package/src/ngtsc/annotations/src/injectable.d.ts +0 -1
- package/src/ngtsc/annotations/src/pipe.d.ts +0 -1
- package/src/ngtsc/core/api/index.d.ts +0 -1
- package/src/ngtsc/core/api/src/adapter.d.ts +0 -1
- package/src/ngtsc/core/api/src/interfaces.d.ts +0 -1
- package/src/ngtsc/core/api/src/options.d.ts +0 -1
- package/src/ngtsc/core/api/src/public_options.d.ts +0 -1
- package/src/ngtsc/core/index.d.ts +0 -1
- package/src/ngtsc/core/src/compiler.d.ts +0 -1
- package/src/ngtsc/core/src/host.d.ts +1 -2
- package/src/ngtsc/cycles/index.d.ts +0 -1
- package/src/ngtsc/cycles/src/analyzer.d.ts +0 -1
- package/src/ngtsc/cycles/src/imports.d.ts +0 -1
- package/src/ngtsc/diagnostics/index.d.ts +0 -1
- package/src/ngtsc/diagnostics/src/docs.d.ts +0 -1
- package/src/ngtsc/diagnostics/src/error.d.ts +0 -1
- package/src/ngtsc/diagnostics/src/error_code.d.ts +0 -1
- package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +0 -1
- package/src/ngtsc/diagnostics/src/extended_template_diagnostic_name.d.ts +0 -1
- package/src/ngtsc/diagnostics/src/util.d.ts +0 -1
- package/src/ngtsc/entry_point/index.d.ts +0 -1
- package/src/ngtsc/entry_point/src/generator.d.ts +0 -1
- package/src/ngtsc/entry_point/src/logic.d.ts +0 -1
- package/src/ngtsc/entry_point/src/private_export_checker.d.ts +0 -1
- package/src/ngtsc/entry_point/src/reference_graph.d.ts +0 -1
- package/src/ngtsc/file_system/index.d.ts +0 -1
- package/src/ngtsc/file_system/src/compiler_host.d.ts +0 -1
- package/src/ngtsc/file_system/src/helpers.d.ts +0 -1
- package/src/ngtsc/file_system/src/invalid_file_system.d.ts +0 -1
- package/src/ngtsc/file_system/src/logical.d.ts +0 -1
- package/src/ngtsc/file_system/src/node_js_file_system.d.ts +0 -1
- package/src/ngtsc/file_system/src/types.d.ts +0 -1
- package/src/ngtsc/file_system/src/util.d.ts +0 -1
- package/src/ngtsc/imports/index.d.ts +0 -1
- package/src/ngtsc/imports/src/alias.d.ts +0 -1
- package/src/ngtsc/imports/src/core.d.ts +0 -1
- package/src/ngtsc/imports/src/default.d.ts +0 -1
- package/src/ngtsc/imports/src/emitter.d.ts +0 -1
- package/src/ngtsc/imports/src/find_export.d.ts +0 -1
- package/src/ngtsc/imports/src/reexport.d.ts +0 -1
- package/src/ngtsc/imports/src/references.d.ts +0 -1
- package/src/ngtsc/imports/src/resolver.d.ts +0 -1
- package/src/ngtsc/incremental/api.d.ts +0 -1
- package/src/ngtsc/incremental/index.d.ts +0 -1
- package/src/ngtsc/incremental/semantic_graph/index.d.ts +0 -1
- package/src/ngtsc/incremental/semantic_graph/src/api.d.ts +0 -1
- package/src/ngtsc/incremental/semantic_graph/src/graph.d.ts +1 -2
- package/src/ngtsc/incremental/semantic_graph/src/type_parameters.d.ts +0 -1
- package/src/ngtsc/incremental/semantic_graph/src/util.d.ts +0 -1
- package/src/ngtsc/incremental/src/dependency_tracking.d.ts +0 -1
- package/src/ngtsc/incremental/src/incremental.d.ts +0 -1
- package/src/ngtsc/incremental/src/noop.d.ts +0 -1
- package/src/ngtsc/incremental/src/state.d.ts +0 -1
- package/src/ngtsc/incremental/src/strategy.d.ts +0 -1
- package/src/ngtsc/indexer/index.d.ts +0 -1
- package/src/ngtsc/indexer/src/api.d.ts +0 -1
- package/src/ngtsc/indexer/src/context.d.ts +0 -1
- package/src/ngtsc/indexer/src/template.d.ts +0 -1
- package/src/ngtsc/indexer/src/transform.d.ts +0 -1
- package/src/ngtsc/logging/index.d.ts +0 -1
- package/src/ngtsc/logging/src/console_logger.d.ts +0 -1
- package/src/ngtsc/logging/src/logger.d.ts +0 -1
- package/src/ngtsc/metadata/index.d.ts +0 -1
- package/src/ngtsc/metadata/src/api.d.ts +0 -1
- package/src/ngtsc/metadata/src/dts.d.ts +0 -1
- package/src/ngtsc/metadata/src/host_directives_resolver.d.ts +0 -1
- package/src/ngtsc/metadata/src/inheritance.d.ts +0 -1
- package/src/ngtsc/metadata/src/property_mapping.d.ts +0 -1
- package/src/ngtsc/metadata/src/registry.d.ts +0 -1
- package/src/ngtsc/metadata/src/resource_registry.d.ts +0 -1
- package/src/ngtsc/metadata/src/util.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/index.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/builtin.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/diagnostics.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/dynamic.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/interface.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/interpreter.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/known_declaration.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/result.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/synthetic.d.ts +0 -1
- package/src/ngtsc/partial_evaluator/src/ts_helpers.d.ts +0 -1
- package/src/ngtsc/perf/index.d.ts +0 -1
- package/src/ngtsc/perf/src/api.d.ts +0 -1
- package/src/ngtsc/perf/src/clock.d.ts +0 -1
- package/src/ngtsc/perf/src/noop.d.ts +0 -1
- package/src/ngtsc/perf/src/recorder.d.ts +0 -1
- package/src/ngtsc/program.d.ts +0 -1
- package/src/ngtsc/program_driver/index.d.ts +0 -1
- package/src/ngtsc/program_driver/src/api.d.ts +0 -1
- package/src/ngtsc/program_driver/src/ts_create_program_driver.d.ts +0 -1
- package/src/ngtsc/reflection/index.d.ts +0 -1
- package/src/ngtsc/reflection/src/host.d.ts +0 -1
- package/src/ngtsc/reflection/src/type_to_value.d.ts +0 -1
- package/src/ngtsc/reflection/src/typescript.d.ts +0 -1
- package/src/ngtsc/reflection/src/util.d.ts +0 -1
- package/src/ngtsc/resource/index.d.ts +0 -1
- package/src/ngtsc/resource/src/loader.d.ts +0 -1
- package/src/ngtsc/scope/index.d.ts +0 -1
- package/src/ngtsc/scope/src/api.d.ts +0 -1
- package/src/ngtsc/scope/src/component_scope.d.ts +0 -1
- package/src/ngtsc/scope/src/dependency.d.ts +0 -1
- package/src/ngtsc/scope/src/local.d.ts +0 -1
- package/src/ngtsc/scope/src/standalone.d.ts +0 -1
- package/src/ngtsc/scope/src/typecheck.d.ts +0 -1
- package/src/ngtsc/scope/src/util.d.ts +0 -1
- package/src/ngtsc/shims/api.d.ts +0 -1
- package/src/ngtsc/shims/index.d.ts +0 -1
- package/src/ngtsc/shims/src/adapter.d.ts +0 -1
- package/src/ngtsc/shims/src/expando.d.ts +0 -1
- package/src/ngtsc/shims/src/factory_generator.d.ts +0 -1
- package/src/ngtsc/shims/src/reference_tagger.d.ts +0 -1
- package/src/ngtsc/shims/src/summary_generator.d.ts +0 -1
- package/src/ngtsc/shims/src/util.d.ts +0 -1
- package/src/ngtsc/sourcemaps/index.d.ts +0 -1
- package/src/ngtsc/sourcemaps/src/content_origin.d.ts +0 -1
- package/src/ngtsc/sourcemaps/src/raw_source_map.d.ts +0 -1
- package/src/ngtsc/sourcemaps/src/segment_marker.d.ts +0 -1
- package/src/ngtsc/sourcemaps/src/source_file.d.ts +0 -1
- package/src/ngtsc/sourcemaps/src/source_file_loader.d.ts +0 -1
- package/src/ngtsc/transform/index.d.ts +0 -1
- package/src/ngtsc/transform/src/alias.d.ts +0 -1
- package/src/ngtsc/transform/src/api.d.ts +0 -1
- package/src/ngtsc/transform/src/compilation.d.ts +0 -1
- package/src/ngtsc/transform/src/declaration.d.ts +0 -1
- package/src/ngtsc/transform/src/trait.d.ts +0 -1
- package/src/ngtsc/transform/src/transform.d.ts +0 -1
- package/src/ngtsc/transform/src/utils.d.ts +0 -1
- package/src/ngtsc/translator/index.d.ts +0 -1
- package/src/ngtsc/translator/src/api/ast_factory.d.ts +0 -1
- package/src/ngtsc/translator/src/api/import_generator.d.ts +0 -1
- package/src/ngtsc/translator/src/context.d.ts +0 -1
- package/src/ngtsc/translator/src/import_manager.d.ts +0 -1
- package/src/ngtsc/translator/src/translator.d.ts +0 -1
- package/src/ngtsc/translator/src/type_translator.d.ts +0 -1
- package/src/ngtsc/translator/src/typescript_ast_factory.d.ts +0 -1
- package/src/ngtsc/translator/src/typescript_translator.d.ts +0 -1
- package/src/ngtsc/ts_compatibility/index.d.ts +0 -1
- package/src/ngtsc/ts_compatibility/src/ts_cross_version_utils.d.ts +2 -145
- package/src/ngtsc/tsc_plugin.d.ts +0 -1
- package/src/ngtsc/typecheck/api/api.d.ts +0 -1
- package/src/ngtsc/typecheck/api/checker.d.ts +0 -1
- package/src/ngtsc/typecheck/api/completion.d.ts +0 -1
- package/src/ngtsc/typecheck/api/context.d.ts +0 -1
- package/src/ngtsc/typecheck/api/index.d.ts +0 -1
- package/src/ngtsc/typecheck/api/scope.d.ts +0 -1
- package/src/ngtsc/typecheck/api/symbols.d.ts +0 -1
- package/src/ngtsc/typecheck/diagnostics/index.d.ts +0 -1
- package/src/ngtsc/typecheck/diagnostics/src/diagnostic.d.ts +0 -1
- package/src/ngtsc/typecheck/diagnostics/src/id.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/api/api.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/api/extended_template_checker.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/api/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/checks/invalid_banana_in_box/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/checks/missing_control_flow_directive/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/checks/missing_ngforof_let/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/checks/nullish_coalescing_not_nullable/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/checks/optional_chain_not_nullable/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/checks/suffix_not_supported/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/checks/text_attribute_not_binding/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/index.d.ts +0 -1
- package/src/ngtsc/typecheck/extended/src/extended_template_checker.d.ts +0 -1
- package/src/ngtsc/typecheck/index.d.ts +0 -1
- package/src/ngtsc/typecheck/src/checker.d.ts +0 -1
- package/src/ngtsc/typecheck/src/comments.d.ts +0 -1
- package/src/ngtsc/typecheck/src/completion.d.ts +0 -1
- package/src/ngtsc/typecheck/src/context.d.ts +0 -1
- package/src/ngtsc/typecheck/src/diagnostics.d.ts +0 -1
- package/src/ngtsc/typecheck/src/dom.d.ts +0 -1
- package/src/ngtsc/typecheck/src/environment.d.ts +0 -1
- package/src/ngtsc/typecheck/src/expression.d.ts +0 -1
- package/src/ngtsc/typecheck/src/line_mappings.d.ts +0 -1
- package/src/ngtsc/typecheck/src/oob.d.ts +0 -1
- package/src/ngtsc/typecheck/src/shim.d.ts +0 -1
- package/src/ngtsc/typecheck/src/source.d.ts +0 -1
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +0 -1
- package/src/ngtsc/typecheck/src/template_semantics.d.ts +0 -1
- package/src/ngtsc/typecheck/src/template_symbol_builder.d.ts +0 -1
- package/src/ngtsc/typecheck/src/ts_util.d.ts +0 -1
- package/src/ngtsc/typecheck/src/type_check_block.d.ts +0 -1
- package/src/ngtsc/typecheck/src/type_check_file.d.ts +0 -1
- package/src/ngtsc/typecheck/src/type_constructor.d.ts +0 -1
- package/src/ngtsc/typecheck/src/type_emitter.d.ts +0 -1
- package/src/ngtsc/typecheck/src/type_parameter_emitter.d.ts +0 -1
- package/src/ngtsc/util/src/path.d.ts +0 -1
- package/src/ngtsc/util/src/typescript.d.ts +0 -1
- package/src/ngtsc/util/src/visitor.d.ts +0 -1
- package/src/ngtsc/xi18n/index.d.ts +0 -1
- package/src/ngtsc/xi18n/src/context.d.ts +0 -1
- package/src/perform_compile.d.ts +0 -1
- package/src/perform_watch.d.ts +0 -1
- package/src/transformers/api.d.ts +0 -1
- package/src/transformers/compiler_host.d.ts +0 -1
- package/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.d.ts +0 -1
- package/src/transformers/downlevel_decorators_transform/index.d.ts +0 -1
- package/src/transformers/downlevel_decorators_transform/patch_alias_reference_resolution.d.ts +0 -1
- package/src/transformers/entry_points.d.ts +0 -1
- package/src/transformers/i18n.d.ts +0 -1
- package/src/transformers/program.d.ts +0 -1
- package/src/transformers/util.d.ts +0 -1
- package/src/typescript_support.d.ts +0 -1
- package/src/version.d.ts +0 -1
- package/src/version_helpers.d.ts +0 -1
- package/bundles/chunk-3S7MERES.js.map +0 -6
- package/bundles/chunk-3X2TSQ2D.js.map +0 -6
- package/bundles/chunk-DLVFMDSC.js.map +0 -6
- package/bundles/chunk-E7DPJFUS.js.map +0 -6
- package/bundles/chunk-EFL37X7Q.js.map +0 -6
- package/bundles/chunk-I4VIIB6S.js.map +0 -6
- package/bundles/chunk-IZN5U2AM.js +0 -103
- package/bundles/chunk-IZN5U2AM.js.map +0 -6
- package/bundles/chunk-MAF2KC4N.js.map +0 -6
- package/bundles/chunk-OFXSI6E3.js.map +0 -6
- package/bundles/chunk-OHYTYUA4.js.map +0 -6
- package/bundles/chunk-OUTDZGN7.js.map +0 -6
- package/bundles/chunk-QVO57CDR.js.map +0 -6
- package/bundles/chunk-UN4WV3U4.js.map +0 -6
- package/bundles/chunk-V5JWXGQQ.js.map +0 -6
- package/bundles/chunk-Y6MBLTIR.js.map +0 -6
- package/bundles/chunk-Y6OF4IE7.js.map +0 -6
- package/import_meta_url.d.ts +0 -14
- 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-
|
|
15
|
+
} from "./chunk-EC5K6QPP.js";
|
|
22
16
|
|
|
23
|
-
// bazel-out/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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
|
|
1114
|
+
return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.BooleanKeyword);
|
|
1089
1115
|
case o2.BuiltinTypeName.Dynamic:
|
|
1090
|
-
return
|
|
1116
|
+
return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.AnyKeyword);
|
|
1091
1117
|
case o2.BuiltinTypeName.Int:
|
|
1092
1118
|
case o2.BuiltinTypeName.Number:
|
|
1093
|
-
return
|
|
1119
|
+
return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.NumberKeyword);
|
|
1094
1120
|
case o2.BuiltinTypeName.String:
|
|
1095
|
-
return
|
|
1121
|
+
return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.StringKeyword);
|
|
1096
1122
|
case o2.BuiltinTypeName.None:
|
|
1097
|
-
return
|
|
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 (!
|
|
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
|
|
1139
|
+
return ts7.factory.createTypeReferenceNode(typeNode.typeName, typeArgs);
|
|
1114
1140
|
}
|
|
1115
1141
|
visitArrayType(type, context) {
|
|
1116
|
-
return
|
|
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,
|
|
1120
|
-
const typeArgs = type.valueType !== null ? this.translateType(type.valueType, context) :
|
|
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
|
|
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
|
|
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
|
|
1176
|
+
return ts7.factory.createLiteralTypeNode(ts7.factory.createNull());
|
|
1151
1177
|
} else if (ast.value === void 0) {
|
|
1152
|
-
return
|
|
1178
|
+
return ts7.factory.createKeywordTypeNode(ts7.SyntaxKind.UndefinedKeyword);
|
|
1153
1179
|
} else if (typeof ast.value === "boolean") {
|
|
1154
|
-
return
|
|
1180
|
+
return ts7.factory.createLiteralTypeNode(ast.value ? ts7.factory.createTrue() : ts7.factory.createFalse());
|
|
1155
1181
|
} else if (typeof ast.value === "number") {
|
|
1156
|
-
return
|
|
1182
|
+
return ts7.factory.createLiteralTypeNode(ts7.factory.createNumericLiteral(ast.value));
|
|
1157
1183
|
} else {
|
|
1158
|
-
return
|
|
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 =
|
|
1170
|
-
const typeName = moduleImport ?
|
|
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
|
|
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
|
|
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
|
|
1229
|
+
return ts7.factory.createPropertySignature(
|
|
1204
1230
|
void 0,
|
|
1205
|
-
quoted ?
|
|
1231
|
+
quoted ? ts7.factory.createStringLiteral(key) : key,
|
|
1206
1232
|
void 0,
|
|
1207
1233
|
type
|
|
1208
1234
|
);
|
|
1209
1235
|
});
|
|
1210
|
-
return
|
|
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 (
|
|
1218
|
-
return
|
|
1219
|
-
} else if (
|
|
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 (
|
|
1222
|
-
return
|
|
1247
|
+
} else if (ts7.isLiteralExpression(node)) {
|
|
1248
|
+
return ts7.factory.createLiteralTypeNode(node);
|
|
1223
1249
|
} else {
|
|
1224
|
-
throw new Error(`Unsupported WrappedNodeExpr in TypeTranslatorVisitor: ${
|
|
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 (!
|
|
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
|
-
${
|
|
1257
|
+
${ts7.SyntaxKind[typeNode.kind]}`);
|
|
1232
1258
|
}
|
|
1233
|
-
return
|
|
1259
|
+
return ts7.factory.createTypeQueryNode(typeNode.typeName);
|
|
1234
1260
|
}
|
|
1235
1261
|
translateType(type, context) {
|
|
1236
1262
|
const typeNode = type.visitType(this, context);
|
|
1237
|
-
if (!
|
|
1238
|
-
throw new Error(`A Type must translate to a TypeNode, but was ${
|
|
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 (!
|
|
1245
|
-
throw new Error(`An Expression must translate to a TypeNode, but was ${
|
|
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/
|
|
1252
|
-
import
|
|
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
|
-
"+":
|
|
1260
|
-
"-":
|
|
1261
|
-
"!":
|
|
1285
|
+
"+": ts8.SyntaxKind.PlusToken,
|
|
1286
|
+
"-": ts8.SyntaxKind.MinusToken,
|
|
1287
|
+
"!": ts8.SyntaxKind.ExclamationToken
|
|
1262
1288
|
};
|
|
1263
1289
|
var BINARY_OPERATORS2 = {
|
|
1264
|
-
"&&":
|
|
1265
|
-
">":
|
|
1266
|
-
">=":
|
|
1267
|
-
"&":
|
|
1268
|
-
"/":
|
|
1269
|
-
"==":
|
|
1270
|
-
"===":
|
|
1271
|
-
"<":
|
|
1272
|
-
"<=":
|
|
1273
|
-
"-":
|
|
1274
|
-
"%":
|
|
1275
|
-
"*":
|
|
1276
|
-
"!=":
|
|
1277
|
-
"!==":
|
|
1278
|
-
"||":
|
|
1279
|
-
"+":
|
|
1280
|
-
"??":
|
|
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":
|
|
1284
|
-
"let":
|
|
1285
|
-
"var":
|
|
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 =
|
|
1293
|
-
this.createElementAccess =
|
|
1294
|
-
this.createExpressionStatement =
|
|
1295
|
-
this.createIdentifier =
|
|
1296
|
-
this.createParenthesizedExpression =
|
|
1297
|
-
this.createPropertyAccess =
|
|
1298
|
-
this.createThrowStatement =
|
|
1299
|
-
this.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
|
|
1328
|
+
return ts8.factory.createBinaryExpression(target, ts8.SyntaxKind.EqualsToken, value);
|
|
1303
1329
|
}
|
|
1304
1330
|
createBinaryExpression(leftOperand, operator, rightOperand) {
|
|
1305
|
-
return
|
|
1331
|
+
return ts8.factory.createBinaryExpression(leftOperand, BINARY_OPERATORS2[operator], rightOperand);
|
|
1306
1332
|
}
|
|
1307
1333
|
createBlock(body) {
|
|
1308
|
-
return
|
|
1334
|
+
return ts8.factory.createBlock(body);
|
|
1309
1335
|
}
|
|
1310
1336
|
createCallExpression(callee, args, pure) {
|
|
1311
|
-
const call =
|
|
1337
|
+
const call = ts8.factory.createCallExpression(callee, void 0, args);
|
|
1312
1338
|
if (pure) {
|
|
1313
|
-
|
|
1339
|
+
ts8.addSyntheticLeadingComment(
|
|
1314
1340
|
call,
|
|
1315
|
-
|
|
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
|
|
1349
|
+
return ts8.factory.createConditionalExpression(condition, void 0, whenTrue, void 0, whenFalse);
|
|
1324
1350
|
}
|
|
1325
1351
|
createFunctionDeclaration(functionName, parameters, body) {
|
|
1326
|
-
if (!
|
|
1327
|
-
throw new Error(`Invalid syntax, expected a block, but got ${
|
|
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 (!
|
|
1333
|
-
throw new Error(`Invalid syntax, expected a block, but got ${
|
|
1358
|
+
if (!ts8.isBlock(body)) {
|
|
1359
|
+
throw new Error(`Invalid syntax, expected a block, but got ${ts8.SyntaxKind[body.kind]}.`);
|
|
1334
1360
|
}
|
|
1335
|
-
return
|
|
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
|
|
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
|
|
1368
|
+
return ts8.factory.createIdentifier("undefined");
|
|
1343
1369
|
} else if (value === null) {
|
|
1344
|
-
return
|
|
1370
|
+
return ts8.factory.createNull();
|
|
1345
1371
|
} else if (typeof value === "boolean") {
|
|
1346
|
-
return value ?
|
|
1372
|
+
return value ? ts8.factory.createTrue() : ts8.factory.createFalse();
|
|
1347
1373
|
} else if (typeof value === "number") {
|
|
1348
|
-
return
|
|
1374
|
+
return ts8.factory.createNumericLiteral(value);
|
|
1349
1375
|
} else {
|
|
1350
|
-
return
|
|
1376
|
+
return ts8.factory.createStringLiteral(value);
|
|
1351
1377
|
}
|
|
1352
1378
|
}
|
|
1353
1379
|
createNewExpression(expression, args) {
|
|
1354
|
-
return
|
|
1380
|
+
return ts8.factory.createNewExpression(expression, void 0, args);
|
|
1355
1381
|
}
|
|
1356
1382
|
createObjectLiteral(properties) {
|
|
1357
|
-
return
|
|
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
|
|
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 =
|
|
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(
|
|
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(
|
|
1385
|
-
templateLiteral =
|
|
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
|
|
1416
|
+
return ts8.factory.createTaggedTemplateExpression(tag, void 0, templateLiteral);
|
|
1391
1417
|
}
|
|
1392
1418
|
createUnaryExpression(operator, operand) {
|
|
1393
|
-
return
|
|
1419
|
+
return ts8.factory.createPrefixUnaryExpression(UNARY_OPERATORS2[operator], operand);
|
|
1394
1420
|
}
|
|
1395
1421
|
createVariableDeclaration(variableName, initializer, type) {
|
|
1396
|
-
return
|
|
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,
|
|
1430
|
+
this.externalSourceFiles.set(url, ts8.createSourceMapSource(url, sourceMapRange.content, (pos) => pos));
|
|
1405
1431
|
}
|
|
1406
1432
|
const source = this.externalSourceFiles.get(url);
|
|
1407
|
-
|
|
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 =
|
|
1413
|
-
node.kind =
|
|
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 =
|
|
1418
|
-
node.kind =
|
|
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 ?
|
|
1449
|
+
const commentKind = comment.multiline ? ts8.SyntaxKind.MultiLineCommentTrivia : ts8.SyntaxKind.SingleLineCommentTrivia;
|
|
1424
1450
|
if (comment.multiline) {
|
|
1425
|
-
|
|
1451
|
+
ts8.addSyntheticLeadingComment(statement, commentKind, comment.toString(), comment.trailingNewline);
|
|
1426
1452
|
} else {
|
|
1427
1453
|
for (const line of comment.toString().split("\n")) {
|
|
1428
|
-
|
|
1454
|
+
ts8.addSyntheticLeadingComment(statement, commentKind, line, comment.trailingNewline);
|
|
1429
1455
|
}
|
|
1430
1456
|
}
|
|
1431
1457
|
}
|
|
1432
1458
|
}
|
|
1433
1459
|
|
|
1434
|
-
// bazel-out/
|
|
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-
|
|
1540
|
+
//# sourceMappingURL=chunk-Z534TW2O.js.map
|