ttsc 0.33.0 → 0.34.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/README.md +2 -0
- package/cmd/ttsc/api_compile.go +3 -2
- package/cmd/ttsc/api_transform.go +1 -1
- package/cmd/ttsc/build.go +5 -4
- package/cmd/ttsc-cache/account.go +16 -0
- package/cmd/ttsc-cache/account_test.go +91 -0
- package/cmd/ttsc-cache/main.go +1 -1
- package/cmd/ttsc-cache/protocol_test.go +2 -2
- package/cmd/ttsc-cache/publisher_seal_test.go +1 -1
- package/cmd/ttsc-cache/stock_go_failure_test.go +1 -1
- package/cmd/ttsc-cache/stock_go_test.go +2 -2
- package/cmd/ttsc-cache/store.go +5 -0
- package/cmd/ttsc-cache/tuple.go +6 -2
- package/cmd/ttsc-cache/tuple_test.go +1 -1
- package/cmd/ttscgraph/main.go +6 -1
- package/cmd/ttscgraph/run_help_version_and_bad_flags_exit_codes_test.go +6 -1
- package/cmd/ttscgraph/serve.go +22 -20
- package/cmd/ttscgraph/serve_alternative_members_and_reads_refresh_test.go +95 -0
- package/cmd/ttscgraph/serve_shards.go +26 -15
- package/cmd/ttscgraph/serve_shards_abandoned_generation_converges_on_retry_test.go +2 -2
- package/cmd/ttscgraph/serve_shards_delete_removed_source_test.go +3 -3
- package/cmd/ttscgraph/serve_shards_prune_unreferenced_external_endpoints_test.go +1 -1
- package/cmd/ttscgraph/serve_shards_publish_created_source_test.go +3 -3
- package/cmd/ttscgraph/serve_shards_refresh_cross_file_implementation_test.go +2 -2
- package/cmd/ttscgraph/serve_shards_refresh_dependent_diagnostics_test.go +3 -3
- package/cmd/ttscgraph/serve_shards_rename_moves_source_identity_test.go +5 -5
- package/cmd/ttscgraph/serve_shards_reuse_unaffected_sources_test.go +8 -8
- package/cmd/ttscgraph/serve_source_encoding_test.go +2 -2
- package/driver/build_information_uses_selected_output_identity_test.go +5 -4
- package/driver/check_observations.go +1 -1
- package/driver/config_discovery.go +5 -1
- package/driver/declaration_shape.go +15 -21
- package/driver/diagnostics_preamble.go +2 -2
- package/driver/emit_containment.go +11 -14
- package/driver/emit_plugin.go +51 -43
- package/driver/emit_plugin_output.go +6 -5
- package/driver/emit_provenance.go +12 -15
- package/driver/graph.go +8 -8
- package/driver/host.go +15 -5
- package/driver/input_observation.go +22 -21
- package/driver/input_observation_test.go +11 -10
- package/driver/overlay.go +11 -11
- package/driver/program.go +102 -51
- package/driver/resolution_candidates.go +50 -32
- package/driver/resolution_candidates_test.go +18 -5
- package/driver/rewrite.go +11 -13
- package/driver/session.go +13 -7
- package/driver/target_ts70.go +85 -0
- package/driver/target_ts71.go +97 -0
- package/driver/transform_dependencies.go +1 -1
- package/driver/transform_source_map.go +21 -20
- package/go.mod +3 -3
- package/go.sum +4 -4
- package/internal/graph/alternative_member_declarations_resolve_uses_test.go +145 -0
- package/internal/graph/assigned_implementations_of_declaration_file_symbols_leave_no_edge_source_test.go +2 -2
- package/internal/graph/assigned_implementations_of_node_modules_symbols_leave_no_edge_source_test.go +2 -2
- package/internal/graph/build.go +75 -33
- package/internal/graph/build_files_reuses_committed_cross_file_endpoints_test.go +4 -4
- package/internal/graph/build_records_a_node_per_top_level_declaration_test.go +1 -1
- package/internal/graph/declaration_members.go +143 -0
- package/internal/graph/decorators_capture_name_and_literal_arguments_test.go +3 -3
- package/internal/graph/doc_tags.go +2 -2
- package/internal/graph/dump_paths.go +6 -5
- package/internal/graph/duplicate_variable_object_members_keep_first_declaration_test.go +1 -1
- package/internal/graph/edges.go +151 -68
- package/internal/graph/edges_cover_class_level_references_test.go +5 -5
- package/internal/graph/enum_initializer_calls_are_edges_test.go +2 -2
- package/internal/graph/enum_members_carry_their_names_on_the_enum_node_test.go +6 -6
- package/internal/graph/exports.go +6 -6
- package/internal/graph/file_diagnostics_match_tsgo_code_and_location_test.go +2 -2
- package/internal/graph/file_diagnostics_report_code_column_and_message_test.go +1 -1
- package/internal/graph/function_locals_do_not_collide_test.go +3 -3
- package/internal/graph/heritage_edges_cover_implements_and_interface_extends_test.go +5 -5
- package/internal/graph/heritage_edges_keep_extends_and_implements_to_same_base_test.go +2 -2
- package/internal/graph/heritage_edges_record_extends_versus_implements_origin_test.go +3 -3
- package/internal/graph/heritage_edges_traverse_barrels_and_stop_at_external_leaves_test.go +3 -3
- package/internal/graph/literals.go +3 -3
- package/internal/graph/literals_are_absent_when_the_type_admits_more_than_it_can_name_test.go +2 -2
- package/internal/graph/literals_cover_enum_members_the_graph_has_no_nodes_for_test.go +4 -4
- package/internal/graph/literals_do_not_depend_on_declaration_line_wrapping_test.go +2 -2
- package/internal/graph/literals_render_every_value_in_typescript_source_form_test.go +1 -1
- package/internal/graph/literals_resolve_through_alias_indirection_test.go +3 -3
- package/internal/graph/member_relation_edges_follow_checker_validity_test.go +7 -7
- package/internal/graph/member_relation_edges_preserve_checker_boundaries_test.go +19 -19
- package/internal/graph/member_relation_edges_reject_checker_invalid_pairs_test.go +11 -11
- package/internal/graph/namespace_dotted_form_qualifies_deeply_test.go +2 -2
- package/internal/graph/namespace_members_become_qualified_nodes_and_edges_test.go +7 -7
- package/internal/graph/namespace_private_declarations_keep_lexical_identity_test.go +85 -0
- package/internal/graph/nodes_are_marked_exported_through_the_export_table_test.go +2 -2
- package/internal/graph/object_literal_declarations_resolve_calls_test.go +9 -9
- package/internal/graph/object_literal_members_ride_on_the_snapshot_test.go +1 -1
- package/internal/graph/overload_implementation_replaces_signature_test.go +2 -2
- package/internal/graph/property_member_edges_remain_owner_visible_test.go +6 -6
- package/internal/graph/resolve.go +37 -12
- package/internal/graph/resolve_unwraps_barrel_reexport_to_real_declaration_test.go +6 -6
- package/internal/graph/source.go +1 -1
- package/internal/graph/type_ref_edges_cover_typeof_as_satisfies_test.go +7 -7
- package/internal/graph/type_ref_edges_resolve_named_types_across_files_test.go +2 -2
- package/internal/graph/value_access_edges_cover_properties_test.go +5 -5
- package/internal/graph/value_call_edges_attribute_function_assignments_to_members_test.go +3 -3
- package/internal/graph/value_call_edges_cover_jsx_components_test.go +2 -2
- package/internal/graph/value_call_edges_cover_methods_and_constructors_test.go +3 -3
- package/internal/graph/value_call_edges_cover_variable_bound_callables_test.go +2 -2
- package/internal/graph/value_call_edges_do_not_double_record_invoked_member_access_test.go +4 -4
- package/internal/graph/value_call_edges_record_construct_versus_call_origin_test.go +3 -3
- package/internal/graph/value_call_edges_resolve_across_files_and_dedupe_test.go +2 -2
- package/internal/graph/value_call_edges_skip_self_and_unresolved_test.go +4 -4
- package/internal/graph/value_reads_cover_expression_positions_test.go +88 -0
- package/lib/compiler/internal/buildNativeCompiler.d.ts +5 -2
- package/lib/compiler/internal/buildNativeCompiler.js +12 -4
- package/lib/compiler/internal/buildNativeCompiler.js.map +1 -1
- package/lib/flags/COMPILER_ENUM_WHITESPACE.js +1 -1
- package/lib/flags/COMPILER_ENUM_WHITESPACE.js.map +1 -1
- package/lib/flags/COMPILER_OPTIONS.js +1079 -149
- package/lib/flags/COMPILER_OPTIONS.js.map +1 -1
- package/lib/flags/COMPILER_OPTION_ASCII_FOLDS.js +1 -1
- package/lib/flags/COMPILER_OPTION_ASCII_FOLDS.js.map +1 -1
- package/lib/flags/COMPILER_OPTION_KINDS.js +1 -1
- package/lib/flags/COMPILER_OPTION_KINDS.js.map +1 -1
- package/lib/flags/CompilerOptionSpec.d.ts +9 -2
- package/lib/internal/pluginSource.d.ts +1 -0
- package/lib/internal/pluginSource.js +1 -0
- package/lib/internal/pluginSource.js.map +1 -1
- package/lib/launcher/internal/TypeScriptSyncApi.d.ts +140 -0
- package/lib/launcher/internal/TypeScriptSyncApi.js +99 -0
- package/lib/launcher/internal/TypeScriptSyncApi.js.map +1 -0
- package/lib/launcher/internal/buildSingleRootInMemory.d.ts +80 -0
- package/lib/launcher/internal/buildSingleRootInMemory.js +253 -0
- package/lib/launcher/internal/buildSingleRootInMemory.js.map +1 -0
- package/lib/launcher/internal/buildSingleRootProject.d.ts +22 -18
- package/lib/launcher/internal/buildSingleRootProject.js +27 -18
- package/lib/launcher/internal/buildSingleRootProject.js.map +1 -1
- package/lib/launcher/internal/compilerArgsAsConfigOptions.d.ts +39 -0
- package/lib/launcher/internal/compilerArgsAsConfigOptions.js +115 -0
- package/lib/launcher/internal/compilerArgsAsConfigOptions.js.map +1 -0
- package/lib/plugin/CapabilityPluginResolver.js +3 -0
- package/lib/plugin/CapabilityPluginResolver.js.map +1 -1
- package/lib/plugin/internal/load/loadProjectPlugins.js +6 -2
- package/lib/plugin/internal/load/loadProjectPlugins.js.map +1 -1
- package/lib/plugin/internal/source/CompilerTarget.d.ts +127 -0
- package/lib/plugin/internal/source/CompilerTarget.js +231 -0
- package/lib/plugin/internal/source/CompilerTarget.js.map +1 -0
- package/lib/plugin/internal/source/NativeSourcePackages.js +6 -5
- package/lib/plugin/internal/source/NativeSourcePackages.js.map +1 -1
- package/lib/plugin/internal/source/SourcePluginAdmission.d.ts +18 -1
- package/lib/plugin/internal/source/SourcePluginAdmission.js +24 -2
- package/lib/plugin/internal/source/SourcePluginAdmission.js.map +1 -1
- package/lib/plugin/internal/source/SourcePluginWorkspace.d.ts +6 -3
- package/lib/plugin/internal/source/SourcePluginWorkspace.js +31 -13
- package/lib/plugin/internal/source/SourcePluginWorkspace.js.map +1 -1
- package/lib/plugin/internal/source/buildSourcePlugin.js +3 -1
- package/lib/plugin/internal/source/buildSourcePlugin.js.map +1 -1
- package/lib/plugin/internal/source/hashPluginBuildEnvironment.d.ts +1 -1
- package/lib/plugin/internal/source/hashPluginBuildEnvironment.js +9 -1
- package/lib/plugin/internal/source/hashPluginBuildEnvironment.js.map +1 -1
- package/package.json +14 -9
- package/shim/ast/enums_gen.go +1 -0
- package/shim/ast/go.mod +2 -2
- package/shim/ast/go.sum +4 -4
- package/shim/ast/neutral.go +141 -0
- package/shim/astnav/go.mod +2 -2
- package/shim/astnav/go.sum +4 -4
- package/shim/bundled/go.mod +2 -2
- package/shim/bundled/go.sum +4 -4
- package/shim/checker/go.mod +2 -2
- package/shim/checker/go.sum +4 -4
- package/shim/compiler/go.mod +2 -2
- package/shim/compiler/go.sum +4 -4
- package/shim/compiler/neutral.go +213 -0
- package/shim/core/go.mod +2 -2
- package/shim/core/go.sum +4 -4
- package/shim/diagnosticwriter/go.mod +2 -2
- package/shim/diagnosticwriter/go.sum +4 -4
- package/shim/lsp/go.mod +2 -2
- package/shim/lsp/go.sum +4 -4
- package/shim/parser/go.mod +2 -2
- package/shim/parser/go.sum +4 -4
- package/shim/printer/go.mod +2 -2
- package/shim/printer/go.sum +4 -4
- package/shim/scanner/go.mod +2 -2
- package/shim/scanner/go.sum +4 -4
- package/shim/stringutil/go.mod +1 -1
- package/shim/stringutil/go.sum +2 -2
- package/shim/stringutil/shim.go +15 -0
- package/shim/transformers/go.mod +2 -2
- package/shim/transformers/go.sum +4 -4
- package/shim/tsoptions/go.mod +2 -2
- package/shim/tsoptions/go.sum +4 -4
- package/shim/tsoptions/neutral.go +56 -0
- package/shim/tspath/go.mod +1 -1
- package/shim/tspath/go.sum +2 -2
- package/shim/tspath/neutral.go +150 -0
- package/shim/tspath/typed_paths.go +266 -0
- package/shim/vfs/cachedvfs/go.mod +2 -2
- package/shim/vfs/cachedvfs/go.sum +4 -4
- package/shim/vfs/go.mod +2 -2
- package/shim/vfs/go.sum +4 -4
- package/shim/vfs/neutral.go +20 -0
- package/shim/vfs/osvfs/go.mod +2 -2
- package/shim/vfs/osvfs/go.sum +4 -4
- package/src/compiler/internal/buildNativeCompiler.ts +13 -4
- package/src/flags/COMPILER_ENUM_WHITESPACE.ts +1 -1
- package/src/flags/COMPILER_OPTIONS.ts +1080 -150
- package/src/flags/COMPILER_OPTION_ASCII_FOLDS.ts +1 -1
- package/src/flags/COMPILER_OPTION_KINDS.ts +1 -1
- package/src/flags/CompilerOptionSpec.ts +11 -2
- package/src/internal/pluginSource.ts +1 -0
- package/src/launcher/internal/TypeScriptSyncApi.ts +186 -0
- package/src/launcher/internal/buildSingleRootInMemory.ts +319 -0
- package/src/launcher/internal/buildSingleRootProject.ts +26 -18
- package/src/launcher/internal/compilerArgsAsConfigOptions.ts +112 -0
- package/src/plugin/CapabilityPluginResolver.ts +4 -1
- package/src/plugin/internal/load/loadProjectPlugins.ts +12 -2
- package/src/plugin/internal/source/CompilerTarget.ts +249 -0
- package/src/plugin/internal/source/NativeSourcePackages.ts +10 -4
- package/src/plugin/internal/source/SourcePluginAdmission.ts +28 -2
- package/src/plugin/internal/source/SourcePluginWorkspace.ts +45 -19
- package/src/plugin/internal/source/buildSourcePlugin.ts +3 -1
- package/src/plugin/internal/source/hashPluginBuildEnvironment.ts +9 -1
- package/targets/7.1/bridge/ast/enums_gen.go +174 -0
- package/targets/7.1/bridge/ast/extra-shim.json +4 -0
- package/targets/7.1/bridge/ast/go.mod +14 -0
- package/targets/7.1/bridge/ast/go.sum +20 -0
- package/targets/7.1/bridge/ast/lint.go +1412 -0
- package/targets/7.1/bridge/ast/neutral.go +141 -0
- package/targets/7.1/bridge/ast/parent.go +60 -0
- package/targets/7.1/bridge/ast/safe_text.go +108 -0
- package/targets/7.1/bridge/ast/shim.go +1656 -0
- package/targets/7.1/bridge/ast/surface.go +686 -0
- package/targets/7.1/bridge/ast/test/next_jsdoc_comment_location_reaches_variable_statement_test.go +51 -0
- package/targets/7.1/bridge/ast/test/node_text_joins_multi_hop_qualified_name_test.go +47 -0
- package/targets/7.1/bridge/ast/test/node_text_joins_one_hop_qualified_name_test.go +35 -0
- package/targets/7.1/bridge/ast/test/node_text_returns_empty_for_nil_test.go +31 -0
- package/targets/7.1/bridge/ast/test/node_text_returns_identifier_text_test.go +34 -0
- package/targets/7.1/bridge/ast/test/node_text_skips_empty_qualified_left_test.go +60 -0
- package/targets/7.1/bridge/astnav/go.mod +14 -0
- package/targets/7.1/bridge/astnav/go.sum +22 -0
- package/targets/7.1/bridge/astnav/shim.go +24 -0
- package/targets/7.1/bridge/bundled/extra-shim.json +1 -0
- package/targets/7.1/bridge/bundled/go.mod +10 -0
- package/targets/7.1/bridge/bundled/go.sum +10 -0
- package/targets/7.1/bridge/bundled/shim.go +24 -0
- package/targets/7.1/bridge/checker/enums_gen.go +150 -0
- package/targets/7.1/bridge/checker/extra-shim.json +37 -0
- package/targets/7.1/bridge/checker/go.mod +15 -0
- package/targets/7.1/bridge/checker/go.sum +24 -0
- package/targets/7.1/bridge/checker/node_builder_fields_gen.go +19 -0
- package/targets/7.1/bridge/checker/shim.go +1390 -0
- package/targets/7.1/bridge/compiler/contentmapper_process.go +70 -0
- package/targets/7.1/bridge/compiler/emit_sourcemap.go +296 -0
- package/targets/7.1/bridge/compiler/emitassemble.go +81 -0
- package/targets/7.1/bridge/compiler/emithook.go +44 -0
- package/targets/7.1/bridge/compiler/extra-shim.json +4 -0
- package/targets/7.1/bridge/compiler/go.mod +15 -0
- package/targets/7.1/bridge/compiler/go.sum +24 -0
- package/targets/7.1/bridge/compiler/incremental.go +185 -0
- package/targets/7.1/bridge/compiler/neutral.go +256 -0
- package/targets/7.1/bridge/compiler/resolution.go +571 -0
- package/targets/7.1/bridge/compiler/shim.go +70 -0
- package/targets/7.1/bridge/core/enums_gen.go +15 -0
- package/targets/7.1/bridge/core/extra-shim.json +4 -0
- package/targets/7.1/bridge/core/go.mod +7 -0
- package/targets/7.1/bridge/core/go.sum +8 -0
- package/targets/7.1/bridge/core/modulekind.go +19 -0
- package/targets/7.1/bridge/core/shim.go +272 -0
- package/targets/7.1/bridge/diagnosticwriter/go.mod +14 -0
- package/targets/7.1/bridge/diagnosticwriter/go.sum +20 -0
- package/targets/7.1/bridge/diagnosticwriter/lint.go +411 -0
- package/targets/7.1/bridge/diagnosticwriter/shim.go +56 -0
- package/targets/7.1/bridge/lsp/extra-shim.json +4 -0
- package/targets/7.1/bridge/lsp/go.mod +16 -0
- package/targets/7.1/bridge/lsp/go.sum +26 -0
- package/targets/7.1/bridge/lsp/shim.go +112 -0
- package/targets/7.1/bridge/parser/extra-shim.json +4 -0
- package/targets/7.1/bridge/parser/go.mod +14 -0
- package/targets/7.1/bridge/parser/go.sum +24 -0
- package/targets/7.1/bridge/parser/shim.go +61 -0
- package/targets/7.1/bridge/printer/emithost.go +69 -0
- package/targets/7.1/bridge/printer/go.mod +15 -0
- package/targets/7.1/bridge/printer/go.sum +24 -0
- package/targets/7.1/bridge/printer/shim.go +168 -0
- package/targets/7.1/bridge/printer/sourcemap.go +49 -0
- package/targets/7.1/bridge/scanner/extra-shim.json +4 -0
- package/targets/7.1/bridge/scanner/go.mod +14 -0
- package/targets/7.1/bridge/scanner/go.sum +20 -0
- package/targets/7.1/bridge/scanner/regexp.go +42 -0
- package/targets/7.1/bridge/scanner/shim.go +137 -0
- package/targets/7.1/bridge/stringutil/extra-shim.json +1 -0
- package/targets/7.1/bridge/stringutil/go.mod +5 -0
- package/targets/7.1/bridge/stringutil/go.sum +2 -0
- package/targets/7.1/bridge/stringutil/shim.go +131 -0
- package/targets/7.1/bridge/transformers/go.mod +15 -0
- package/targets/7.1/bridge/transformers/go.sum +24 -0
- package/targets/7.1/bridge/transformers/shim.go +24 -0
- package/targets/7.1/bridge/tsoptions/command_line_raw.go +44 -0
- package/targets/7.1/bridge/tsoptions/extra-shim.json +4 -0
- package/targets/7.1/bridge/tsoptions/go.mod +15 -0
- package/targets/7.1/bridge/tsoptions/go.sum +24 -0
- package/targets/7.1/bridge/tsoptions/neutral.go +47 -0
- package/targets/7.1/bridge/tsoptions/shim.go +193 -0
- package/targets/7.1/bridge/tspath/extra-shim.json +4 -0
- package/targets/7.1/bridge/tspath/go.mod +5 -0
- package/targets/7.1/bridge/tspath/go.sum +6 -0
- package/targets/7.1/bridge/tspath/neutral.go +142 -0
- package/targets/7.1/bridge/tspath/shim.go +382 -0
- package/targets/7.1/bridge/vfs/cachedvfs/extra-shim.json +4 -0
- package/targets/7.1/bridge/vfs/cachedvfs/go.mod +5 -0
- package/targets/7.1/bridge/vfs/cachedvfs/go.sum +10 -0
- package/targets/7.1/bridge/vfs/cachedvfs/shim.go +12 -0
- package/targets/7.1/bridge/vfs/decode.go +26 -0
- package/targets/7.1/bridge/vfs/decode_test.go +42 -0
- package/targets/7.1/bridge/vfs/extra-shim.json +4 -0
- package/targets/7.1/bridge/vfs/go.mod +10 -0
- package/targets/7.1/bridge/vfs/go.sum +10 -0
- package/targets/7.1/bridge/vfs/neutral.go +23 -0
- package/targets/7.1/bridge/vfs/osvfs/extra-shim.json +4 -0
- package/targets/7.1/bridge/vfs/osvfs/go.mod +10 -0
- package/targets/7.1/bridge/vfs/osvfs/go.sum +10 -0
- package/targets/7.1/bridge/vfs/osvfs/shim.go +14 -0
- package/targets/7.1/bridge/vfs/shim.go +27 -0
- package/targets/7.1/facade/ast/facade_gen.go +2691 -0
- package/targets/7.1/facade/ast/go.mod +20 -0
- package/targets/7.1/facade/ast/go.sum +20 -0
- package/targets/7.1/facade/astnav/facade_gen.go +15 -0
- package/targets/7.1/facade/astnav/go.mod +22 -0
- package/targets/7.1/facade/astnav/go.sum +22 -0
- package/targets/7.1/facade/bundled/facade_gen.go +32 -0
- package/targets/7.1/facade/bundled/go.mod +21 -0
- package/targets/7.1/facade/bundled/go.sum +10 -0
- package/targets/7.1/facade/checker/facade_gen.go +563 -0
- package/targets/7.1/facade/checker/go.mod +26 -0
- package/targets/7.1/facade/checker/go.sum +24 -0
- package/targets/7.1/facade/compiler/facade_gen.go +198 -0
- package/targets/7.1/facade/compiler/go.mod +41 -0
- package/targets/7.1/facade/compiler/go.sum +24 -0
- package/targets/7.1/facade/core/facade_gen.go +130 -0
- package/targets/7.1/facade/core/go.mod +12 -0
- package/targets/7.1/facade/core/go.sum +8 -0
- package/targets/7.1/facade/diagnosticwriter/facade_gen.go +36 -0
- package/targets/7.1/facade/diagnosticwriter/go.mod +22 -0
- package/targets/7.1/facade/diagnosticwriter/go.sum +20 -0
- package/targets/7.1/facade/lsp/facade_gen.go +31 -0
- package/targets/7.1/facade/lsp/go.mod +19 -0
- package/targets/7.1/facade/lsp/go.sum +26 -0
- package/targets/7.1/facade/parser/facade_gen.go +102 -0
- package/targets/7.1/facade/parser/go.mod +25 -0
- package/targets/7.1/facade/parser/go.sum +24 -0
- package/targets/7.1/facade/printer/facade_gen.go +74 -0
- package/targets/7.1/facade/printer/go.mod +26 -0
- package/targets/7.1/facade/printer/go.sum +24 -0
- package/targets/7.1/facade/scanner/facade_gen.go +191 -0
- package/targets/7.1/facade/scanner/go.mod +25 -0
- package/targets/7.1/facade/scanner/go.sum +20 -0
- package/targets/7.1/facade/stringutil/facade_gen.go +176 -0
- package/targets/7.1/facade/stringutil/go.mod +9 -0
- package/targets/7.1/facade/stringutil/go.sum +2 -0
- package/targets/7.1/facade/transformers/facade_gen.go +12 -0
- package/targets/7.1/facade/transformers/go.mod +18 -0
- package/targets/7.1/facade/transformers/go.sum +24 -0
- package/targets/7.1/facade/tsoptions/facade_gen.go +274 -0
- package/targets/7.1/facade/tsoptions/go.mod +32 -0
- package/targets/7.1/facade/tsoptions/go.sum +24 -0
- package/targets/7.1/facade/tspath/facade_gen.go +550 -0
- package/targets/7.1/facade/tspath/go.mod +9 -0
- package/targets/7.1/facade/tspath/go.sum +6 -0
- package/targets/7.1/facade/vfs/cachedvfs/facade_gen.go +17 -0
- package/targets/7.1/facade/vfs/cachedvfs/go.mod +18 -0
- package/targets/7.1/facade/vfs/cachedvfs/go.sum +10 -0
- package/targets/7.1/facade/vfs/facade_gen.go +47 -0
- package/targets/7.1/facade/vfs/go.mod +18 -0
- package/targets/7.1/facade/vfs/go.sum +10 -0
- package/targets/7.1/facade/vfs/osvfs/facade_gen.go +20 -0
- package/targets/7.1/facade/vfs/osvfs/go.mod +21 -0
- package/targets/7.1/facade/vfs/osvfs/go.sum +10 -0
- package/tools/gen_facade/committed_facades_match_their_bridges_test.go +57 -0
- package/tools/gen_facade/facade_manifest_points_into_the_bridge_root_test.go +75 -0
- package/tools/gen_facade/facade_spells_internal_types_through_bridge_aliases_test.go +75 -0
- package/tools/gen_facade/facade_types_are_their_bridge_types_test.go +99 -0
- package/tools/gen_facade/go.mod +10 -0
- package/tools/gen_facade/go.sum +8 -0
- package/tools/gen_facade/main.go +734 -0
- package/tools/gen_shims/go.mod +4 -4
- package/tools/gen_shims/go.sum +6 -6
- package/tools/gen_shims/main.go +124 -66
- package/tools/gen_shims/mirror_structs_terminate_on_unexported_cycles_test.go +101 -0
- package/tools/shim_audit/baseline-7.1.json +720 -0
- package/tools/shim_audit/baseline.json +5 -4
- package/tools/shim_audit/go.mod +4 -4
- package/tools/shim_audit/go.sum +6 -6
- package/tools/shim_audit/linkname_signatures.go +178 -0
- package/tools/shim_audit/linkname_signatures_match_their_targets_test.go +64 -0
- package/tools/shim_audit/linkname_targets_follow_the_audited_compiler_test.go +38 -0
- package/tools/shim_audit/main.go +29 -4
- package/tools/shim_audit/neutral_api.go +160 -0
- package/tools/shim_audit/neutral_api_must_match_across_targets_test.go +74 -0
- package/utility/host.go +5 -4
- package/utility/preamble_output.go +15 -15
- package/utility/serve.go +1 -1
|
@@ -0,0 +1,550 @@
|
|
|
1
|
+
// Code generated by packages/ttsc/tools/gen_facade. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
// Package tspath is the documented github.com/microsoft/typescript-go/shim/tspath plugin import path.
|
|
4
|
+
// It aliases every exported identity of github.com/microsoft/TypeScript/tsc/shim/tspath, the
|
|
5
|
+
// bridge that reaches the compiler's internal packages.
|
|
6
|
+
package tspath
|
|
7
|
+
|
|
8
|
+
import (
|
|
9
|
+
tsctspath "github.com/microsoft/TypeScript/tsc/shim/tspath"
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
var AllSupportedExtensions = tsctspath.AllSupportedExtensions
|
|
13
|
+
|
|
14
|
+
var AllSupportedExtensionsWithJson = tsctspath.AllSupportedExtensionsWithJson
|
|
15
|
+
|
|
16
|
+
func Canonicalize(p0 tsctspath.CaseSensitivity, p1 string) string {
|
|
17
|
+
return tsctspath.Canonicalize(p0, p1)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const CaseInsensitive = tsctspath.CaseInsensitive
|
|
21
|
+
|
|
22
|
+
const CaseSensitive = tsctspath.CaseSensitive
|
|
23
|
+
|
|
24
|
+
type CaseSensitivity = tsctspath.CaseSensitivity
|
|
25
|
+
|
|
26
|
+
func ChangeAnyExtension(p0 string, p1 string, p2 []string, p3 tsctspath.CaseSensitivity) string {
|
|
27
|
+
return tsctspath.ChangeAnyExtension(p0, p1, p2, p3)
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
func ChangeExtension(p0 string, p1 string) string {
|
|
31
|
+
return tsctspath.ChangeExtension(p0, p1)
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
func ChangeFullExtension(p0 string, p1 string) string {
|
|
35
|
+
return tsctspath.ChangeFullExtension(p0, p1)
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
func CombinePaths(p0 string, p1 ...string) string {
|
|
39
|
+
return tsctspath.CombinePaths(p0, p1...)
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
func CompareFilePaths(p0 tsctspath.CaseSensitivity, p1 tsctspath.RootedFilePath, p2 tsctspath.RootedFilePath) int {
|
|
43
|
+
return tsctspath.CompareFilePaths(p0, p1, p2)
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
func CompareNumberOfDirectorySeparators(p0 string, p1 string) int {
|
|
47
|
+
return tsctspath.CompareNumberOfDirectorySeparators(p0, p1)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
func ComparePaths(p0 string, p1 string, p2 tsctspath.CaseSensitivity) int {
|
|
51
|
+
return tsctspath.ComparePaths(p0, p1, p2)
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
func ComparePathsRelativeTo(p0 string, p1 string, p2 tsctspath.RootedDirectoryPath, p3 tsctspath.CaseSensitivity) int {
|
|
55
|
+
return tsctspath.ComparePathsRelativeTo(p0, p1, p2, p3)
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
func ContainsIgnoredDirectory(p0 tsctspath.RootedDirectoryPath) bool {
|
|
59
|
+
return tsctspath.ContainsIgnoredDirectory(p0)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
func ContainsIgnoredPath(p0 tsctspath.RootedPath) bool {
|
|
63
|
+
return tsctspath.ContainsIgnoredPath(p0)
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
func ContainsIgnoredPathKey(p0 tsctspath.PathKey) bool {
|
|
67
|
+
return tsctspath.ContainsIgnoredPathKey(p0)
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
func ContainsPath(p0 string, p1 string, p2 tsctspath.CaseSensitivity) bool {
|
|
71
|
+
return tsctspath.ContainsPath(p0, p1, p2)
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
func ContainsPathWith(p0 tsctspath.CaseSensitivity, p1 tsctspath.RootedDirectoryPath, p2 tsctspath.RootedPath) bool {
|
|
75
|
+
return tsctspath.ContainsPathWith(p0, p1, p2)
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
func ConvertToRelativePath(p0 string, p1 tsctspath.RootedDirectoryPath, p2 tsctspath.CaseSensitivity) string {
|
|
79
|
+
return tsctspath.ConvertToRelativePath(p0, p1, p2)
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
func DecodeDynamicURINoPath(p0 string) (string, bool) {
|
|
83
|
+
return tsctspath.DecodeDynamicURINoPath(p0)
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
func DecodeDynamicURIPath(p0 string) string {
|
|
87
|
+
return tsctspath.DecodeDynamicURIPath(p0)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
func DecodeDynamicURIPathForDisk(p0 string) (string, bool) {
|
|
91
|
+
return tsctspath.DecodeDynamicURIPathForDisk(p0)
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
func DecodeDynamicURIPathSegment(p0 string) string {
|
|
95
|
+
return tsctspath.DecodeDynamicURIPathSegment(p0)
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const DirectorySeparator = tsctspath.DirectorySeparator
|
|
99
|
+
|
|
100
|
+
const DynamicURIFileNamePrefix = tsctspath.DynamicURIFileNamePrefix
|
|
101
|
+
|
|
102
|
+
func DynamicURIPathToModuleSpecifier(p0 string) string {
|
|
103
|
+
return tsctspath.DynamicURIPathToModuleSpecifier(p0)
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
func EncodeDynamicDirectorySpecifier(p0 string) string {
|
|
107
|
+
return tsctspath.EncodeDynamicDirectorySpecifier(p0)
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
func EncodeDynamicLogicalModuleSpecifier(p0 string) string {
|
|
111
|
+
return tsctspath.EncodeDynamicLogicalModuleSpecifier(p0)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
func EncodeDynamicModuleSpecifier(p0 string) string {
|
|
115
|
+
return tsctspath.EncodeDynamicModuleSpecifier(p0)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
func EncodeDynamicRelativeURIDirectoryPath(p0 string) string {
|
|
119
|
+
return tsctspath.EncodeDynamicRelativeURIDirectoryPath(p0)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
func EncodeDynamicRelativeURIPath(p0 string) string {
|
|
123
|
+
return tsctspath.EncodeDynamicRelativeURIPath(p0)
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
func EncodeDynamicURIDirectoryPath(p0 string) string {
|
|
127
|
+
return tsctspath.EncodeDynamicURIDirectoryPath(p0)
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
func EncodeDynamicURINoPath(p0 string) string {
|
|
131
|
+
return tsctspath.EncodeDynamicURINoPath(p0)
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
func EncodeDynamicURIPath(p0 string) string {
|
|
135
|
+
return tsctspath.EncodeDynamicURIPath(p0)
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
func EncodeDynamicURIPathWithSuffix(p0 string, p1 string) string {
|
|
139
|
+
return tsctspath.EncodeDynamicURIPathWithSuffix(p0, p1)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
func EnsurePathIsNonModuleName(p0 string) string {
|
|
143
|
+
return tsctspath.EnsurePathIsNonModuleName(p0)
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
func EnsureTrailingDirectorySeparator(p0 string) string {
|
|
147
|
+
return tsctspath.EnsureTrailingDirectorySeparator(p0)
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const ExtensionCjs = tsctspath.ExtensionCjs
|
|
151
|
+
|
|
152
|
+
const ExtensionCts = tsctspath.ExtensionCts
|
|
153
|
+
|
|
154
|
+
const ExtensionDcts = tsctspath.ExtensionDcts
|
|
155
|
+
|
|
156
|
+
const ExtensionDmts = tsctspath.ExtensionDmts
|
|
157
|
+
|
|
158
|
+
const ExtensionDts = tsctspath.ExtensionDts
|
|
159
|
+
|
|
160
|
+
func ExtensionIsOneOf(p0 string, p1 []string) bool {
|
|
161
|
+
return tsctspath.ExtensionIsOneOf(p0, p1)
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
func ExtensionIsTs(p0 string) bool {
|
|
165
|
+
return tsctspath.ExtensionIsTs(p0)
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
const ExtensionJs = tsctspath.ExtensionJs
|
|
169
|
+
|
|
170
|
+
const ExtensionJson = tsctspath.ExtensionJson
|
|
171
|
+
|
|
172
|
+
const ExtensionJsx = tsctspath.ExtensionJsx
|
|
173
|
+
|
|
174
|
+
const ExtensionMjs = tsctspath.ExtensionMjs
|
|
175
|
+
|
|
176
|
+
const ExtensionMts = tsctspath.ExtensionMts
|
|
177
|
+
|
|
178
|
+
type ExtensionRewrite = tsctspath.ExtensionRewrite
|
|
179
|
+
|
|
180
|
+
const ExtensionTs = tsctspath.ExtensionTs
|
|
181
|
+
|
|
182
|
+
const ExtensionTsBuildInfo = tsctspath.ExtensionTsBuildInfo
|
|
183
|
+
|
|
184
|
+
const ExtensionTsx = tsctspath.ExtensionTsx
|
|
185
|
+
|
|
186
|
+
var ExtensionsNotSupportingExtensionlessResolution = tsctspath.ExtensionsNotSupportingExtensionlessResolution
|
|
187
|
+
|
|
188
|
+
func FileBaseName(p0 tsctspath.RootedFilePath) string {
|
|
189
|
+
return tsctspath.FileBaseName(p0)
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
func FileDirectory(p0 tsctspath.RootedFilePath) tsctspath.RootedDirectoryPath {
|
|
193
|
+
return tsctspath.FileDirectory(p0)
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
func FileExtensionIs(p0 string, p1 string) bool {
|
|
197
|
+
return tsctspath.FileExtensionIs(p0, p1)
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
func FileExtensionIsOneOf(p0 string, p1 []string) bool {
|
|
201
|
+
return tsctspath.FileExtensionIsOneOf(p0, p1)
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
type FileNameStem = tsctspath.FileNameStem
|
|
205
|
+
|
|
206
|
+
type FileSpec = tsctspath.FileSpec
|
|
207
|
+
|
|
208
|
+
func ForceEncodeDynamicURIPathSegment(p0 string, p1 bool) string {
|
|
209
|
+
return tsctspath.ForceEncodeDynamicURIPathSegment(p0, p1)
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
func GetAnyExtensionFromPath(p0 string, p1 []string, p2 tsctspath.CaseSensitivity) string {
|
|
213
|
+
return tsctspath.GetAnyExtensionFromPath(p0, p1, p2)
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
func GetBaseFileName(p0 string) string {
|
|
217
|
+
return tsctspath.GetBaseFileName(p0)
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
func GetCommonParentDirectories(p0 []tsctspath.RootedDirectoryPath, p1 int, p2 func(tsctspath.RootedDirectoryPath) []string, p3 tsctspath.CaseSensitivity) ([]tsctspath.RootedDirectoryPath, map[tsctspath.RootedDirectoryPath]struct{}) {
|
|
221
|
+
return tsctspath.GetCommonParentDirectories(p0, p1, p2, p3)
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
func GetDeclarationEmitExtensionForPath(p0 string) string {
|
|
225
|
+
return tsctspath.GetDeclarationEmitExtensionForPath(p0)
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
func GetDeclarationFileExtension(p0 string) string {
|
|
229
|
+
return tsctspath.GetDeclarationFileExtension(p0)
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
func GetDirectoryPath(p0 string) string {
|
|
233
|
+
return tsctspath.GetDirectoryPath(p0)
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
func GetEncodedRootLength(p0 string) int {
|
|
237
|
+
return tsctspath.GetEncodedRootLength(p0)
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
func GetLongestExtensionFromPath(p0 string, p1 []string, p2 tsctspath.CaseSensitivity) string {
|
|
241
|
+
return tsctspath.GetLongestExtensionFromPath(p0, p1, p2)
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
func GetNormalizedAbsolutePath(p0 string, p1 tsctspath.RootedDirectoryPath) string {
|
|
245
|
+
return tsctspath.GetNormalizedAbsolutePath(p0, p1)
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
func GetNormalizedPathComponents(p0 string, p1 string) []string {
|
|
249
|
+
return tsctspath.GetNormalizedPathComponents(p0, p1)
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
func GetPathComponents(p0 string) []string {
|
|
253
|
+
return tsctspath.GetPathComponents(p0)
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
func GetPathComponentsRelativeTo(p0 string, p1 string, p2 tsctspath.CaseSensitivity) []string {
|
|
257
|
+
return tsctspath.GetPathComponentsRelativeTo(p0, p1, p2)
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
func GetPathFromPathComponents(p0 []string) string {
|
|
261
|
+
return tsctspath.GetPathFromPathComponents(p0)
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
func GetPossibleOriginalInputExtensionForExtension(p0 string) []string {
|
|
265
|
+
return tsctspath.GetPossibleOriginalInputExtensionForExtension(p0)
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
func GetRelativePathFromDirectory(p0 string, p1 string, p2 tsctspath.CaseSensitivity) string {
|
|
269
|
+
return tsctspath.GetRelativePathFromDirectory(p0, p1, p2)
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
func GetRelativePathFromFile(p0 string, p1 string, p2 tsctspath.CaseSensitivity) string {
|
|
273
|
+
return tsctspath.GetRelativePathFromFile(p0, p1, p2)
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
func GetRelativePathToDirectoryOrUrl(p0 string, p1 string, p2 bool, p3 tsctspath.CaseSensitivity) string {
|
|
277
|
+
return tsctspath.GetRelativePathToDirectoryOrUrl(p0, p1, p2, p3)
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
func GetRootLength(p0 string) int {
|
|
281
|
+
return tsctspath.GetRootLength(p0)
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
func HasExtension(p0 string) bool {
|
|
285
|
+
return tsctspath.HasExtension(p0)
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
func HasImplementationTSFileExtension(p0 string) bool {
|
|
289
|
+
return tsctspath.HasImplementationTSFileExtension(p0)
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
func HasJSFileExtension(p0 string) bool {
|
|
293
|
+
return tsctspath.HasJSFileExtension(p0)
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
func HasJSONFileExtension(p0 string) bool {
|
|
297
|
+
return tsctspath.HasJSONFileExtension(p0)
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
func HasTSFileExtension(p0 string) bool {
|
|
301
|
+
return tsctspath.HasTSFileExtension(p0)
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
func HasTrailingDirectorySeparator(p0 string) bool {
|
|
305
|
+
return tsctspath.HasTrailingDirectorySeparator(p0)
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
func IsDeclarationFileName(p0 string) bool {
|
|
309
|
+
return tsctspath.IsDeclarationFileName(p0)
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
func IsDynamicFileName(p0 string) bool {
|
|
313
|
+
return tsctspath.IsDynamicFileName(p0)
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
func IsEncodedDynamicFileName(p0 string) bool {
|
|
317
|
+
return tsctspath.IsEncodedDynamicFileName(p0)
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
func IsExternalModuleNameRelative(p0 string) bool {
|
|
321
|
+
return tsctspath.IsExternalModuleNameRelative(p0)
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
func IsRootedDiskPath(p0 string) bool {
|
|
325
|
+
return tsctspath.IsRootedDiskPath(p0)
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
func IsUrl(p0 string) bool {
|
|
329
|
+
return tsctspath.IsUrl(p0)
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
func IsVolumeCharacter(p0 byte) bool {
|
|
333
|
+
return tsctspath.IsVolumeCharacter(p0)
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
type ModuleSpecifier = tsctspath.ModuleSpecifier
|
|
337
|
+
|
|
338
|
+
func NormalizePath(p0 string) string {
|
|
339
|
+
return tsctspath.NormalizePath(p0)
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
func NormalizeSlashes(p0 string) string {
|
|
343
|
+
return tsctspath.NormalizeSlashes(p0)
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
func PathIsAbsolute(p0 string) bool {
|
|
347
|
+
return tsctspath.PathIsAbsolute(p0)
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
func PathIsRelative(p0 string) bool {
|
|
351
|
+
return tsctspath.PathIsRelative(p0)
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
type PathKey = tsctspath.PathKey
|
|
355
|
+
|
|
356
|
+
func PathKeyFromCanonical(p0 string) tsctspath.PathKey {
|
|
357
|
+
return tsctspath.PathKeyFromCanonical(p0)
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
type PathPattern = tsctspath.PathPattern
|
|
361
|
+
|
|
362
|
+
func RelativeModuleSpecifier(p0 tsctspath.RelativePath) tsctspath.ModuleSpecifier {
|
|
363
|
+
return tsctspath.RelativeModuleSpecifier(p0)
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
type RelativePath = tsctspath.RelativePath
|
|
367
|
+
|
|
368
|
+
func RelativePathFromDirectoryWith(p0 tsctspath.CaseSensitivity, p1 string, p2 string) string {
|
|
369
|
+
return tsctspath.RelativePathFromDirectoryWith(p0, p1, p2)
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
func RelativePathFromFile(p0 tsctspath.CaseSensitivity, p1 tsctspath.RootedFilePath, p2 tsctspath.RootedFilePath) (tsctspath.RelativePath, bool) {
|
|
373
|
+
return tsctspath.RelativePathFromFile(p0, p1, p2)
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
func RelativePathFromNormalized(p0 string) tsctspath.RelativePath {
|
|
377
|
+
return tsctspath.RelativePathFromNormalized(p0)
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
func RemoveAnyFileExtension(p0 string) string {
|
|
381
|
+
return tsctspath.RemoveAnyFileExtension(p0)
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
func RemoveExtension(p0 string, p1 string) string {
|
|
385
|
+
return tsctspath.RemoveExtension(p0, p1)
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
func RemoveFileExtension(p0 string) string {
|
|
389
|
+
return tsctspath.RemoveFileExtension(p0)
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
func RemoveTrailingDirectorySeparator(p0 string) string {
|
|
393
|
+
return tsctspath.RemoveTrailingDirectorySeparator(p0)
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
func ResolveFile(p0 tsctspath.RootedDirectoryPath, p1 string) tsctspath.RootedFilePath {
|
|
397
|
+
return tsctspath.ResolveFile(p0, p1)
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
func ResolvePath(p0 string, p1 ...string) string {
|
|
401
|
+
return tsctspath.ResolvePath(p0, p1...)
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
func ResolvePathWithoutTrailingDirectorySeparator(p0 string, p1 ...string) string {
|
|
405
|
+
return tsctspath.ResolvePathWithoutTrailingDirectorySeparator(p0, p1...)
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
func ResolveRelativePathFromDirectory(p0 string, p1 string, p2 tsctspath.RootedDirectoryPath, p3 tsctspath.CaseSensitivity) string {
|
|
409
|
+
return tsctspath.ResolveRelativePathFromDirectory(p0, p1, p2, p3)
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
func ResolveRelativePathToDirectoryOrUrl(p0 string, p1 string, p2 bool, p3 tsctspath.RootedDirectoryPath, p4 tsctspath.CaseSensitivity) string {
|
|
413
|
+
return tsctspath.ResolveRelativePathToDirectoryOrUrl(p0, p1, p2, p3, p4)
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
type RootedDirectoryPath = tsctspath.RootedDirectoryPath
|
|
417
|
+
|
|
418
|
+
func RootedDirectoryPathFromAbsolute(p0 string) tsctspath.RootedDirectoryPath {
|
|
419
|
+
return tsctspath.RootedDirectoryPathFromAbsolute(p0)
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
func RootedDirectoryPathFromNormalized(p0 string) tsctspath.RootedDirectoryPath {
|
|
423
|
+
return tsctspath.RootedDirectoryPathFromNormalized(p0)
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
func RootedDirectoryPathFromPath(p0 tsctspath.RootedPath) tsctspath.RootedDirectoryPath {
|
|
427
|
+
return tsctspath.RootedDirectoryPathFromPath(p0)
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
type RootedFilePath = tsctspath.RootedFilePath
|
|
431
|
+
|
|
432
|
+
func RootedFilePathFromAbsolute(p0 string) tsctspath.RootedFilePath {
|
|
433
|
+
return tsctspath.RootedFilePathFromAbsolute(p0)
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
func RootedFilePathFromNormalized(p0 string) tsctspath.RootedFilePath {
|
|
437
|
+
return tsctspath.RootedFilePathFromNormalized(p0)
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
func RootedFilePathFromPath(p0 tsctspath.RootedPath) tsctspath.RootedFilePath {
|
|
441
|
+
return tsctspath.RootedFilePathFromPath(p0)
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
type RootedPath = tsctspath.RootedPath
|
|
445
|
+
|
|
446
|
+
func RootedPathFromAbsolute(p0 string) tsctspath.RootedPath {
|
|
447
|
+
return tsctspath.RootedPathFromAbsolute(p0)
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
func RootedPathFromNormalized(p0 string) tsctspath.RootedPath {
|
|
451
|
+
return tsctspath.RootedPathFromNormalized(p0)
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
type SourceMapLocation = tsctspath.SourceMapLocation
|
|
455
|
+
|
|
456
|
+
func SplitVolumePath(p0 string) (string, string, bool) {
|
|
457
|
+
return tsctspath.SplitVolumePath(p0)
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
func StartsWithDirectory(p0 string, p1 string, p2 tsctspath.CaseSensitivity) bool {
|
|
461
|
+
return tsctspath.StartsWithDirectory(p0, p1, p2)
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
var SupportedDeclarationExtensions = tsctspath.SupportedDeclarationExtensions
|
|
465
|
+
|
|
466
|
+
var SupportedJSExtensions = tsctspath.SupportedJSExtensions
|
|
467
|
+
|
|
468
|
+
var SupportedJSExtensionsFlat = tsctspath.SupportedJSExtensionsFlat
|
|
469
|
+
|
|
470
|
+
var SupportedTSExtensions = tsctspath.SupportedTSExtensions
|
|
471
|
+
|
|
472
|
+
var SupportedTSExtensionsFlat = tsctspath.SupportedTSExtensionsFlat
|
|
473
|
+
|
|
474
|
+
var SupportedTSExtensionsWithJson = tsctspath.SupportedTSExtensionsWithJson
|
|
475
|
+
|
|
476
|
+
var SupportedTSExtensionsWithJsonFlat = tsctspath.SupportedTSExtensionsWithJsonFlat
|
|
477
|
+
|
|
478
|
+
var SupportedTSImplementationExtensions = tsctspath.SupportedTSImplementationExtensions
|
|
479
|
+
|
|
480
|
+
func ToFileNameLowerCase(p0 string) string {
|
|
481
|
+
return tsctspath.ToFileNameLowerCase(p0)
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
func ToFileSpec(p0 string) tsctspath.FileSpec {
|
|
485
|
+
return tsctspath.ToFileSpec(p0)
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
func ToModuleSpecifier(p0 string) tsctspath.ModuleSpecifier {
|
|
489
|
+
return tsctspath.ToModuleSpecifier(p0)
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
func ToPathPattern(p0 string) tsctspath.PathPattern {
|
|
493
|
+
return tsctspath.ToPathPattern(p0)
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
func ToRelativePath(p0 string) tsctspath.RelativePath {
|
|
497
|
+
return tsctspath.ToRelativePath(p0)
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
func ToRootedDirectoryPath(p0 string, p1 tsctspath.RootedDirectoryPath) tsctspath.RootedDirectoryPath {
|
|
501
|
+
return tsctspath.ToRootedDirectoryPath(p0, p1)
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
func ToRootedFilePath(p0 string, p1 tsctspath.RootedDirectoryPath) tsctspath.RootedFilePath {
|
|
505
|
+
return tsctspath.ToRootedFilePath(p0, p1)
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
func ToRootedPath(p0 string, p1 tsctspath.RootedDirectoryPath) tsctspath.RootedPath {
|
|
509
|
+
return tsctspath.ToRootedPath(p0, p1)
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
func ToSourceMapLocation(p0 string) tsctspath.SourceMapLocation {
|
|
513
|
+
return tsctspath.ToSourceMapLocation(p0)
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
func TryDecodeDynamicURIPath(p0 string) (string, bool) {
|
|
517
|
+
return tsctspath.TryDecodeDynamicURIPath(p0)
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
func TryDecodeDynamicURIPathSegment(p0 string) (string, bool) {
|
|
521
|
+
return tsctspath.TryDecodeDynamicURIPathSegment(p0)
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
func TryExtractTSExtension(p0 string) string {
|
|
525
|
+
return tsctspath.TryExtractTSExtension(p0)
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
func TryGetExtensionFromPath(p0 string) string {
|
|
529
|
+
return tsctspath.TryGetExtensionFromPath(p0)
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
func TryPathKeyFromCanonical(p0 string) (tsctspath.PathKey, bool) {
|
|
533
|
+
return tsctspath.TryPathKeyFromCanonical(p0)
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
func TryRootedFilePathFromAbsolute(p0 string) (tsctspath.RootedFilePath, bool) {
|
|
537
|
+
return tsctspath.TryRootedFilePathFromAbsolute(p0)
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
func TryRootedFilePathFromNormalized(p0 string) (tsctspath.RootedFilePath, bool) {
|
|
541
|
+
return tsctspath.TryRootedFilePathFromNormalized(p0)
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
func TryRootedPathFromAbsolute(p0 string) (tsctspath.RootedPath, bool) {
|
|
545
|
+
return tsctspath.TryRootedPathFromAbsolute(p0)
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
func TryRootedPathFromNormalized(p0 string) (tsctspath.RootedPath, bool) {
|
|
549
|
+
return tsctspath.TryRootedPathFromNormalized(p0)
|
|
550
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
module github.com/microsoft/typescript-go/shim/tspath
|
|
2
|
+
|
|
3
|
+
go 1.27
|
|
4
|
+
|
|
5
|
+
require github.com/microsoft/TypeScript/tsc/shim/tspath v0.0.0
|
|
6
|
+
|
|
7
|
+
require github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906 // indirect
|
|
8
|
+
|
|
9
|
+
replace github.com/microsoft/TypeScript/tsc/shim/tspath => ../../bridge/tspath
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
|
2
|
+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
|
3
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906 h1:Wn+Kp4ORyay6jJwvOng7G8pTD6HOP+Fwx8si66Wq7Bk=
|
|
4
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906/go.mod h1:28hWKaTYwRARPm0T9Y0XvdvYpU2HtjONzsMqAdYLucY=
|
|
5
|
+
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
|
|
6
|
+
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Code generated by packages/ttsc/tools/gen_facade. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
// Package cachedvfs is the documented github.com/microsoft/typescript-go/shim/vfs/cachedvfs plugin import path.
|
|
4
|
+
// It aliases every exported identity of github.com/microsoft/TypeScript/tsc/shim/vfs/cachedvfs, the
|
|
5
|
+
// bridge that reaches the compiler's internal packages.
|
|
6
|
+
package cachedvfs
|
|
7
|
+
|
|
8
|
+
import (
|
|
9
|
+
tscvfs "github.com/microsoft/TypeScript/tsc/shim/vfs"
|
|
10
|
+
tsccachedvfs "github.com/microsoft/TypeScript/tsc/shim/vfs/cachedvfs"
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
type FS = tsccachedvfs.FS
|
|
14
|
+
|
|
15
|
+
func From(p0 tscvfs.FS) *tsccachedvfs.FS {
|
|
16
|
+
return tsccachedvfs.From(p0)
|
|
17
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module github.com/microsoft/typescript-go/shim/vfs/cachedvfs
|
|
2
|
+
|
|
3
|
+
go 1.27
|
|
4
|
+
|
|
5
|
+
require (
|
|
6
|
+
github.com/microsoft/TypeScript/tsc/shim/vfs v0.0.0
|
|
7
|
+
github.com/microsoft/TypeScript/tsc/shim/vfs/cachedvfs v0.0.0
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
require (
|
|
11
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906 // indirect
|
|
12
|
+
golang.org/x/sync v0.23.0 // indirect
|
|
13
|
+
golang.org/x/sys v0.48.0 // indirect
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
replace github.com/microsoft/TypeScript/tsc/shim/vfs => ../../../bridge/vfs
|
|
17
|
+
|
|
18
|
+
replace github.com/microsoft/TypeScript/tsc/shim/vfs/cachedvfs => ../../../bridge/vfs/cachedvfs
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
|
2
|
+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
|
3
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906 h1:Wn+Kp4ORyay6jJwvOng7G8pTD6HOP+Fwx8si66Wq7Bk=
|
|
4
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906/go.mod h1:28hWKaTYwRARPm0T9Y0XvdvYpU2HtjONzsMqAdYLucY=
|
|
5
|
+
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
|
|
6
|
+
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
|
|
7
|
+
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
|
|
8
|
+
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
|
9
|
+
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
|
|
10
|
+
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// Code generated by packages/ttsc/tools/gen_facade. DO NOT EDIT.
|
|
2
|
+
|
|
3
|
+
// Package vfs is the documented github.com/microsoft/typescript-go/shim/vfs plugin import path.
|
|
4
|
+
// It aliases every exported identity of github.com/microsoft/TypeScript/tsc/shim/vfs, the
|
|
5
|
+
// bridge that reaches the compiler's internal packages.
|
|
6
|
+
package vfs
|
|
7
|
+
|
|
8
|
+
import (
|
|
9
|
+
tsctspath "github.com/microsoft/TypeScript/tsc/shim/tspath"
|
|
10
|
+
tscvfs "github.com/microsoft/TypeScript/tsc/shim/vfs"
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
func CaseSensitivityOf(p0 tscvfs.FS) tsctspath.CaseSensitivity {
|
|
14
|
+
return tscvfs.CaseSensitivityOf(p0)
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
func DecodeBytes(p0 string) (string, bool) {
|
|
18
|
+
return tscvfs.DecodeBytes(p0)
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
type DirEntry = tscvfs.DirEntry
|
|
22
|
+
|
|
23
|
+
type Entries = tscvfs.Entries
|
|
24
|
+
|
|
25
|
+
var ErrClosed = tscvfs.ErrClosed
|
|
26
|
+
|
|
27
|
+
var ErrExist = tscvfs.ErrExist
|
|
28
|
+
|
|
29
|
+
var ErrInvalid = tscvfs.ErrInvalid
|
|
30
|
+
|
|
31
|
+
var ErrNotExist = tscvfs.ErrNotExist
|
|
32
|
+
|
|
33
|
+
var ErrPermission = tscvfs.ErrPermission
|
|
34
|
+
|
|
35
|
+
type FS = tscvfs.FS
|
|
36
|
+
|
|
37
|
+
type FileInfo = tscvfs.FileInfo
|
|
38
|
+
|
|
39
|
+
var SkipAll = tscvfs.SkipAll
|
|
40
|
+
|
|
41
|
+
var SkipDir = tscvfs.SkipDir
|
|
42
|
+
|
|
43
|
+
func WalkDir(p0 tscvfs.FS, p1 tsctspath.RootedPath, p2 tscvfs.WalkDirFunc) error {
|
|
44
|
+
return tscvfs.WalkDir(p0, p1, p2)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
type WalkDirFunc = tscvfs.WalkDirFunc
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
module github.com/microsoft/typescript-go/shim/vfs
|
|
2
|
+
|
|
3
|
+
go 1.27
|
|
4
|
+
|
|
5
|
+
require (
|
|
6
|
+
github.com/microsoft/TypeScript/tsc/shim/tspath v0.0.0
|
|
7
|
+
github.com/microsoft/TypeScript/tsc/shim/vfs v0.0.0
|
|
8
|
+
)
|
|
9
|
+
|
|
10
|
+
require (
|
|
11
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906 // indirect
|
|
12
|
+
golang.org/x/sync v0.23.0 // indirect
|
|
13
|
+
golang.org/x/sys v0.48.0 // indirect
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
replace github.com/microsoft/TypeScript/tsc/shim/tspath => ../../bridge/tspath
|
|
17
|
+
|
|
18
|
+
replace github.com/microsoft/TypeScript/tsc/shim/vfs => ../../bridge/vfs
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
|
|
2
|
+
github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
|
|
3
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906 h1:Wn+Kp4ORyay6jJwvOng7G8pTD6HOP+Fwx8si66Wq7Bk=
|
|
4
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906/go.mod h1:28hWKaTYwRARPm0T9Y0XvdvYpU2HtjONzsMqAdYLucY=
|
|
5
|
+
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
|
|
6
|
+
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
|
|
7
|
+
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
|
|
8
|
+
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
|
9
|
+
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
|
|
10
|
+
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
|