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
|
@@ -2,6 +2,7 @@ import crypto from "node:crypto";
|
|
|
2
2
|
import fs from "node:fs";
|
|
3
3
|
import path from "node:path";
|
|
4
4
|
|
|
5
|
+
import { CompilerTarget } from "./CompilerTarget";
|
|
5
6
|
import { GoEnvironmentReading } from "./GoEnvironmentReading";
|
|
6
7
|
import { GoSourceInputs } from "./GoSourceInputs";
|
|
7
8
|
import { GoToolResolution } from "./GoToolResolution";
|
|
@@ -46,7 +47,7 @@ import { spawnGoTool } from "./spawnGoTool";
|
|
|
46
47
|
* @param identities Record store that lets a new process prove the GOROOT
|
|
47
48
|
* corpus and executable bytes from their metadata (`PluginContentIdentities`,
|
|
48
49
|
* #1722); without it every process reads them.
|
|
49
|
-
* @evidence contracts/common.md#principled-implementation Fixed artifact flags, observed compiler bytes/version, selected reported-or-fallback build values, named command executables and selected SDK files enter the same framed identity used by source-state reporting. Fallback values and metadata-qualified reuse are explicit premises, not complete observation of arbitrary toolchain inputs.
|
|
50
|
+
* @evidence contracts/common.md#principled-implementation Fixed artifact flags, observed compiler bytes/version, selected reported-or-fallback build values, named command executables and selected SDK files enter the same framed identity used by source-state reporting. Fallback values and metadata-qualified reuse are explicit premises, not complete observation of arbitrary toolchain inputs. GOFLAGS enters without ttsc's own compiler-target tag, so the caller's environment reproduces a 7.1 load's digest; targets are separated by their overlay modules in the build key.
|
|
50
51
|
* @evidence contracts/common.md#clear-and-simple-design Private helpers separate compiler identity, Go-reported settings, external variables and SDK content while sharing one hash sink and optional pre-read witness.
|
|
51
52
|
* @evidence contracts/common.md#prohibited-implementation-shortcuts Cache signatures include real identity/change metadata and effective invocation context; failed SDK witnessing refuses reuse rather than accepting a VERSION-only proxy.
|
|
52
53
|
* @evidence contracts/common.md#meaningful-documentation Native documentation names the input classes and witness purpose; private comments explain context-sensitive compiler memoization and SDK exclusions without treating a passing check as proof.
|
|
@@ -495,6 +496,13 @@ function normalizeGoBuildEnvValue(
|
|
|
495
496
|
PluginBuildEnvironmentWitness.add(witness, path.join(value, "VERSION"));
|
|
496
497
|
return resolveGoRootCacheIdentity(value, filesystem, witness, identities);
|
|
497
498
|
}
|
|
499
|
+
if (key === "GOFLAGS") {
|
|
500
|
+
// ttsc's compiler-target tag is not the caller's Go environment. Omitting
|
|
501
|
+
// it lets a reader holding the caller's environment reproduce a source
|
|
502
|
+
// state a 7.1 load reported; the build key separates targets through their
|
|
503
|
+
// overlay modules instead.
|
|
504
|
+
return CompilerTarget.withoutTag(value);
|
|
505
|
+
}
|
|
498
506
|
if (GO_BUILD_COMMAND_ENV_KEYS.has(key)) {
|
|
499
507
|
return `${value}\0${resolveCommandCacheIdentity(
|
|
500
508
|
value,
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// Code generated by packages/ttsc/tools/shim_audit -fix. DO NOT EDIT.
|
|
2
|
+
//
|
|
3
|
+
// Completes every exposed enum family: re-exports each member not already
|
|
4
|
+
// re-exported elsewhere in the shim package, so a plugin that can name the
|
|
5
|
+
// enum type can name all of its values. Prevents a partially re-exported
|
|
6
|
+
// family (a sibling const silently missing). Regenerate after a typescript-go bump with
|
|
7
|
+
// `pnpm --filter ttsc shim:audit -fix`.
|
|
8
|
+
|
|
9
|
+
package ast
|
|
10
|
+
|
|
11
|
+
import innerast "github.com/microsoft/TypeScript/tsc/internal/ast"
|
|
12
|
+
|
|
13
|
+
const (
|
|
14
|
+
CommentDirectiveKindUnknown = innerast.CommentDirectiveKindUnknown
|
|
15
|
+
KindSourceKeyword = innerast.KindSourceKeyword
|
|
16
|
+
ModifierFlagsAbstract = innerast.ModifierFlagsAbstract
|
|
17
|
+
ModifierFlagsAccessibilityModifier = innerast.ModifierFlagsAccessibilityModifier
|
|
18
|
+
ModifierFlagsAccessor = innerast.ModifierFlagsAccessor
|
|
19
|
+
ModifierFlagsAll = innerast.ModifierFlagsAll
|
|
20
|
+
ModifierFlagsAsync = innerast.ModifierFlagsAsync
|
|
21
|
+
ModifierFlagsConst = innerast.ModifierFlagsConst
|
|
22
|
+
ModifierFlagsDecorator = innerast.ModifierFlagsDecorator
|
|
23
|
+
ModifierFlagsDefault = innerast.ModifierFlagsDefault
|
|
24
|
+
ModifierFlagsDeprecated = innerast.ModifierFlagsDeprecated
|
|
25
|
+
ModifierFlagsExport = innerast.ModifierFlagsExport
|
|
26
|
+
ModifierFlagsExportDefault = innerast.ModifierFlagsExportDefault
|
|
27
|
+
ModifierFlagsHasComputedFlags = innerast.ModifierFlagsHasComputedFlags
|
|
28
|
+
ModifierFlagsHasComputedJSDocModifiers = innerast.ModifierFlagsHasComputedJSDocModifiers
|
|
29
|
+
ModifierFlagsIn = innerast.ModifierFlagsIn
|
|
30
|
+
ModifierFlagsJSDocCacheOnlyModifiers = innerast.ModifierFlagsJSDocCacheOnlyModifiers
|
|
31
|
+
ModifierFlagsJSDocOnlyModifiers = innerast.ModifierFlagsJSDocOnlyModifiers
|
|
32
|
+
ModifierFlagsJSDocOverride = innerast.ModifierFlagsJSDocOverride
|
|
33
|
+
ModifierFlagsJSDocPrivate = innerast.ModifierFlagsJSDocPrivate
|
|
34
|
+
ModifierFlagsJSDocProtected = innerast.ModifierFlagsJSDocProtected
|
|
35
|
+
ModifierFlagsJSDocPublic = innerast.ModifierFlagsJSDocPublic
|
|
36
|
+
ModifierFlagsJSDocReadonly = innerast.ModifierFlagsJSDocReadonly
|
|
37
|
+
ModifierFlagsJavaScript = innerast.ModifierFlagsJavaScript
|
|
38
|
+
ModifierFlagsModifier = innerast.ModifierFlagsModifier
|
|
39
|
+
ModifierFlagsNonCacheOnlyModifiers = innerast.ModifierFlagsNonCacheOnlyModifiers
|
|
40
|
+
ModifierFlagsNonPublicAccessibilityModifier = innerast.ModifierFlagsNonPublicAccessibilityModifier
|
|
41
|
+
ModifierFlagsNone = innerast.ModifierFlagsNone
|
|
42
|
+
ModifierFlagsOut = innerast.ModifierFlagsOut
|
|
43
|
+
ModifierFlagsOverride = innerast.ModifierFlagsOverride
|
|
44
|
+
ModifierFlagsParameterPropertyModifier = innerast.ModifierFlagsParameterPropertyModifier
|
|
45
|
+
ModifierFlagsPublic = innerast.ModifierFlagsPublic
|
|
46
|
+
ModifierFlagsStatic = innerast.ModifierFlagsStatic
|
|
47
|
+
ModifierFlagsSyntacticModifiers = innerast.ModifierFlagsSyntacticModifiers
|
|
48
|
+
ModifierFlagsSyntacticOnlyModifiers = innerast.ModifierFlagsSyntacticOnlyModifiers
|
|
49
|
+
ModifierFlagsSyntacticOrJSDocModifiers = innerast.ModifierFlagsSyntacticOrJSDocModifiers
|
|
50
|
+
ModifierFlagsTypeScriptModifier = innerast.ModifierFlagsTypeScriptModifier
|
|
51
|
+
NodeFlagsAmbient = innerast.NodeFlagsAmbient
|
|
52
|
+
NodeFlagsAwaitUsing = innerast.NodeFlagsAwaitUsing
|
|
53
|
+
NodeFlagsConstant = innerast.NodeFlagsConstant
|
|
54
|
+
NodeFlagsContainsThis = innerast.NodeFlagsContainsThis
|
|
55
|
+
NodeFlagsContextFlags = innerast.NodeFlagsContextFlags
|
|
56
|
+
NodeFlagsDecoratorContext = innerast.NodeFlagsDecoratorContext
|
|
57
|
+
NodeFlagsDisallowConditionalTypesContext = innerast.NodeFlagsDisallowConditionalTypesContext
|
|
58
|
+
NodeFlagsDisallowInContext = innerast.NodeFlagsDisallowInContext
|
|
59
|
+
NodeFlagsExportContext = innerast.NodeFlagsExportContext
|
|
60
|
+
NodeFlagsHasAsyncFunctions = innerast.NodeFlagsHasAsyncFunctions
|
|
61
|
+
NodeFlagsHasExplicitReturn = innerast.NodeFlagsHasExplicitReturn
|
|
62
|
+
NodeFlagsHasImplicitReturn = innerast.NodeFlagsHasImplicitReturn
|
|
63
|
+
NodeFlagsHasJSDoc = innerast.NodeFlagsHasJSDoc
|
|
64
|
+
NodeFlagsIdentifierHasExtendedUnicodeEscape = innerast.NodeFlagsIdentifierHasExtendedUnicodeEscape
|
|
65
|
+
NodeFlagsIdentifierIsInJSDocNamespace = innerast.NodeFlagsIdentifierIsInJSDocNamespace
|
|
66
|
+
NodeFlagsInWithStatement = innerast.NodeFlagsInWithStatement
|
|
67
|
+
NodeFlagsJSDoc = innerast.NodeFlagsJSDoc
|
|
68
|
+
NodeFlagsJavaScriptFile = innerast.NodeFlagsJavaScriptFile
|
|
69
|
+
NodeFlagsJsonFile = innerast.NodeFlagsJsonFile
|
|
70
|
+
NodeFlagsNestedNamespace = innerast.NodeFlagsNestedNamespace
|
|
71
|
+
NodeFlagsPermanentlySetIncrementalFlags = innerast.NodeFlagsPermanentlySetIncrementalFlags
|
|
72
|
+
NodeFlagsPossiblyContainsDeprecatedTag = innerast.NodeFlagsPossiblyContainsDeprecatedTag
|
|
73
|
+
NodeFlagsPossiblyContainsDynamicImport = innerast.NodeFlagsPossiblyContainsDynamicImport
|
|
74
|
+
NodeFlagsPossiblyContainsImportMeta = innerast.NodeFlagsPossiblyContainsImportMeta
|
|
75
|
+
NodeFlagsReachabilityAndEmitFlags = innerast.NodeFlagsReachabilityAndEmitFlags
|
|
76
|
+
NodeFlagsReachabilityCheckFlags = innerast.NodeFlagsReachabilityCheckFlags
|
|
77
|
+
NodeFlagsReparsed = innerast.NodeFlagsReparsed
|
|
78
|
+
NodeFlagsReparserTransformedLiteral = innerast.NodeFlagsReparserTransformedLiteral
|
|
79
|
+
NodeFlagsThisNodeHasError = innerast.NodeFlagsThisNodeHasError
|
|
80
|
+
NodeFlagsThisNodeOrAnySubNodesHasError = innerast.NodeFlagsThisNodeOrAnySubNodesHasError
|
|
81
|
+
NodeFlagsTypeExcludesFlags = innerast.NodeFlagsTypeExcludesFlags
|
|
82
|
+
NodeFlagsUnreachable = innerast.NodeFlagsUnreachable
|
|
83
|
+
NodeFlagsUsing = innerast.NodeFlagsUsing
|
|
84
|
+
NodeFlagsYieldContext = innerast.NodeFlagsYieldContext
|
|
85
|
+
SymbolFlagsAccessor = innerast.SymbolFlagsAccessor
|
|
86
|
+
SymbolFlagsAccessorExcludes = innerast.SymbolFlagsAccessorExcludes
|
|
87
|
+
SymbolFlagsAliasExcludes = innerast.SymbolFlagsAliasExcludes
|
|
88
|
+
SymbolFlagsAll = innerast.SymbolFlagsAll
|
|
89
|
+
SymbolFlagsAssignment = innerast.SymbolFlagsAssignment
|
|
90
|
+
SymbolFlagsBlockScoped = innerast.SymbolFlagsBlockScoped
|
|
91
|
+
SymbolFlagsBlockScopedVariable = innerast.SymbolFlagsBlockScopedVariable
|
|
92
|
+
SymbolFlagsBlockScopedVariableExcludes = innerast.SymbolFlagsBlockScopedVariableExcludes
|
|
93
|
+
SymbolFlagsClass = innerast.SymbolFlagsClass
|
|
94
|
+
SymbolFlagsClassExcludes = innerast.SymbolFlagsClassExcludes
|
|
95
|
+
SymbolFlagsClassMember = innerast.SymbolFlagsClassMember
|
|
96
|
+
SymbolFlagsConstEnum = innerast.SymbolFlagsConstEnum
|
|
97
|
+
SymbolFlagsConstEnumExcludes = innerast.SymbolFlagsConstEnumExcludes
|
|
98
|
+
SymbolFlagsConstEnumOnlyModule = innerast.SymbolFlagsConstEnumOnlyModule
|
|
99
|
+
SymbolFlagsConstructor = innerast.SymbolFlagsConstructor
|
|
100
|
+
SymbolFlagsEnum = innerast.SymbolFlagsEnum
|
|
101
|
+
SymbolFlagsEnumMember = innerast.SymbolFlagsEnumMember
|
|
102
|
+
SymbolFlagsEnumMemberExcludes = innerast.SymbolFlagsEnumMemberExcludes
|
|
103
|
+
SymbolFlagsExportDoesNotSupportDefaultModifier = innerast.SymbolFlagsExportDoesNotSupportDefaultModifier
|
|
104
|
+
SymbolFlagsExportHasLocal = innerast.SymbolFlagsExportHasLocal
|
|
105
|
+
SymbolFlagsExportStar = innerast.SymbolFlagsExportStar
|
|
106
|
+
SymbolFlagsExportSupportsDefaultModifier = innerast.SymbolFlagsExportSupportsDefaultModifier
|
|
107
|
+
SymbolFlagsExportValue = innerast.SymbolFlagsExportValue
|
|
108
|
+
SymbolFlagsFunction = innerast.SymbolFlagsFunction
|
|
109
|
+
SymbolFlagsFunctionExcludes = innerast.SymbolFlagsFunctionExcludes
|
|
110
|
+
SymbolFlagsFunctionScopedVariable = innerast.SymbolFlagsFunctionScopedVariable
|
|
111
|
+
SymbolFlagsFunctionScopedVariableExcludes = innerast.SymbolFlagsFunctionScopedVariableExcludes
|
|
112
|
+
SymbolFlagsGetAccessor = innerast.SymbolFlagsGetAccessor
|
|
113
|
+
SymbolFlagsGetAccessorExcludes = innerast.SymbolFlagsGetAccessorExcludes
|
|
114
|
+
SymbolFlagsGlobalLookup = innerast.SymbolFlagsGlobalLookup
|
|
115
|
+
SymbolFlagsInterface = innerast.SymbolFlagsInterface
|
|
116
|
+
SymbolFlagsInterfaceExcludes = innerast.SymbolFlagsInterfaceExcludes
|
|
117
|
+
SymbolFlagsLateBindingContainer = innerast.SymbolFlagsLateBindingContainer
|
|
118
|
+
SymbolFlagsMethod = innerast.SymbolFlagsMethod
|
|
119
|
+
SymbolFlagsMethodExcludes = innerast.SymbolFlagsMethodExcludes
|
|
120
|
+
SymbolFlagsModule = innerast.SymbolFlagsModule
|
|
121
|
+
SymbolFlagsModuleExports = innerast.SymbolFlagsModuleExports
|
|
122
|
+
SymbolFlagsModuleMember = innerast.SymbolFlagsModuleMember
|
|
123
|
+
SymbolFlagsNamespaceModule = innerast.SymbolFlagsNamespaceModule
|
|
124
|
+
SymbolFlagsNamespaceModuleExcludes = innerast.SymbolFlagsNamespaceModuleExcludes
|
|
125
|
+
SymbolFlagsNone = innerast.SymbolFlagsNone
|
|
126
|
+
SymbolFlagsObjectLiteral = innerast.SymbolFlagsObjectLiteral
|
|
127
|
+
SymbolFlagsParameterExcludes = innerast.SymbolFlagsParameterExcludes
|
|
128
|
+
SymbolFlagsProperty = innerast.SymbolFlagsProperty
|
|
129
|
+
SymbolFlagsPropertyExcludes = innerast.SymbolFlagsPropertyExcludes
|
|
130
|
+
SymbolFlagsPropertyOrAccessor = innerast.SymbolFlagsPropertyOrAccessor
|
|
131
|
+
SymbolFlagsPrototype = innerast.SymbolFlagsPrototype
|
|
132
|
+
SymbolFlagsRegularEnum = innerast.SymbolFlagsRegularEnum
|
|
133
|
+
SymbolFlagsRegularEnumExcludes = innerast.SymbolFlagsRegularEnumExcludes
|
|
134
|
+
SymbolFlagsReplaceableByMethod = innerast.SymbolFlagsReplaceableByMethod
|
|
135
|
+
SymbolFlagsSetAccessor = innerast.SymbolFlagsSetAccessor
|
|
136
|
+
SymbolFlagsSetAccessorExcludes = innerast.SymbolFlagsSetAccessorExcludes
|
|
137
|
+
SymbolFlagsSignature = innerast.SymbolFlagsSignature
|
|
138
|
+
SymbolFlagsTransient = innerast.SymbolFlagsTransient
|
|
139
|
+
SymbolFlagsTypeAlias = innerast.SymbolFlagsTypeAlias
|
|
140
|
+
SymbolFlagsTypeAliasExcludes = innerast.SymbolFlagsTypeAliasExcludes
|
|
141
|
+
SymbolFlagsTypeLiteral = innerast.SymbolFlagsTypeLiteral
|
|
142
|
+
SymbolFlagsTypeParameter = innerast.SymbolFlagsTypeParameter
|
|
143
|
+
SymbolFlagsTypeParameterExcludes = innerast.SymbolFlagsTypeParameterExcludes
|
|
144
|
+
SymbolFlagsValue = innerast.SymbolFlagsValue
|
|
145
|
+
SymbolFlagsValueModule = innerast.SymbolFlagsValueModule
|
|
146
|
+
SymbolFlagsValueModuleExcludes = innerast.SymbolFlagsValueModuleExcludes
|
|
147
|
+
SymbolFlagsVariable = innerast.SymbolFlagsVariable
|
|
148
|
+
TokenFlagsBinaryOrOctalSpecifier = innerast.TokenFlagsBinaryOrOctalSpecifier
|
|
149
|
+
TokenFlagsBinarySpecifier = innerast.TokenFlagsBinarySpecifier
|
|
150
|
+
TokenFlagsContainsInvalidEscape = innerast.TokenFlagsContainsInvalidEscape
|
|
151
|
+
TokenFlagsContainsInvalidSeparator = innerast.TokenFlagsContainsInvalidSeparator
|
|
152
|
+
TokenFlagsContainsLeadingZero = innerast.TokenFlagsContainsLeadingZero
|
|
153
|
+
TokenFlagsContainsSeparator = innerast.TokenFlagsContainsSeparator
|
|
154
|
+
TokenFlagsExtendedUnicodeEscape = innerast.TokenFlagsExtendedUnicodeEscape
|
|
155
|
+
TokenFlagsHexEscape = innerast.TokenFlagsHexEscape
|
|
156
|
+
TokenFlagsHexSpecifier = innerast.TokenFlagsHexSpecifier
|
|
157
|
+
TokenFlagsIsInvalid = innerast.TokenFlagsIsInvalid
|
|
158
|
+
TokenFlagsNumericLiteralFlags = innerast.TokenFlagsNumericLiteralFlags
|
|
159
|
+
TokenFlagsOctal = innerast.TokenFlagsOctal
|
|
160
|
+
TokenFlagsOctalSpecifier = innerast.TokenFlagsOctalSpecifier
|
|
161
|
+
TokenFlagsPrecedingJSDocComment = innerast.TokenFlagsPrecedingJSDocComment
|
|
162
|
+
TokenFlagsPrecedingJSDocLeadingAsterisks = innerast.TokenFlagsPrecedingJSDocLeadingAsterisks
|
|
163
|
+
TokenFlagsPrecedingJSDocWithDeprecated = innerast.TokenFlagsPrecedingJSDocWithDeprecated
|
|
164
|
+
TokenFlagsPrecedingJSDocWithSeeOrLink = innerast.TokenFlagsPrecedingJSDocWithSeeOrLink
|
|
165
|
+
TokenFlagsPrecedingLineBreak = innerast.TokenFlagsPrecedingLineBreak
|
|
166
|
+
TokenFlagsRegularExpressionLiteralFlags = innerast.TokenFlagsRegularExpressionLiteralFlags
|
|
167
|
+
TokenFlagsScientific = innerast.TokenFlagsScientific
|
|
168
|
+
TokenFlagsSingleQuote = innerast.TokenFlagsSingleQuote
|
|
169
|
+
TokenFlagsStringLiteralFlags = innerast.TokenFlagsStringLiteralFlags
|
|
170
|
+
TokenFlagsTemplateLiteralLikeFlags = innerast.TokenFlagsTemplateLiteralLikeFlags
|
|
171
|
+
TokenFlagsUnicodeEscape = innerast.TokenFlagsUnicodeEscape
|
|
172
|
+
TokenFlagsUnterminated = innerast.TokenFlagsUnterminated
|
|
173
|
+
TokenFlagsWithSpecifier = innerast.TokenFlagsWithSpecifier
|
|
174
|
+
)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
module github.com/microsoft/TypeScript/tsc/shim/ast
|
|
2
|
+
|
|
3
|
+
go 1.27
|
|
4
|
+
|
|
5
|
+
require github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906
|
|
6
|
+
|
|
7
|
+
require (
|
|
8
|
+
github.com/klauspost/compress v1.20.0 // indirect
|
|
9
|
+
github.com/klauspost/cpuid/v2 v2.2.10 // indirect
|
|
10
|
+
github.com/zeebo/xxh3 v1.1.0 // indirect
|
|
11
|
+
golang.org/x/sync v0.23.0 // indirect
|
|
12
|
+
golang.org/x/sys v0.48.0 // indirect
|
|
13
|
+
golang.org/x/text v0.42.0 // indirect
|
|
14
|
+
)
|
|
@@ -0,0 +1,20 @@
|
|
|
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/klauspost/compress v1.20.0 h1:a3C1ke2ohxFymNlb2HWAHjDeKCI90scRskErZkR0ezA=
|
|
4
|
+
github.com/klauspost/compress v1.20.0/go.mod h1:LUdAzn7YLVvxLpc7y3V1m40wESHTgc1422pwwBSKYuI=
|
|
5
|
+
github.com/klauspost/cpuid/v2 v2.2.10 h1:tBs3QSyvjDyFTq3uoc/9xFpCuOsJQFNPiAhYdw2skhE=
|
|
6
|
+
github.com/klauspost/cpuid/v2 v2.2.10/go.mod h1:hqwkgyIinND0mEev00jJYCxPNVRVXFQeu1XKlok6oO0=
|
|
7
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906 h1:Wn+Kp4ORyay6jJwvOng7G8pTD6HOP+Fwx8si66Wq7Bk=
|
|
8
|
+
github.com/microsoft/TypeScript/tsc v0.0.0-20261019224239-28534d760906/go.mod h1:28hWKaTYwRARPm0T9Y0XvdvYpU2HtjONzsMqAdYLucY=
|
|
9
|
+
github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ=
|
|
10
|
+
github.com/zeebo/assert v1.3.0/go.mod h1:Pq9JiuJQpG8JLJdtkwrJESF0Foym2/D9XMU5ciN/wJ0=
|
|
11
|
+
github.com/zeebo/xxh3 v1.1.0 h1:s7DLGDK45Dyfg7++yxI0khrfwq9661w9EN78eP/UZVs=
|
|
12
|
+
github.com/zeebo/xxh3 v1.1.0/go.mod h1:IisAie1LELR4xhVinxWS5+zf1lA4p0MW4T+w+W07F5s=
|
|
13
|
+
golang.org/x/sync v0.23.0 h1:KameEIfc1IkluZyXWLn39Wd4tURc6GbCiISGiZm2bQk=
|
|
14
|
+
golang.org/x/sync v0.23.0/go.mod h1:sUUOizhqBxiL6pEWpqNLUiaJn1ShEbZ6BBqskPbjZm0=
|
|
15
|
+
golang.org/x/sys v0.48.0 h1:bbX/i/6MgT9BVLM9RT1thmxL04yeTAhbEz4SyadbXoo=
|
|
16
|
+
golang.org/x/sys v0.48.0/go.mod h1:hNLxWAXmnKAxqDtdwIYC4bM9oQPEecfsnNMuSxOs3og=
|
|
17
|
+
golang.org/x/text v0.42.0 h1:JbOZXgfeCPU9gacVtYliJqOhD+zhrEqK4LfdpmlUZqI=
|
|
18
|
+
golang.org/x/text v0.42.0/go.mod h1:ojzP1Z+2QtioaF8DTtO8K5q7JWVVYwZKenzujK0Zd0E=
|
|
19
|
+
gotest.tools/v3 v3.5.2 h1:7koQfIKdy+I8UTetycgUqXWSDwpgv193Ka+qRsmBY8Q=
|
|
20
|
+
gotest.tools/v3 v3.5.2/go.mod h1:LtdLGcnqToBH83WByAAi/wiwSFCArdFIUV/xxN4pcjA=
|