@ai-ecoverse/wasix-ruby 3.4.11-3 → 3.4.11-4
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/PRESTAGE.md +22 -38
- package/bin/bundle +1 -1
- package/bin/bundler +1 -1
- package/bin/erb +1 -1
- package/bin/gem +1 -1
- package/bin/irb +1 -1
- package/bin/rake +1 -1
- package/bin/ruby.wasm +0 -0
- package/lib/ruby/3.4.0/expect.rb +71 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +1 -1
- package/package.json +8 -6
- package/lib/ruby/3.4.11/English.gemspec +0 -22
- package/lib/ruby/3.4.11/English.rb +0 -164
- package/lib/ruby/3.4.11/benchmark.gemspec +0 -32
- package/lib/ruby/3.4.11/benchmark.rb +0 -594
- package/lib/ruby/3.4.11/bundled_gems.rb +0 -248
- package/lib/ruby/3.4.11/bundler/.document +0 -1
- package/lib/ruby/3.4.11/bundler/build_metadata.rb +0 -43
- package/lib/ruby/3.4.11/bundler/bundler.gemspec +0 -45
- package/lib/ruby/3.4.11/bundler/capistrano.rb +0 -22
- package/lib/ruby/3.4.11/bundler/checksum.rb +0 -264
- package/lib/ruby/3.4.11/bundler/ci_detector.rb +0 -75
- package/lib/ruby/3.4.11/bundler/cli/add.rb +0 -49
- package/lib/ruby/3.4.11/bundler/cli/binstubs.rb +0 -57
- package/lib/ruby/3.4.11/bundler/cli/cache.rb +0 -43
- package/lib/ruby/3.4.11/bundler/cli/check.rb +0 -40
- package/lib/ruby/3.4.11/bundler/cli/clean.rb +0 -25
- package/lib/ruby/3.4.11/bundler/cli/common.rb +0 -138
- package/lib/ruby/3.4.11/bundler/cli/config.rb +0 -204
- package/lib/ruby/3.4.11/bundler/cli/console.rb +0 -42
- package/lib/ruby/3.4.11/bundler/cli/doctor/diagnose.rb +0 -167
- package/lib/ruby/3.4.11/bundler/cli/doctor/ssl.rb +0 -249
- package/lib/ruby/3.4.11/bundler/cli/doctor.rb +0 -33
- package/lib/ruby/3.4.11/bundler/cli/exec.rb +0 -89
- package/lib/ruby/3.4.11/bundler/cli/fund.rb +0 -36
- package/lib/ruby/3.4.11/bundler/cli/gem.rb +0 -467
- package/lib/ruby/3.4.11/bundler/cli/info.rb +0 -83
- package/lib/ruby/3.4.11/bundler/cli/init.rb +0 -51
- package/lib/ruby/3.4.11/bundler/cli/inject.rb +0 -60
- package/lib/ruby/3.4.11/bundler/cli/install.rb +0 -199
- package/lib/ruby/3.4.11/bundler/cli/issue.rb +0 -41
- package/lib/ruby/3.4.11/bundler/cli/list.rb +0 -66
- package/lib/ruby/3.4.11/bundler/cli/lock.rb +0 -94
- package/lib/ruby/3.4.11/bundler/cli/open.rb +0 -29
- package/lib/ruby/3.4.11/bundler/cli/outdated.rb +0 -297
- package/lib/ruby/3.4.11/bundler/cli/platform.rb +0 -48
- package/lib/ruby/3.4.11/bundler/cli/plugin.rb +0 -35
- package/lib/ruby/3.4.11/bundler/cli/pristine.rb +0 -60
- package/lib/ruby/3.4.11/bundler/cli/remove.rb +0 -17
- package/lib/ruby/3.4.11/bundler/cli/show.rb +0 -75
- package/lib/ruby/3.4.11/bundler/cli/update.rb +0 -123
- package/lib/ruby/3.4.11/bundler/cli/viz.rb +0 -31
- package/lib/ruby/3.4.11/bundler/cli.rb +0 -790
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache.rb +0 -96
- package/lib/ruby/3.4.11/bundler/compact_index_client/cache_file.rb +0 -148
- package/lib/ruby/3.4.11/bundler/compact_index_client/parser.rb +0 -84
- package/lib/ruby/3.4.11/bundler/compact_index_client/updater.rb +0 -105
- package/lib/ruby/3.4.11/bundler/compact_index_client.rb +0 -97
- package/lib/ruby/3.4.11/bundler/constants.rb +0 -14
- package/lib/ruby/3.4.11/bundler/current_ruby.rb +0 -82
- package/lib/ruby/3.4.11/bundler/definition.rb +0 -1187
- package/lib/ruby/3.4.11/bundler/dependency.rb +0 -151
- package/lib/ruby/3.4.11/bundler/deployment.rb +0 -69
- package/lib/ruby/3.4.11/bundler/deprecate.rb +0 -44
- package/lib/ruby/3.4.11/bundler/digest.rb +0 -71
- package/lib/ruby/3.4.11/bundler/dsl.rb +0 -638
- package/lib/ruby/3.4.11/bundler/endpoint_specification.rb +0 -174
- package/lib/ruby/3.4.11/bundler/env.rb +0 -148
- package/lib/ruby/3.4.11/bundler/environment_preserver.rb +0 -68
- package/lib/ruby/3.4.11/bundler/errors.rb +0 -281
- package/lib/ruby/3.4.11/bundler/feature_flag.rb +0 -50
- package/lib/ruby/3.4.11/bundler/fetcher/base.rb +0 -52
- package/lib/ruby/3.4.11/bundler/fetcher/compact_index.rb +0 -120
- package/lib/ruby/3.4.11/bundler/fetcher/dependency.rb +0 -78
- package/lib/ruby/3.4.11/bundler/fetcher/downloader.rb +0 -91
- package/lib/ruby/3.4.11/bundler/fetcher/gem_remote_fetcher.rb +0 -16
- package/lib/ruby/3.4.11/bundler/fetcher/index.rb +0 -25
- package/lib/ruby/3.4.11/bundler/fetcher.rb +0 -331
- package/lib/ruby/3.4.11/bundler/force_platform.rb +0 -16
- package/lib/ruby/3.4.11/bundler/friendly_errors.rb +0 -126
- package/lib/ruby/3.4.11/bundler/gem_helper.rb +0 -237
- package/lib/ruby/3.4.11/bundler/gem_helpers.rb +0 -144
- package/lib/ruby/3.4.11/bundler/gem_tasks.rb +0 -7
- package/lib/ruby/3.4.11/bundler/gem_version_promoter.rb +0 -147
- package/lib/ruby/3.4.11/bundler/graph.rb +0 -152
- package/lib/ruby/3.4.11/bundler/index.rb +0 -205
- package/lib/ruby/3.4.11/bundler/injector.rb +0 -285
- package/lib/ruby/3.4.11/bundler/inline.rb +0 -98
- package/lib/ruby/3.4.11/bundler/installer/gem_installer.rb +0 -85
- package/lib/ruby/3.4.11/bundler/installer/parallel_installer.rb +0 -203
- package/lib/ruby/3.4.11/bundler/installer/standalone.rb +0 -113
- package/lib/ruby/3.4.11/bundler/installer.rb +0 -243
- package/lib/ruby/3.4.11/bundler/lazy_specification.rb +0 -243
- package/lib/ruby/3.4.11/bundler/lockfile_generator.rb +0 -104
- package/lib/ruby/3.4.11/bundler/lockfile_parser.rb +0 -300
- package/lib/ruby/3.4.11/bundler/man/.document +0 -1
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1 +0 -76
- package/lib/ruby/3.4.11/bundler/man/bundle-add.1.ronn +0 -87
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1 +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-binstubs.1.ronn +0 -44
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1 +0 -68
- package/lib/ruby/3.4.11/bundler/man/bundle-cache.1.ronn +0 -108
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1 +0 -24
- package/lib/ruby/3.4.11/bundler/man/bundle-check.1.ronn +0 -31
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1 +0 -17
- package/lib/ruby/3.4.11/bundler/man/bundle-clean.1.ronn +0 -18
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1 +0 -317
- package/lib/ruby/3.4.11/bundler/man/bundle-config.1.ronn +0 -408
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1 +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-console.1.ronn +0 -39
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1 +0 -30
- package/lib/ruby/3.4.11/bundler/man/bundle-doctor.1.ronn +0 -33
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-env.1.ronn +0 -10
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1 +0 -107
- package/lib/ruby/3.4.11/bundler/man/bundle-exec.1.ronn +0 -154
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1 +0 -22
- package/lib/ruby/3.4.11/bundler/man/bundle-fund.1.ronn +0 -25
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1 +0 -87
- package/lib/ruby/3.4.11/bundler/man/bundle-gem.1.ronn +0 -149
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-help.1.ronn +0 -12
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1 +0 -17
- package/lib/ruby/3.4.11/bundler/man/bundle-info.1.ronn +0 -21
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1 +0 -20
- package/lib/ruby/3.4.11/bundler/man/bundle-init.1.ronn +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1 +0 -31
- package/lib/ruby/3.4.11/bundler/man/bundle-inject.1.ronn +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1 +0 -218
- package/lib/ruby/3.4.11/bundler/man/bundle-install.1.ronn +0 -387
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1 +0 -45
- package/lib/ruby/3.4.11/bundler/man/bundle-issue.1.ronn +0 -37
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1 +0 -9
- package/lib/ruby/3.4.11/bundler/man/bundle-licenses.1.ronn +0 -10
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1 +0 -35
- package/lib/ruby/3.4.11/bundler/man/bundle-list.1.ronn +0 -36
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1 +0 -75
- package/lib/ruby/3.4.11/bundler/man/bundle-lock.1.ronn +0 -115
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1 +0 -32
- package/lib/ruby/3.4.11/bundler/man/bundle-open.1.ronn +0 -28
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1 +0 -103
- package/lib/ruby/3.4.11/bundler/man/bundle-outdated.1.ronn +0 -110
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1 +0 -49
- package/lib/ruby/3.4.11/bundler/man/bundle-platform.1.ronn +0 -49
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1 +0 -58
- package/lib/ruby/3.4.11/bundler/man/bundle-plugin.1.ronn +0 -63
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1 +0 -23
- package/lib/ruby/3.4.11/bundler/man/bundle-pristine.1.ronn +0 -34
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1 +0 -21
- package/lib/ruby/3.4.11/bundler/man/bundle-remove.1.ronn +0 -23
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1 +0 -19
- package/lib/ruby/3.4.11/bundler/man/bundle-show.1.ronn +0 -25
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1 +0 -281
- package/lib/ruby/3.4.11/bundler/man/bundle-update.1.ronn +0 -359
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1 +0 -22
- package/lib/ruby/3.4.11/bundler/man/bundle-version.1.ronn +0 -24
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1 +0 -30
- package/lib/ruby/3.4.11/bundler/man/bundle-viz.1.ronn +0 -36
- package/lib/ruby/3.4.11/bundler/man/bundle.1 +0 -102
- package/lib/ruby/3.4.11/bundler/man/bundle.1.ronn +0 -116
- package/lib/ruby/3.4.11/bundler/man/gemfile.5 +0 -472
- package/lib/ruby/3.4.11/bundler/man/gemfile.5.ronn +0 -558
- package/lib/ruby/3.4.11/bundler/man/index.txt +0 -33
- package/lib/ruby/3.4.11/bundler/match_metadata.rb +0 -30
- package/lib/ruby/3.4.11/bundler/match_platform.rb +0 -23
- package/lib/ruby/3.4.11/bundler/match_remote_metadata.rb +0 -29
- package/lib/ruby/3.4.11/bundler/materialization.rb +0 -59
- package/lib/ruby/3.4.11/bundler/mirror.rb +0 -221
- package/lib/ruby/3.4.11/bundler/plugin/api/source.rb +0 -322
- package/lib/ruby/3.4.11/bundler/plugin/api.rb +0 -81
- package/lib/ruby/3.4.11/bundler/plugin/dsl.rb +0 -53
- package/lib/ruby/3.4.11/bundler/plugin/events.rb +0 -85
- package/lib/ruby/3.4.11/bundler/plugin/index.rb +0 -197
- package/lib/ruby/3.4.11/bundler/plugin/installer/git.rb +0 -34
- package/lib/ruby/3.4.11/bundler/plugin/installer/path.rb +0 -26
- package/lib/ruby/3.4.11/bundler/plugin/installer/rubygems.rb +0 -19
- package/lib/ruby/3.4.11/bundler/plugin/installer.rb +0 -132
- package/lib/ruby/3.4.11/bundler/plugin/source_list.rb +0 -31
- package/lib/ruby/3.4.11/bundler/plugin.rb +0 -378
- package/lib/ruby/3.4.11/bundler/process_lock.rb +0 -20
- package/lib/ruby/3.4.11/bundler/remote_specification.rb +0 -126
- package/lib/ruby/3.4.11/bundler/resolver/base.rb +0 -118
- package/lib/ruby/3.4.11/bundler/resolver/candidate.rb +0 -85
- package/lib/ruby/3.4.11/bundler/resolver/incompatibility.rb +0 -15
- package/lib/ruby/3.4.11/bundler/resolver/package.rb +0 -94
- package/lib/ruby/3.4.11/bundler/resolver/root.rb +0 -25
- package/lib/ruby/3.4.11/bundler/resolver/spec_group.rb +0 -74
- package/lib/ruby/3.4.11/bundler/resolver/strategy.rb +0 -40
- package/lib/ruby/3.4.11/bundler/resolver.rb +0 -526
- package/lib/ruby/3.4.11/bundler/retry.rb +0 -66
- package/lib/ruby/3.4.11/bundler/ruby_dsl.rb +0 -62
- package/lib/ruby/3.4.11/bundler/ruby_version.rb +0 -137
- package/lib/ruby/3.4.11/bundler/rubygems_ext.rb +0 -485
- package/lib/ruby/3.4.11/bundler/rubygems_gem_installer.rb +0 -172
- package/lib/ruby/3.4.11/bundler/rubygems_integration.rb +0 -455
- package/lib/ruby/3.4.11/bundler/runtime.rb +0 -320
- package/lib/ruby/3.4.11/bundler/safe_marshal.rb +0 -31
- package/lib/ruby/3.4.11/bundler/self_manager.rb +0 -206
- package/lib/ruby/3.4.11/bundler/settings/validator.rb +0 -102
- package/lib/ruby/3.4.11/bundler/settings.rb +0 -599
- package/lib/ruby/3.4.11/bundler/setup.rb +0 -39
- package/lib/ruby/3.4.11/bundler/shared_helpers.rb +0 -398
- package/lib/ruby/3.4.11/bundler/similarity_detector.rb +0 -63
- package/lib/ruby/3.4.11/bundler/source/gemspec.rb +0 -15
- package/lib/ruby/3.4.11/bundler/source/git/git_proxy.rb +0 -472
- package/lib/ruby/3.4.11/bundler/source/git.rb +0 -452
- package/lib/ruby/3.4.11/bundler/source/metadata.rb +0 -63
- package/lib/ruby/3.4.11/bundler/source/path/installer.rb +0 -53
- package/lib/ruby/3.4.11/bundler/source/path.rb +0 -250
- package/lib/ruby/3.4.11/bundler/source/rubygems/remote.rb +0 -76
- package/lib/ruby/3.4.11/bundler/source/rubygems.rb +0 -522
- package/lib/ruby/3.4.11/bundler/source/rubygems_aggregate.rb +0 -68
- package/lib/ruby/3.4.11/bundler/source.rb +0 -118
- package/lib/ruby/3.4.11/bundler/source_list.rb +0 -273
- package/lib/ruby/3.4.11/bundler/source_map.rb +0 -71
- package/lib/ruby/3.4.11/bundler/spec_set.rb +0 -395
- package/lib/ruby/3.4.11/bundler/stub_specification.rb +0 -146
- package/lib/ruby/3.4.11/bundler/templates/.document +0 -1
- package/lib/ruby/3.4.11/bundler/templates/Executable +0 -27
- package/lib/ruby/3.4.11/bundler/templates/Executable.bundler +0 -109
- package/lib/ruby/3.4.11/bundler/templates/Executable.standalone +0 -14
- package/lib/ruby/3.4.11/bundler/templates/Gemfile +0 -5
- package/lib/ruby/3.4.11/bundler/templates/newgem/CHANGELOG.md.tt +0 -5
- package/lib/ruby/3.4.11/bundler/templates/newgem/CODE_OF_CONDUCT.md.tt +0 -132
- package/lib/ruby/3.4.11/bundler/templates/newgem/Cargo.toml.tt +0 -7
- package/lib/ruby/3.4.11/bundler/templates/newgem/Gemfile.tt +0 -24
- package/lib/ruby/3.4.11/bundler/templates/newgem/LICENSE.txt.tt +0 -21
- package/lib/ruby/3.4.11/bundler/templates/newgem/README.md.tt +0 -49
- package/lib/ruby/3.4.11/bundler/templates/newgem/Rakefile.tt +0 -67
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/console.tt +0 -11
- package/lib/ruby/3.4.11/bundler/templates/newgem/bin/setup.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/circleci/config.yml.tt +0 -25
- package/lib/ruby/3.4.11/bundler/templates/newgem/exe/newgem.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/Cargo.toml.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-c.rb.tt +0 -10
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/extconf-rust.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.c.tt +0 -9
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/newgem.h.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/ext/newgem/src/lib.rs.tt +0 -12
- package/lib/ruby/3.4.11/bundler/templates/newgem/github/workflows/main.yml.tt +0 -37
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitignore.tt +0 -23
- package/lib/ruby/3.4.11/bundler/templates/newgem/gitlab-ci.yml.tt +0 -18
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem/version.rb.tt +0 -9
- package/lib/ruby/3.4.11/bundler/templates/newgem/lib/newgem.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/newgem.gemspec.tt +0 -52
- package/lib/ruby/3.4.11/bundler/templates/newgem/rspec.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/rubocop.yml.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/sig/newgem.rbs.tt +0 -8
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/newgem_spec.rb.tt +0 -11
- package/lib/ruby/3.4.11/bundler/templates/newgem/spec/spec_helper.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/standard.yml.tt +0 -3
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_helper.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/minitest/test_newgem.rb.tt +0 -13
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/newgem_test.rb.tt +0 -15
- package/lib/ruby/3.4.11/bundler/templates/newgem/test/test-unit/test_helper.rb.tt +0 -6
- package/lib/ruby/3.4.11/bundler/ui/rg_proxy.rb +0 -19
- package/lib/ruby/3.4.11/bundler/ui/shell.rb +0 -187
- package/lib/ruby/3.4.11/bundler/ui/silent.rb +0 -96
- package/lib/ruby/3.4.11/bundler/ui.rb +0 -9
- package/lib/ruby/3.4.11/bundler/uri_credentials_filter.rb +0 -43
- package/lib/ruby/3.4.11/bundler/uri_normalizer.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/timed_stack.rb +0 -224
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool/wrapper.rb +0 -56
- package/lib/ruby/3.4.11/bundler/vendor/connection_pool/lib/connection_pool.rb +0 -186
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/fileutils/lib/fileutils.rb +0 -2696
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/connection.rb +0 -41
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/pool.rb +0 -65
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent/timed_stack_multi.rb +0 -79
- package/lib/ruby/3.4.11/bundler/vendor/net-http-persistent/lib/net/http/persistent.rb +0 -1111
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/assignment.rb +0 -20
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/basic_package_source.rb +0 -169
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/failure_writer.rb +0 -182
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/incompatibility.rb +0 -150
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/package.rb +0 -43
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/partial_solution.rb +0 -121
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/rubygems.rb +0 -45
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/solve_failure.rb +0 -19
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/static_package_source.rb +0 -61
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/strategy.rb +0 -42
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/term.rb +0 -105
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_constraint.rb +0 -129
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_range.rb +0 -423
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_solver.rb +0 -236
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub/version_union.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/pub_grub/lib/pub_grub.rb +0 -31
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/securerandom/lib/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/bundler/vendor/thor/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_file.rb +0 -105
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/create_link.rb +0 -61
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/directory.rb +0 -108
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/empty_directory.rb +0 -143
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/file_manipulation.rb +0 -371
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions/inject_into_file.rb +0 -130
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/actions.rb +0 -340
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/base.rb +0 -825
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/command.rb +0 -151
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/core_ext/hash_with_indifferent_access.rb +0 -107
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/error.rb +0 -106
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/group.rb +0 -292
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/invocation.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/basic.rb +0 -37
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor/readline.rb +0 -88
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/line_editor.rb +0 -17
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/nested_context.rb +0 -29
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/argument.rb +0 -86
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/arguments.rb +0 -195
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/option.rb +0 -178
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser/options.rb +0 -294
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/parser.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/rake_compat.rb +0 -72
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/runner.rb +0 -335
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/basic.rb +0 -388
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/color.rb +0 -112
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/column_printer.rb +0 -29
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/html.rb +0 -81
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/table_printer.rb +0 -118
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/terminal.rb +0 -42
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell/wrapped_printer.rb +0 -38
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/shell.rb +0 -81
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/util.rb +0 -285
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor/version.rb +0 -3
- package/lib/ruby/3.4.11/bundler/vendor/thor/lib/thor.rb +0 -674
- package/lib/ruby/3.4.11/bundler/vendor/tsort/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/tsort/lib/tsort.rb +0 -455
- package/lib/ruby/3.4.11/bundler/vendor/uri/.document +0 -1
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendor/uri/lib/uri.rb +0 -104
- package/lib/ruby/3.4.11/bundler/vendored_fileutils.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_net_http.rb +0 -23
- package/lib/ruby/3.4.11/bundler/vendored_persistent.rb +0 -11
- package/lib/ruby/3.4.11/bundler/vendored_pub_grub.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_securerandom.rb +0 -12
- package/lib/ruby/3.4.11/bundler/vendored_thor.rb +0 -8
- package/lib/ruby/3.4.11/bundler/vendored_timeout.rb +0 -12
- package/lib/ruby/3.4.11/bundler/vendored_tsort.rb +0 -4
- package/lib/ruby/3.4.11/bundler/vendored_uri.rb +0 -21
- package/lib/ruby/3.4.11/bundler/version.rb +0 -13
- package/lib/ruby/3.4.11/bundler/vlad.rb +0 -17
- package/lib/ruby/3.4.11/bundler/worker.rb +0 -117
- package/lib/ruby/3.4.11/bundler/yaml_serializer.rb +0 -98
- package/lib/ruby/3.4.11/bundler.rb +0 -701
- package/lib/ruby/3.4.11/cgi/cgi.gemspec +0 -43
- package/lib/ruby/3.4.11/cgi/cookie.rb +0 -210
- package/lib/ruby/3.4.11/cgi/core.rb +0 -900
- package/lib/ruby/3.4.11/cgi/html.rb +0 -1035
- package/lib/ruby/3.4.11/cgi/session/pstore.rb +0 -91
- package/lib/ruby/3.4.11/cgi/session.rb +0 -562
- package/lib/ruby/3.4.11/cgi/util.rb +0 -258
- package/lib/ruby/3.4.11/cgi.rb +0 -297
- package/lib/ruby/3.4.11/delegate.gemspec +0 -29
- package/lib/ruby/3.4.11/delegate.rb +0 -444
- package/lib/ruby/3.4.11/did_you_mean/core_ext/name_error.rb +0 -57
- package/lib/ruby/3.4.11/did_you_mean/did_you_mean.gemspec +0 -25
- package/lib/ruby/3.4.11/did_you_mean/experimental.rb +0 -2
- package/lib/ruby/3.4.11/did_you_mean/formatter.rb +0 -44
- package/lib/ruby/3.4.11/did_you_mean/formatters/plain_formatter.rb +0 -4
- package/lib/ruby/3.4.11/did_you_mean/formatters/verbose_formatter.rb +0 -10
- package/lib/ruby/3.4.11/did_you_mean/jaro_winkler.rb +0 -84
- package/lib/ruby/3.4.11/did_you_mean/levenshtein.rb +0 -57
- package/lib/ruby/3.4.11/did_you_mean/spell_checker.rb +0 -46
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/key_error_checker.rb +0 -28
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/method_name_checker.rb +0 -79
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/class_name_checker.rb +0 -49
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers/variable_name_checker.rb +0 -85
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/name_error_checkers.rb +0 -20
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/null_checker.rb +0 -6
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/pattern_key_name_checker.rb +0 -28
- package/lib/ruby/3.4.11/did_you_mean/spell_checkers/require_path_checker.rb +0 -39
- package/lib/ruby/3.4.11/did_you_mean/tree_spell_checker.rb +0 -109
- package/lib/ruby/3.4.11/did_you_mean/verbose.rb +0 -2
- package/lib/ruby/3.4.11/did_you_mean/version.rb +0 -3
- package/lib/ruby/3.4.11/did_you_mean.rb +0 -131
- package/lib/ruby/3.4.11/erb/compiler.rb +0 -472
- package/lib/ruby/3.4.11/erb/def_method.rb +0 -47
- package/lib/ruby/3.4.11/erb/util.rb +0 -63
- package/lib/ruby/3.4.11/erb/version.rb +0 -5
- package/lib/ruby/3.4.11/erb.gemspec +0 -38
- package/lib/ruby/3.4.11/erb.rb +0 -509
- package/lib/ruby/3.4.11/error_highlight/base.rb +0 -830
- package/lib/ruby/3.4.11/error_highlight/core_ext.rb +0 -47
- package/lib/ruby/3.4.11/error_highlight/error_highlight.gemspec +0 -27
- package/lib/ruby/3.4.11/error_highlight/formatter.rb +0 -74
- package/lib/ruby/3.4.11/error_highlight/version.rb +0 -3
- package/lib/ruby/3.4.11/error_highlight.rb +0 -2
- package/lib/ruby/3.4.11/fileutils.gemspec +0 -31
- package/lib/ruby/3.4.11/fileutils.rb +0 -2696
- package/lib/ruby/3.4.11/find.gemspec +0 -29
- package/lib/ruby/3.4.11/find.rb +0 -90
- package/lib/ruby/3.4.11/forwardable/forwardable.gemspec +0 -26
- package/lib/ruby/3.4.11/forwardable/impl.rb +0 -17
- package/lib/ruby/3.4.11/forwardable.rb +0 -321
- package/lib/ruby/3.4.11/ipaddr.gemspec +0 -36
- package/lib/ruby/3.4.11/ipaddr.rb +0 -841
- package/lib/ruby/3.4.11/irb/cmd/nop.rb +0 -4
- package/lib/ruby/3.4.11/irb/color.rb +0 -262
- package/lib/ruby/3.4.11/irb/color_printer.rb +0 -55
- package/lib/ruby/3.4.11/irb/command/backtrace.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/base.rb +0 -60
- package/lib/ruby/3.4.11/irb/command/break.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/catch.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/cd.rb +0 -51
- package/lib/ruby/3.4.11/irb/command/chws.rb +0 -40
- package/lib/ruby/3.4.11/irb/command/context.rb +0 -16
- package/lib/ruby/3.4.11/irb/command/continue.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/debug.rb +0 -73
- package/lib/ruby/3.4.11/irb/command/delete.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/disable_irb.rb +0 -19
- package/lib/ruby/3.4.11/irb/command/edit.rb +0 -63
- package/lib/ruby/3.4.11/irb/command/exit.rb +0 -18
- package/lib/ruby/3.4.11/irb/command/finish.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/force_exit.rb +0 -18
- package/lib/ruby/3.4.11/irb/command/help.rb +0 -83
- package/lib/ruby/3.4.11/irb/command/history.rb +0 -45
- package/lib/ruby/3.4.11/irb/command/info.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/internal_helpers.rb +0 -27
- package/lib/ruby/3.4.11/irb/command/irb_info.rb +0 -33
- package/lib/ruby/3.4.11/irb/command/load.rb +0 -91
- package/lib/ruby/3.4.11/irb/command/ls.rb +0 -167
- package/lib/ruby/3.4.11/irb/command/measure.rb +0 -49
- package/lib/ruby/3.4.11/irb/command/next.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/pushws.rb +0 -65
- package/lib/ruby/3.4.11/irb/command/show_doc.rb +0 -51
- package/lib/ruby/3.4.11/irb/command/show_source.rb +0 -74
- package/lib/ruby/3.4.11/irb/command/step.rb +0 -17
- package/lib/ruby/3.4.11/irb/command/subirb.rb +0 -123
- package/lib/ruby/3.4.11/irb/command/whereami.rb +0 -23
- package/lib/ruby/3.4.11/irb/command.rb +0 -23
- package/lib/ruby/3.4.11/irb/completion.rb +0 -504
- package/lib/ruby/3.4.11/irb/context.rb +0 -716
- package/lib/ruby/3.4.11/irb/debug/ui.rb +0 -101
- package/lib/ruby/3.4.11/irb/debug.rb +0 -127
- package/lib/ruby/3.4.11/irb/default_commands.rb +0 -276
- package/lib/ruby/3.4.11/irb/easter-egg.rb +0 -152
- package/lib/ruby/3.4.11/irb/ext/change-ws.rb +0 -37
- package/lib/ruby/3.4.11/irb/ext/eval_history.rb +0 -149
- package/lib/ruby/3.4.11/irb/ext/loader.rb +0 -127
- package/lib/ruby/3.4.11/irb/ext/multi-irb.rb +0 -258
- package/lib/ruby/3.4.11/irb/ext/tracer.rb +0 -39
- package/lib/ruby/3.4.11/irb/ext/use-loader.rb +0 -67
- package/lib/ruby/3.4.11/irb/ext/workspaces.rb +0 -36
- package/lib/ruby/3.4.11/irb/frame.rb +0 -80
- package/lib/ruby/3.4.11/irb/help.rb +0 -28
- package/lib/ruby/3.4.11/irb/helper_method/base.rb +0 -16
- package/lib/ruby/3.4.11/irb/helper_method/conf.rb +0 -11
- package/lib/ruby/3.4.11/irb/helper_method.rb +0 -29
- package/lib/ruby/3.4.11/irb/history.rb +0 -112
- package/lib/ruby/3.4.11/irb/init.rb +0 -538
- package/lib/ruby/3.4.11/irb/input-method.rb +0 -515
- package/lib/ruby/3.4.11/irb/inspector.rb +0 -131
- package/lib/ruby/3.4.11/irb/irb.gemspec +0 -46
- package/lib/ruby/3.4.11/irb/lc/error.rb +0 -52
- package/lib/ruby/3.4.11/irb/lc/help-message +0 -55
- package/lib/ruby/3.4.11/irb/lc/ja/error.rb +0 -53
- package/lib/ruby/3.4.11/irb/lc/ja/help-message +0 -58
- package/lib/ruby/3.4.11/irb/locale.rb +0 -153
- package/lib/ruby/3.4.11/irb/nesting_parser.rb +0 -239
- package/lib/ruby/3.4.11/irb/notifier.rb +0 -230
- package/lib/ruby/3.4.11/irb/output-method.rb +0 -80
- package/lib/ruby/3.4.11/irb/pager.rb +0 -100
- package/lib/ruby/3.4.11/irb/ruby-lex.rb +0 -476
- package/lib/ruby/3.4.11/irb/ruby_logo.aa +0 -118
- package/lib/ruby/3.4.11/irb/source_finder.rb +0 -138
- package/lib/ruby/3.4.11/irb/statement.rb +0 -80
- package/lib/ruby/3.4.11/irb/version.rb +0 -11
- package/lib/ruby/3.4.11/irb/workspace.rb +0 -171
- package/lib/ruby/3.4.11/irb/ws-for-case-2.rb +0 -9
- package/lib/ruby/3.4.11/irb/xmp.rb +0 -164
- package/lib/ruby/3.4.11/irb.rb +0 -1593
- package/lib/ruby/3.4.11/logger/errors.rb +0 -9
- package/lib/ruby/3.4.11/logger/formatter.rb +0 -36
- package/lib/ruby/3.4.11/logger/log_device.rb +0 -236
- package/lib/ruby/3.4.11/logger/logger.gemspec +0 -22
- package/lib/ruby/3.4.11/logger/period.rb +0 -47
- package/lib/ruby/3.4.11/logger/severity.rb +0 -38
- package/lib/ruby/3.4.11/logger/version.rb +0 -5
- package/lib/ruby/3.4.11/logger.rb +0 -761
- package/lib/ruby/3.4.11/mkmf.rb +0 -3045
- package/lib/ruby/3.4.11/net/http/exceptions.rb +0 -34
- package/lib/ruby/3.4.11/net/http/generic_request.rb +0 -414
- package/lib/ruby/3.4.11/net/http/header.rb +0 -981
- package/lib/ruby/3.4.11/net/http/net-http.gemspec +0 -39
- package/lib/ruby/3.4.11/net/http/proxy_delta.rb +0 -17
- package/lib/ruby/3.4.11/net/http/request.rb +0 -88
- package/lib/ruby/3.4.11/net/http/requests.rb +0 -430
- package/lib/ruby/3.4.11/net/http/response.rb +0 -738
- package/lib/ruby/3.4.11/net/http/responses.rb +0 -1174
- package/lib/ruby/3.4.11/net/http/status.rb +0 -84
- package/lib/ruby/3.4.11/net/http.rb +0 -2574
- package/lib/ruby/3.4.11/net/https.rb +0 -23
- package/lib/ruby/3.4.11/net/net-protocol.gemspec +0 -34
- package/lib/ruby/3.4.11/net/protocol.rb +0 -544
- package/lib/ruby/3.4.11/open-uri.gemspec +0 -32
- package/lib/ruby/3.4.11/open-uri.rb +0 -895
- package/lib/ruby/3.4.11/open3/open3.gemspec +0 -33
- package/lib/ruby/3.4.11/open3/version.rb +0 -3
- package/lib/ruby/3.4.11/open3.rb +0 -1410
- package/lib/ruby/3.4.11/optionparser.rb +0 -2
- package/lib/ruby/3.4.11/optparse/ac.rb +0 -70
- package/lib/ruby/3.4.11/optparse/date.rb +0 -18
- package/lib/ruby/3.4.11/optparse/kwargs.rb +0 -27
- package/lib/ruby/3.4.11/optparse/optparse.gemspec +0 -31
- package/lib/ruby/3.4.11/optparse/shellwords.rb +0 -7
- package/lib/ruby/3.4.11/optparse/time.rb +0 -11
- package/lib/ruby/3.4.11/optparse/uri.rb +0 -7
- package/lib/ruby/3.4.11/optparse/version.rb +0 -80
- package/lib/ruby/3.4.11/optparse.rb +0 -2429
- package/lib/ruby/3.4.11/ostruct.gemspec +0 -24
- package/lib/ruby/3.4.11/ostruct.rb +0 -489
- package/lib/ruby/3.4.11/pp.gemspec +0 -35
- package/lib/ruby/3.4.11/pp.rb +0 -699
- package/lib/ruby/3.4.11/prettyprint.gemspec +0 -29
- package/lib/ruby/3.4.11/prettyprint.rb +0 -558
- package/lib/ruby/3.4.11/prism/compiler.rb +0 -801
- package/lib/ruby/3.4.11/prism/desugar_compiler.rb +0 -392
- package/lib/ruby/3.4.11/prism/dispatcher.rb +0 -2210
- package/lib/ruby/3.4.11/prism/dsl.rb +0 -1003
- package/lib/ruby/3.4.11/prism/ffi.rb +0 -570
- package/lib/ruby/3.4.11/prism/inspect_visitor.rb +0 -2392
- package/lib/ruby/3.4.11/prism/lex_compat.rb +0 -928
- package/lib/ruby/3.4.11/prism/mutation_compiler.rb +0 -772
- package/lib/ruby/3.4.11/prism/node.rb +0 -18816
- package/lib/ruby/3.4.11/prism/node_ext.rb +0 -511
- package/lib/ruby/3.4.11/prism/pack.rb +0 -230
- package/lib/ruby/3.4.11/prism/parse_result/comments.rb +0 -188
- package/lib/ruby/3.4.11/prism/parse_result/errors.rb +0 -66
- package/lib/ruby/3.4.11/prism/parse_result/newlines.rb +0 -155
- package/lib/ruby/3.4.11/prism/parse_result.rb +0 -911
- package/lib/ruby/3.4.11/prism/pattern.rb +0 -269
- package/lib/ruby/3.4.11/prism/polyfill/append_as_bytes.rb +0 -15
- package/lib/ruby/3.4.11/prism/polyfill/byteindex.rb +0 -13
- package/lib/ruby/3.4.11/prism/polyfill/scan_byte.rb +0 -14
- package/lib/ruby/3.4.11/prism/polyfill/unpack1.rb +0 -14
- package/lib/ruby/3.4.11/prism/polyfill/warn.rb +0 -36
- package/lib/ruby/3.4.11/prism/prism.gemspec +0 -174
- package/lib/ruby/3.4.11/prism/reflection.rb +0 -416
- package/lib/ruby/3.4.11/prism/relocation.rb +0 -505
- package/lib/ruby/3.4.11/prism/serialize.rb +0 -2400
- package/lib/ruby/3.4.11/prism/string_query.rb +0 -31
- package/lib/ruby/3.4.11/prism/translation/parser/builder.rb +0 -62
- package/lib/ruby/3.4.11/prism/translation/parser/compiler.rb +0 -2234
- package/lib/ruby/3.4.11/prism/translation/parser/lexer.rb +0 -820
- package/lib/ruby/3.4.11/prism/translation/parser.rb +0 -374
- package/lib/ruby/3.4.11/prism/translation/parser33.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser34.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser35.rb +0 -13
- package/lib/ruby/3.4.11/prism/translation/parser_current.rb +0 -24
- package/lib/ruby/3.4.11/prism/translation/ripper/sexp.rb +0 -126
- package/lib/ruby/3.4.11/prism/translation/ripper/shim.rb +0 -5
- package/lib/ruby/3.4.11/prism/translation/ripper.rb +0 -3474
- package/lib/ruby/3.4.11/prism/translation/ruby_parser.rb +0 -1929
- package/lib/ruby/3.4.11/prism/translation.rb +0 -16
- package/lib/ruby/3.4.11/prism/visitor.rb +0 -813
- package/lib/ruby/3.4.11/prism.rb +0 -91
- package/lib/ruby/3.4.11/pstore.gemspec +0 -32
- package/lib/ruby/3.4.11/pstore.rb +0 -736
- package/lib/ruby/3.4.11/random/formatter.rb +0 -372
- package/lib/ruby/3.4.11/rdoc/.document +0 -2
- package/lib/ruby/3.4.11/rdoc/code_object/alias.rb +0 -104
- package/lib/ruby/3.4.11/rdoc/code_object/anon_class.rb +0 -10
- package/lib/ruby/3.4.11/rdoc/code_object/any_method.rb +0 -374
- package/lib/ruby/3.4.11/rdoc/code_object/attr.rb +0 -172
- package/lib/ruby/3.4.11/rdoc/code_object/class_module.rb +0 -888
- package/lib/ruby/3.4.11/rdoc/code_object/constant.rb +0 -186
- package/lib/ruby/3.4.11/rdoc/code_object/context/section.rb +0 -175
- package/lib/ruby/3.4.11/rdoc/code_object/context.rb +0 -1222
- package/lib/ruby/3.4.11/rdoc/code_object/extend.rb +0 -9
- package/lib/ruby/3.4.11/rdoc/code_object/ghost_method.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/code_object/include.rb +0 -9
- package/lib/ruby/3.4.11/rdoc/code_object/meta_method.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/code_object/method_attr.rb +0 -410
- package/lib/ruby/3.4.11/rdoc/code_object/mixin.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/code_object/normal_class.rb +0 -92
- package/lib/ruby/3.4.11/rdoc/code_object/normal_module.rb +0 -73
- package/lib/ruby/3.4.11/rdoc/code_object/require.rb +0 -51
- package/lib/ruby/3.4.11/rdoc/code_object/single_class.rb +0 -30
- package/lib/ruby/3.4.11/rdoc/code_object/top_level.rb +0 -273
- package/lib/ruby/3.4.11/rdoc/code_object.rb +0 -395
- package/lib/ruby/3.4.11/rdoc/code_objects.rb +0 -5
- package/lib/ruby/3.4.11/rdoc/comment.rb +0 -236
- package/lib/ruby/3.4.11/rdoc/cross_reference.rb +0 -228
- package/lib/ruby/3.4.11/rdoc/encoding.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/erb_partial.rb +0 -18
- package/lib/ruby/3.4.11/rdoc/erbio.rb +0 -37
- package/lib/ruby/3.4.11/rdoc/generator/darkfish.rb +0 -812
- package/lib/ruby/3.4.11/rdoc/generator/json_index.rb +0 -284
- package/lib/ruby/3.4.11/rdoc/generator/markup.rb +0 -171
- package/lib/ruby/3.4.11/rdoc/generator/pot/message_extractor.rb +0 -68
- package/lib/ruby/3.4.11/rdoc/generator/pot/po.rb +0 -84
- package/lib/ruby/3.4.11/rdoc/generator/pot/po_entry.rb +0 -141
- package/lib/ruby/3.4.11/rdoc/generator/pot.rb +0 -94
- package/lib/ruby/3.4.11/rdoc/generator/ri.rb +0 -30
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/.document +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_footer.rhtml +0 -5
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_head.rhtml +0 -48
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_classes.rhtml +0 -5
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_extends.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_includes.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_installed.rhtml +0 -15
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_methods.rhtml +0 -21
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_navigation.rhtml +0 -11
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_pages.rhtml +0 -32
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_parent.rhtml +0 -6
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_search.rhtml +0 -14
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_sections.rhtml +0 -11
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_table_of_contents.rhtml +0 -39
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/_sidebar_toggle.rhtml +0 -3
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/class.rhtml +0 -221
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/fonts.css +0 -167
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/css/rdoc.css +0 -683
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Light.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-LightItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/Lato-RegularItalic.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Bold.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/fonts/SourceCodePro-Regular.ttf +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/add.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/arrow_up.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/brick_link.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bug.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_black.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/date.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/delete.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/find.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/loadingAnimation.gif +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/macFFBgHack.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/package.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_text.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/page_white_width.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/plugin.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/ruby.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_blue.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/tag_green.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/transparent.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/wrench_orange.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/images/zoom.png +0 -0
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/index.rhtml +0 -23
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/darkfish.js +0 -120
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/js/search.js +0 -110
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/page.rhtml +0 -18
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_not_found.rhtml +0 -20
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/servlet_root.rhtml +0 -65
- package/lib/ruby/3.4.11/rdoc/generator/template/darkfish/table_of_contents.rhtml +0 -70
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/navigation.js +0 -105
- package/lib/ruby/3.4.11/rdoc/generator/template/json_index/js/searcher.js +0 -229
- package/lib/ruby/3.4.11/rdoc/generator.rb +0 -51
- package/lib/ruby/3.4.11/rdoc/i18n/locale.rb +0 -102
- package/lib/ruby/3.4.11/rdoc/i18n/text.rb +0 -126
- package/lib/ruby/3.4.11/rdoc/i18n.rb +0 -10
- package/lib/ruby/3.4.11/rdoc/known_classes.rb +0 -74
- package/lib/ruby/3.4.11/rdoc/markdown/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/markdown/entities.rb +0 -2131
- package/lib/ruby/3.4.11/rdoc/markdown/literals.rb +0 -454
- package/lib/ruby/3.4.11/rdoc/markdown.rb +0 -16806
- package/lib/ruby/3.4.11/rdoc/markup/attr_changer.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/markup/attr_span.rb +0 -35
- package/lib/ruby/3.4.11/rdoc/markup/attribute_manager.rb +0 -405
- package/lib/ruby/3.4.11/rdoc/markup/attributes.rb +0 -70
- package/lib/ruby/3.4.11/rdoc/markup/blank_line.rb +0 -27
- package/lib/ruby/3.4.11/rdoc/markup/block_quote.rb +0 -14
- package/lib/ruby/3.4.11/rdoc/markup/document.rb +0 -164
- package/lib/ruby/3.4.11/rdoc/markup/formatter.rb +0 -272
- package/lib/ruby/3.4.11/rdoc/markup/hard_break.rb +0 -31
- package/lib/ruby/3.4.11/rdoc/markup/heading.rb +0 -84
- package/lib/ruby/3.4.11/rdoc/markup/include.rb +0 -42
- package/lib/ruby/3.4.11/rdoc/markup/indented_paragraph.rb +0 -47
- package/lib/ruby/3.4.11/rdoc/markup/list.rb +0 -101
- package/lib/ruby/3.4.11/rdoc/markup/list_item.rb +0 -99
- package/lib/ruby/3.4.11/rdoc/markup/paragraph.rb +0 -28
- package/lib/ruby/3.4.11/rdoc/markup/parser.rb +0 -585
- package/lib/ruby/3.4.11/rdoc/markup/pre_process.rb +0 -318
- package/lib/ruby/3.4.11/rdoc/markup/raw.rb +0 -69
- package/lib/ruby/3.4.11/rdoc/markup/regexp_handling.rb +0 -40
- package/lib/ruby/3.4.11/rdoc/markup/rule.rb +0 -20
- package/lib/ruby/3.4.11/rdoc/markup/table.rb +0 -56
- package/lib/ruby/3.4.11/rdoc/markup/to_ansi.rb +0 -93
- package/lib/ruby/3.4.11/rdoc/markup/to_bs.rb +0 -102
- package/lib/ruby/3.4.11/rdoc/markup/to_html.rb +0 -462
- package/lib/ruby/3.4.11/rdoc/markup/to_html_crossref.rb +0 -226
- package/lib/ruby/3.4.11/rdoc/markup/to_html_snippet.rb +0 -287
- package/lib/ruby/3.4.11/rdoc/markup/to_joined_paragraph.rb +0 -46
- package/lib/ruby/3.4.11/rdoc/markup/to_label.rb +0 -74
- package/lib/ruby/3.4.11/rdoc/markup/to_markdown.rb +0 -191
- package/lib/ruby/3.4.11/rdoc/markup/to_rdoc.rb +0 -353
- package/lib/ruby/3.4.11/rdoc/markup/to_table_of_contents.rb +0 -88
- package/lib/ruby/3.4.11/rdoc/markup/to_test.rb +0 -69
- package/lib/ruby/3.4.11/rdoc/markup/to_tt_only.rb +0 -120
- package/lib/ruby/3.4.11/rdoc/markup/verbatim.rb +0 -83
- package/lib/ruby/3.4.11/rdoc/markup.rb +0 -240
- package/lib/ruby/3.4.11/rdoc/options.rb +0 -1416
- package/lib/ruby/3.4.11/rdoc/parser/c.rb +0 -1257
- package/lib/ruby/3.4.11/rdoc/parser/changelog.rb +0 -350
- package/lib/ruby/3.4.11/rdoc/parser/markdown.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/parser/prism_ruby.rb +0 -1092
- package/lib/ruby/3.4.11/rdoc/parser/rd.rb +0 -22
- package/lib/ruby/3.4.11/rdoc/parser/ripper_state_lex.rb +0 -302
- package/lib/ruby/3.4.11/rdoc/parser/ruby.rb +0 -2378
- package/lib/ruby/3.4.11/rdoc/parser/ruby_tools.rb +0 -165
- package/lib/ruby/3.4.11/rdoc/parser/simple.rb +0 -61
- package/lib/ruby/3.4.11/rdoc/parser/text.rb +0 -11
- package/lib/ruby/3.4.11/rdoc/parser.rb +0 -297
- package/lib/ruby/3.4.11/rdoc/rd/.document +0 -1
- package/lib/ruby/3.4.11/rdoc/rd/block_parser.rb +0 -1706
- package/lib/ruby/3.4.11/rdoc/rd/inline.rb +0 -71
- package/lib/ruby/3.4.11/rdoc/rd/inline_parser.rb +0 -1854
- package/lib/ruby/3.4.11/rdoc/rd.rb +0 -99
- package/lib/ruby/3.4.11/rdoc/rdoc.gemspec +0 -68
- package/lib/ruby/3.4.11/rdoc/rdoc.rb +0 -551
- package/lib/ruby/3.4.11/rdoc/ri/driver.rb +0 -1566
- package/lib/ruby/3.4.11/rdoc/ri/formatter.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/ri/paths.rb +0 -171
- package/lib/ruby/3.4.11/rdoc/ri/store.rb +0 -6
- package/lib/ruby/3.4.11/rdoc/ri/task.rb +0 -71
- package/lib/ruby/3.4.11/rdoc/ri.rb +0 -20
- package/lib/ruby/3.4.11/rdoc/rubygems_hook.rb +0 -327
- package/lib/ruby/3.4.11/rdoc/servlet.rb +0 -452
- package/lib/ruby/3.4.11/rdoc/stats/normal.rb +0 -58
- package/lib/ruby/3.4.11/rdoc/stats/quiet.rb +0 -59
- package/lib/ruby/3.4.11/rdoc/stats/verbose.rb +0 -44
- package/lib/ruby/3.4.11/rdoc/stats.rb +0 -461
- package/lib/ruby/3.4.11/rdoc/store.rb +0 -997
- package/lib/ruby/3.4.11/rdoc/task.rb +0 -354
- package/lib/ruby/3.4.11/rdoc/text.rb +0 -322
- package/lib/ruby/3.4.11/rdoc/token_stream.rb +0 -118
- package/lib/ruby/3.4.11/rdoc/tom_doc.rb +0 -257
- package/lib/ruby/3.4.11/rdoc/version.rb +0 -10
- package/lib/ruby/3.4.11/rdoc.rb +0 -211
- package/lib/ruby/3.4.11/readline.gemspec +0 -33
- package/lib/ruby/3.4.11/readline.rb +0 -7
- package/lib/ruby/3.4.11/reline/config.rb +0 -373
- package/lib/ruby/3.4.11/reline/face.rb +0 -199
- package/lib/ruby/3.4.11/reline/history.rb +0 -76
- package/lib/ruby/3.4.11/reline/io/ansi.rb +0 -325
- package/lib/ruby/3.4.11/reline/io/dumb.rb +0 -120
- package/lib/ruby/3.4.11/reline/io/windows.rb +0 -530
- package/lib/ruby/3.4.11/reline/io.rb +0 -55
- package/lib/ruby/3.4.11/reline/key_actor/base.rb +0 -37
- package/lib/ruby/3.4.11/reline/key_actor/composite.rb +0 -17
- package/lib/ruby/3.4.11/reline/key_actor/emacs.rb +0 -517
- package/lib/ruby/3.4.11/reline/key_actor/vi_command.rb +0 -518
- package/lib/ruby/3.4.11/reline/key_actor/vi_insert.rb +0 -517
- package/lib/ruby/3.4.11/reline/key_actor.rb +0 -8
- package/lib/ruby/3.4.11/reline/key_stroke.rb +0 -119
- package/lib/ruby/3.4.11/reline/kill_ring.rb +0 -125
- package/lib/ruby/3.4.11/reline/line_editor.rb +0 -2382
- package/lib/ruby/3.4.11/reline/reline.gemspec +0 -30
- package/lib/ruby/3.4.11/reline/unicode/east_asian_width.rb +0 -1267
- package/lib/ruby/3.4.11/reline/unicode.rb +0 -415
- package/lib/ruby/3.4.11/reline/version.rb +0 -3
- package/lib/ruby/3.4.11/reline.rb +0 -519
- package/lib/ruby/3.4.11/resolv.gemspec +0 -30
- package/lib/ruby/3.4.11/resolv.rb +0 -3587
- package/lib/ruby/3.4.11/ruby2_keywords.gemspec +0 -23
- package/lib/ruby/3.4.11/ruby_vm/rjit/.document +0 -1
- package/lib/ruby/3.4.11/ruby_vm/rjit/assembler.rb +0 -1160
- package/lib/ruby/3.4.11/ruby_vm/rjit/block.rb +0 -11
- package/lib/ruby/3.4.11/ruby_vm/rjit/branch_stub.rb +0 -24
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_pointer.rb +0 -394
- package/lib/ruby/3.4.11/ruby_vm/rjit/c_type.rb +0 -99
- package/lib/ruby/3.4.11/ruby_vm/rjit/code_block.rb +0 -91
- package/lib/ruby/3.4.11/ruby_vm/rjit/compiler.rb +0 -518
- package/lib/ruby/3.4.11/ruby_vm/rjit/context.rb +0 -377
- package/lib/ruby/3.4.11/ruby_vm/rjit/entry_stub.rb +0 -7
- package/lib/ruby/3.4.11/ruby_vm/rjit/exit_compiler.rb +0 -164
- package/lib/ruby/3.4.11/ruby_vm/rjit/hooks.rb +0 -36
- package/lib/ruby/3.4.11/ruby_vm/rjit/insn_compiler.rb +0 -6046
- package/lib/ruby/3.4.11/ruby_vm/rjit/instruction.rb +0 -1326
- package/lib/ruby/3.4.11/ruby_vm/rjit/invariants.rb +0 -155
- package/lib/ruby/3.4.11/ruby_vm/rjit/jit_state.rb +0 -65
- package/lib/ruby/3.4.11/ruby_vm/rjit/stats.rb +0 -191
- package/lib/ruby/3.4.11/ruby_vm/rjit/type.rb +0 -221
- package/lib/ruby/3.4.11/rubygems/available_set.rb +0 -165
- package/lib/ruby/3.4.11/rubygems/basic_specification.rb +0 -383
- package/lib/ruby/3.4.11/rubygems/bundler_version_finder.rb +0 -77
- package/lib/ruby/3.4.11/rubygems/ci_detector.rb +0 -75
- package/lib/ruby/3.4.11/rubygems/command.rb +0 -664
- package/lib/ruby/3.4.11/rubygems/command_manager.rb +0 -255
- package/lib/ruby/3.4.11/rubygems/commands/build_command.rb +0 -127
- package/lib/ruby/3.4.11/rubygems/commands/cert_command.rb +0 -325
- package/lib/ruby/3.4.11/rubygems/commands/check_command.rb +0 -97
- package/lib/ruby/3.4.11/rubygems/commands/cleanup_command.rb +0 -178
- package/lib/ruby/3.4.11/rubygems/commands/contents_command.rb +0 -196
- package/lib/ruby/3.4.11/rubygems/commands/dependency_command.rb +0 -206
- package/lib/ruby/3.4.11/rubygems/commands/environment_command.rb +0 -181
- package/lib/ruby/3.4.11/rubygems/commands/exec_command.rb +0 -256
- package/lib/ruby/3.4.11/rubygems/commands/fetch_command.rb +0 -109
- package/lib/ruby/3.4.11/rubygems/commands/generate_index_command.rb +0 -51
- package/lib/ruby/3.4.11/rubygems/commands/help_command.rb +0 -375
- package/lib/ruby/3.4.11/rubygems/commands/info_command.rb +0 -38
- package/lib/ruby/3.4.11/rubygems/commands/install_command.rb +0 -269
- package/lib/ruby/3.4.11/rubygems/commands/list_command.rb +0 -42
- package/lib/ruby/3.4.11/rubygems/commands/lock_command.rb +0 -109
- package/lib/ruby/3.4.11/rubygems/commands/mirror_command.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/commands/open_command.rb +0 -83
- package/lib/ruby/3.4.11/rubygems/commands/outdated_command.rb +0 -33
- package/lib/ruby/3.4.11/rubygems/commands/owner_command.rb +0 -124
- package/lib/ruby/3.4.11/rubygems/commands/pristine_command.rb +0 -217
- package/lib/ruby/3.4.11/rubygems/commands/push_command.rb +0 -135
- package/lib/ruby/3.4.11/rubygems/commands/query_command.rb +0 -43
- package/lib/ruby/3.4.11/rubygems/commands/rdoc_command.rb +0 -90
- package/lib/ruby/3.4.11/rubygems/commands/rebuild_command.rb +0 -262
- package/lib/ruby/3.4.11/rubygems/commands/search_command.rb +0 -41
- package/lib/ruby/3.4.11/rubygems/commands/server_command.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/commands/setup_command.rb +0 -663
- package/lib/ruby/3.4.11/rubygems/commands/signin_command.rb +0 -34
- package/lib/ruby/3.4.11/rubygems/commands/signout_command.rb +0 -32
- package/lib/ruby/3.4.11/rubygems/commands/sources_command.rb +0 -227
- package/lib/ruby/3.4.11/rubygems/commands/specification_command.rb +0 -156
- package/lib/ruby/3.4.11/rubygems/commands/stale_command.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/commands/uninstall_command.rb +0 -204
- package/lib/ruby/3.4.11/rubygems/commands/unpack_command.rb +0 -168
- package/lib/ruby/3.4.11/rubygems/commands/update_command.rb +0 -326
- package/lib/ruby/3.4.11/rubygems/commands/which_command.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/commands/yank_command.rb +0 -99
- package/lib/ruby/3.4.11/rubygems/compatibility.rb +0 -41
- package/lib/ruby/3.4.11/rubygems/config_file.rb +0 -618
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_gem.rb +0 -68
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_require.rb +0 -149
- package/lib/ruby/3.4.11/rubygems/core_ext/kernel_warn.rb +0 -45
- package/lib/ruby/3.4.11/rubygems/core_ext/tcpsocket_init.rb +0 -54
- package/lib/ruby/3.4.11/rubygems/defaults.rb +0 -308
- package/lib/ruby/3.4.11/rubygems/dependency.rb +0 -348
- package/lib/ruby/3.4.11/rubygems/dependency_installer.rb +0 -335
- package/lib/ruby/3.4.11/rubygems/dependency_list.rb +0 -243
- package/lib/ruby/3.4.11/rubygems/deprecate.rb +0 -169
- package/lib/ruby/3.4.11/rubygems/doctor.rb +0 -132
- package/lib/ruby/3.4.11/rubygems/errors.rb +0 -177
- package/lib/ruby/3.4.11/rubygems/exceptions.rb +0 -293
- package/lib/ruby/3.4.11/rubygems/ext/build_error.rb +0 -9
- package/lib/ruby/3.4.11/rubygems/ext/builder.rb +0 -260
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder/link_flag_converter.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/ext/cargo_builder.rb +0 -346
- package/lib/ruby/3.4.11/rubygems/ext/cmake_builder.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/ext/configure_builder.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/ext/ext_conf_builder.rb +0 -77
- package/lib/ruby/3.4.11/rubygems/ext/rake_builder.rb +0 -37
- package/lib/ruby/3.4.11/rubygems/ext.rb +0 -20
- package/lib/ruby/3.4.11/rubygems/gem_runner.rb +0 -89
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener/response.rb +0 -163
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_listener.rb +0 -105
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities/webauthn_poller.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/gemcutter_utilities.rb +0 -397
- package/lib/ruby/3.4.11/rubygems/gemspec_helpers.rb +0 -19
- package/lib/ruby/3.4.11/rubygems/install_default_message.rb +0 -13
- package/lib/ruby/3.4.11/rubygems/install_message.rb +0 -13
- package/lib/ruby/3.4.11/rubygems/install_update_options.rb +0 -204
- package/lib/ruby/3.4.11/rubygems/installer.rb +0 -1031
- package/lib/ruby/3.4.11/rubygems/installer_uninstaller_utils.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/local_remote_options.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/name_tuple.rb +0 -119
- package/lib/ruby/3.4.11/rubygems/openssl.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/package/digest_io.rb +0 -63
- package/lib/ruby/3.4.11/rubygems/package/file_source.rb +0 -32
- package/lib/ruby/3.4.11/rubygems/package/io_source.rb +0 -48
- package/lib/ruby/3.4.11/rubygems/package/old.rb +0 -169
- package/lib/ruby/3.4.11/rubygems/package/source.rb +0 -4
- package/lib/ruby/3.4.11/rubygems/package/tar_header.rb +0 -277
- package/lib/ruby/3.4.11/rubygems/package/tar_reader/entry.rb +0 -244
- package/lib/ruby/3.4.11/rubygems/package/tar_reader.rb +0 -101
- package/lib/ruby/3.4.11/rubygems/package/tar_writer.rb +0 -332
- package/lib/ruby/3.4.11/rubygems/package.rb +0 -742
- package/lib/ruby/3.4.11/rubygems/package_task.rb +0 -123
- package/lib/ruby/3.4.11/rubygems/path_support.rb +0 -85
- package/lib/ruby/3.4.11/rubygems/platform.rb +0 -269
- package/lib/ruby/3.4.11/rubygems/psych_tree.rb +0 -37
- package/lib/ruby/3.4.11/rubygems/query_utils.rb +0 -349
- package/lib/ruby/3.4.11/rubygems/rdoc.rb +0 -26
- package/lib/ruby/3.4.11/rubygems/remote_fetcher.rb +0 -341
- package/lib/ruby/3.4.11/rubygems/request/connection_pools.rb +0 -95
- package/lib/ruby/3.4.11/rubygems/request/http_pool.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/request/https_pool.rb +0 -10
- package/lib/ruby/3.4.11/rubygems/request.rb +0 -298
- package/lib/ruby/3.4.11/rubygems/request_set/gem_dependency_api.rb +0 -841
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/parser.rb +0 -344
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile/tokenizer.rb +0 -122
- package/lib/ruby/3.4.11/rubygems/request_set/lockfile.rb +0 -235
- package/lib/ruby/3.4.11/rubygems/request_set.rb +0 -468
- package/lib/ruby/3.4.11/rubygems/requirement.rb +0 -298
- package/lib/ruby/3.4.11/rubygems/resolver/activation_request.rb +0 -159
- package/lib/ruby/3.4.11/rubygems/resolver/api_set/gem_parser.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/resolver/api_set.rb +0 -139
- package/lib/ruby/3.4.11/rubygems/resolver/api_specification.rb +0 -105
- package/lib/ruby/3.4.11/rubygems/resolver/best_set.rb +0 -49
- package/lib/ruby/3.4.11/rubygems/resolver/composed_set.rb +0 -65
- package/lib/ruby/3.4.11/rubygems/resolver/conflict.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/resolver/current_set.rb +0 -12
- package/lib/ruby/3.4.11/rubygems/resolver/dependency_request.rb +0 -119
- package/lib/ruby/3.4.11/rubygems/resolver/git_set.rb +0 -120
- package/lib/ruby/3.4.11/rubygems/resolver/git_specification.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/resolver/index_set.rb +0 -79
- package/lib/ruby/3.4.11/rubygems/resolver/index_specification.rb +0 -101
- package/lib/ruby/3.4.11/rubygems/resolver/installed_specification.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/resolver/installer_set.rb +0 -271
- package/lib/ruby/3.4.11/rubygems/resolver/local_specification.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/resolver/lock_set.rb +0 -81
- package/lib/ruby/3.4.11/rubygems/resolver/lock_specification.rb +0 -86
- package/lib/ruby/3.4.11/rubygems/resolver/requirement_list.rb +0 -82
- package/lib/ruby/3.4.11/rubygems/resolver/set.rb +0 -55
- package/lib/ruby/3.4.11/rubygems/resolver/source_set.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/resolver/spec_specification.rb +0 -76
- package/lib/ruby/3.4.11/rubygems/resolver/specification.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/resolver/stats.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_set.rb +0 -86
- package/lib/ruby/3.4.11/rubygems/resolver/vendor_specification.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/resolver.rb +0 -341
- package/lib/ruby/3.4.11/rubygems/s3_uri_signer.rb +0 -177
- package/lib/ruby/3.4.11/rubygems/safe_marshal/elements.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/safe_marshal/reader.rb +0 -325
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/stream_printer.rb +0 -31
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/to_ruby.rb +0 -428
- package/lib/ruby/3.4.11/rubygems/safe_marshal/visitors/visitor.rb +0 -74
- package/lib/ruby/3.4.11/rubygems/safe_marshal.rb +0 -74
- package/lib/ruby/3.4.11/rubygems/safe_yaml.rb +0 -45
- package/lib/ruby/3.4.11/rubygems/security/policies.rb +0 -114
- package/lib/ruby/3.4.11/rubygems/security/policy.rb +0 -288
- package/lib/ruby/3.4.11/rubygems/security/signer.rb +0 -212
- package/lib/ruby/3.4.11/rubygems/security/trust_dir.rb +0 -117
- package/lib/ruby/3.4.11/rubygems/security.rb +0 -615
- package/lib/ruby/3.4.11/rubygems/security_option.rb +0 -43
- package/lib/ruby/3.4.11/rubygems/source/git.rb +0 -244
- package/lib/ruby/3.4.11/rubygems/source/installed.rb +0 -39
- package/lib/ruby/3.4.11/rubygems/source/local.rb +0 -131
- package/lib/ruby/3.4.11/rubygems/source/lock.rb +0 -49
- package/lib/ruby/3.4.11/rubygems/source/specific_file.rb +0 -73
- package/lib/ruby/3.4.11/rubygems/source/vendor.rb +0 -24
- package/lib/ruby/3.4.11/rubygems/source.rb +0 -247
- package/lib/ruby/3.4.11/rubygems/source_list.rb +0 -146
- package/lib/ruby/3.4.11/rubygems/spec_fetcher.rb +0 -290
- package/lib/ruby/3.4.11/rubygems/specification.rb +0 -2666
- package/lib/ruby/3.4.11/rubygems/specification_policy.rb +0 -558
- package/lib/ruby/3.4.11/rubygems/specification_record.rb +0 -212
- package/lib/ruby/3.4.11/rubygems/ssl_certs/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA.pem +0 -21
- package/lib/ruby/3.4.11/rubygems/ssl_certs/rubygems.org/GlobalSignRootCA_R3.pem +0 -21
- package/lib/ruby/3.4.11/rubygems/stub_specification.rb +0 -235
- package/lib/ruby/3.4.11/rubygems/target_rbconfig.rb +0 -50
- package/lib/ruby/3.4.11/rubygems/text.rb +0 -85
- package/lib/ruby/3.4.11/rubygems/uninstaller.rb +0 -429
- package/lib/ruby/3.4.11/rubygems/unknown_command_spell_checker.rb +0 -21
- package/lib/ruby/3.4.11/rubygems/update_suggestion.rb +0 -56
- package/lib/ruby/3.4.11/rubygems/uri.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/uri_formatter.rb +0 -47
- package/lib/ruby/3.4.11/rubygems/user_interaction.rb +0 -650
- package/lib/ruby/3.4.11/rubygems/util/licenses.rb +0 -834
- package/lib/ruby/3.4.11/rubygems/util/list.rb +0 -40
- package/lib/ruby/3.4.11/rubygems/util.rb +0 -118
- package/lib/ruby/3.4.11/rubygems/validator.rb +0 -144
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/resolution_state.rb +0 -57
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/delegates/specification_provider.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/action.rb +0 -36
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_edge_no_circular.rb +0 -66
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/add_vertex.rb +0 -62
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/delete_edge.rb +0 -63
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/detach_vertex_named.rb +0 -61
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/log.rb +0 -126
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/set_payload.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/tag.rb +0 -36
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph/vertex.rb +0 -164
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/dependency_graph.rb +0 -255
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/errors.rb +0 -149
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/gem_metadata.rb +0 -6
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/specification_provider.rb +0 -112
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/modules/ui.rb +0 -67
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolution.rb +0 -839
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/resolver.rb +0 -46
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo/state.rb +0 -58
- package/lib/ruby/3.4.11/rubygems/vendor/molinillo/lib/molinillo.rb +0 -11
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/exceptions.rb +0 -34
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/generic_request.rb +0 -414
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/header.rb +0 -981
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/proxy_delta.rb +0 -17
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/request.rb +0 -88
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/requests.rb +0 -430
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/response.rb +0 -738
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/responses.rb +0 -1174
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http/status.rb +0 -84
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/http.rb +0 -2580
- package/lib/ruby/3.4.11/rubygems/vendor/net-http/lib/net/https.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/net-protocol/lib/net/protocol.rb +0 -544
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optionparser.rb +0 -2
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/ac.rb +0 -70
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/date.rb +0 -18
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/kwargs.rb +0 -27
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/shellwords.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/time.rb +0 -11
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/uri.rb +0 -7
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse/version.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/vendor/optparse/lib/optparse.rb +0 -2426
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/resolv/lib/resolv.rb +0 -3455
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/securerandom/lib/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/timeout/lib/timeout.rb +0 -198
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/tsort/lib/tsort.rb +0 -455
- package/lib/ruby/3.4.11/rubygems/vendor/uri/.document +0 -1
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/rubygems/vendor/uri/lib/uri.rb +0 -104
- package/lib/ruby/3.4.11/rubygems/vendored_molinillo.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_net_http.rb +0 -5
- package/lib/ruby/3.4.11/rubygems/vendored_optparse.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_securerandom.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/vendored_timeout.rb +0 -5
- package/lib/ruby/3.4.11/rubygems/vendored_tsort.rb +0 -3
- package/lib/ruby/3.4.11/rubygems/version.rb +0 -441
- package/lib/ruby/3.4.11/rubygems/version_option.rb +0 -80
- package/lib/ruby/3.4.11/rubygems/yaml_serializer.rb +0 -98
- package/lib/ruby/3.4.11/rubygems.rb +0 -1417
- package/lib/ruby/3.4.11/securerandom.gemspec +0 -34
- package/lib/ruby/3.4.11/securerandom.rb +0 -102
- package/lib/ruby/3.4.11/set/set.gemspec +0 -30
- package/lib/ruby/3.4.11/set/sorted_set.rb +0 -6
- package/lib/ruby/3.4.11/set.rb +0 -855
- package/lib/ruby/3.4.11/shellwords.gemspec +0 -31
- package/lib/ruby/3.4.11/shellwords.rb +0 -254
- package/lib/ruby/3.4.11/singleton.gemspec +0 -30
- package/lib/ruby/3.4.11/singleton.rb +0 -239
- package/lib/ruby/3.4.11/syntax_suggest/api.rb +0 -233
- package/lib/ruby/3.4.11/syntax_suggest/around_block_scan.rb +0 -232
- package/lib/ruby/3.4.11/syntax_suggest/block_expand.rb +0 -165
- package/lib/ruby/3.4.11/syntax_suggest/capture/before_after_keyword_ends.rb +0 -85
- package/lib/ruby/3.4.11/syntax_suggest/capture/falling_indent_lines.rb +0 -71
- package/lib/ruby/3.4.11/syntax_suggest/capture_code_context.rb +0 -245
- package/lib/ruby/3.4.11/syntax_suggest/clean_document.rb +0 -306
- package/lib/ruby/3.4.11/syntax_suggest/cli.rb +0 -130
- package/lib/ruby/3.4.11/syntax_suggest/code_block.rb +0 -100
- package/lib/ruby/3.4.11/syntax_suggest/code_frontier.rb +0 -178
- package/lib/ruby/3.4.11/syntax_suggest/code_line.rb +0 -243
- package/lib/ruby/3.4.11/syntax_suggest/code_search.rb +0 -139
- package/lib/ruby/3.4.11/syntax_suggest/core_ext.rb +0 -96
- package/lib/ruby/3.4.11/syntax_suggest/display_code_with_line_numbers.rb +0 -70
- package/lib/ruby/3.4.11/syntax_suggest/display_invalid_blocks.rb +0 -83
- package/lib/ruby/3.4.11/syntax_suggest/explain_syntax.rb +0 -117
- package/lib/ruby/3.4.11/syntax_suggest/left_right_lex_count.rb +0 -168
- package/lib/ruby/3.4.11/syntax_suggest/lex_all.rb +0 -74
- package/lib/ruby/3.4.11/syntax_suggest/lex_value.rb +0 -70
- package/lib/ruby/3.4.11/syntax_suggest/mini_stringio.rb +0 -30
- package/lib/ruby/3.4.11/syntax_suggest/parse_blocks_from_indent_line.rb +0 -60
- package/lib/ruby/3.4.11/syntax_suggest/pathname_from_message.rb +0 -59
- package/lib/ruby/3.4.11/syntax_suggest/priority_engulf_queue.rb +0 -63
- package/lib/ruby/3.4.11/syntax_suggest/priority_queue.rb +0 -105
- package/lib/ruby/3.4.11/syntax_suggest/ripper_errors.rb +0 -39
- package/lib/ruby/3.4.11/syntax_suggest/scan_history.rb +0 -134
- package/lib/ruby/3.4.11/syntax_suggest/syntax_suggest.gemspec +0 -32
- package/lib/ruby/3.4.11/syntax_suggest/unvisited_lines.rb +0 -36
- package/lib/ruby/3.4.11/syntax_suggest/version.rb +0 -5
- package/lib/ruby/3.4.11/syntax_suggest.rb +0 -3
- package/lib/ruby/3.4.11/tempfile.gemspec +0 -33
- package/lib/ruby/3.4.11/tempfile.rb +0 -640
- package/lib/ruby/3.4.11/time.gemspec +0 -35
- package/lib/ruby/3.4.11/time.rb +0 -731
- package/lib/ruby/3.4.11/timeout.gemspec +0 -33
- package/lib/ruby/3.4.11/timeout.rb +0 -200
- package/lib/ruby/3.4.11/tmpdir.gemspec +0 -30
- package/lib/ruby/3.4.11/tmpdir.rb +0 -189
- package/lib/ruby/3.4.11/tsort.gemspec +0 -29
- package/lib/ruby/3.4.11/tsort.rb +0 -455
- package/lib/ruby/3.4.11/un.gemspec +0 -31
- package/lib/ruby/3.4.11/un.rb +0 -441
- package/lib/ruby/3.4.11/unicode_normalize/normalize.rb +0 -181
- package/lib/ruby/3.4.11/unicode_normalize/tables.rb +0 -9259
- package/lib/ruby/3.4.11/uri/common.rb +0 -880
- package/lib/ruby/3.4.11/uri/file.rb +0 -100
- package/lib/ruby/3.4.11/uri/ftp.rb +0 -267
- package/lib/ruby/3.4.11/uri/generic.rb +0 -1592
- package/lib/ruby/3.4.11/uri/http.rb +0 -125
- package/lib/ruby/3.4.11/uri/https.rb +0 -23
- package/lib/ruby/3.4.11/uri/ldap.rb +0 -261
- package/lib/ruby/3.4.11/uri/ldaps.rb +0 -22
- package/lib/ruby/3.4.11/uri/mailto.rb +0 -293
- package/lib/ruby/3.4.11/uri/rfc2396_parser.rb +0 -546
- package/lib/ruby/3.4.11/uri/rfc3986_parser.rb +0 -206
- package/lib/ruby/3.4.11/uri/uri.gemspec +0 -42
- package/lib/ruby/3.4.11/uri/version.rb +0 -6
- package/lib/ruby/3.4.11/uri/ws.rb +0 -83
- package/lib/ruby/3.4.11/uri/wss.rb +0 -23
- package/lib/ruby/3.4.11/uri.rb +0 -104
- package/lib/ruby/3.4.11/weakref.gemspec +0 -34
- package/lib/ruby/3.4.11/weakref.rb +0 -58
- package/lib/ruby/3.4.11/yaml/dbm.rb +0 -295
- package/lib/ruby/3.4.11/yaml/store.rb +0 -98
- package/lib/ruby/3.4.11/yaml/yaml.gemspec +0 -30
- package/lib/ruby/3.4.11/yaml.rb +0 -70
|
@@ -1,1929 +0,0 @@
|
|
|
1
|
-
# frozen_string_literal: true
|
|
2
|
-
# :markup: markdown
|
|
3
|
-
|
|
4
|
-
begin
|
|
5
|
-
require "ruby_parser"
|
|
6
|
-
rescue LoadError
|
|
7
|
-
warn(%q{Error: Unable to load ruby_parser. Add `gem "ruby_parser"` to your Gemfile.})
|
|
8
|
-
exit(1)
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
module Prism
|
|
12
|
-
module Translation
|
|
13
|
-
# This module is the entry-point for converting a prism syntax tree into the
|
|
14
|
-
# seattlerb/ruby_parser gem's syntax tree.
|
|
15
|
-
class RubyParser
|
|
16
|
-
# A prism visitor that builds Sexp objects.
|
|
17
|
-
class Compiler < ::Prism::Compiler
|
|
18
|
-
# This is the name of the file that we are compiling. We set it on every
|
|
19
|
-
# Sexp object that is generated, and also use it to compile `__FILE__`
|
|
20
|
-
# nodes.
|
|
21
|
-
attr_reader :file
|
|
22
|
-
|
|
23
|
-
# Class variables will change their type based on if they are inside of
|
|
24
|
-
# a method definition or not, so we need to track that state.
|
|
25
|
-
attr_reader :in_def
|
|
26
|
-
|
|
27
|
-
# Some nodes will change their representation if they are inside of a
|
|
28
|
-
# pattern, so we need to track that state.
|
|
29
|
-
attr_reader :in_pattern
|
|
30
|
-
|
|
31
|
-
# Initialize a new compiler with the given file name.
|
|
32
|
-
def initialize(file, in_def: false, in_pattern: false)
|
|
33
|
-
@file = file
|
|
34
|
-
@in_def = in_def
|
|
35
|
-
@in_pattern = in_pattern
|
|
36
|
-
end
|
|
37
|
-
|
|
38
|
-
# ```
|
|
39
|
-
# alias foo bar
|
|
40
|
-
# ^^^^^^^^^^^^^
|
|
41
|
-
# ```
|
|
42
|
-
def visit_alias_method_node(node)
|
|
43
|
-
s(node, :alias, visit(node.new_name), visit(node.old_name))
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
# ```
|
|
47
|
-
# alias $foo $bar
|
|
48
|
-
# ^^^^^^^^^^^^^^^
|
|
49
|
-
# ```
|
|
50
|
-
def visit_alias_global_variable_node(node)
|
|
51
|
-
s(node, :valias, node.new_name.name, node.old_name.name)
|
|
52
|
-
end
|
|
53
|
-
|
|
54
|
-
# ```
|
|
55
|
-
# foo => bar | baz
|
|
56
|
-
# ^^^^^^^^^
|
|
57
|
-
# ```
|
|
58
|
-
def visit_alternation_pattern_node(node)
|
|
59
|
-
s(node, :or, visit(node.left), visit(node.right))
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# ```
|
|
63
|
-
# a and b
|
|
64
|
-
# ^^^^^^^
|
|
65
|
-
# ```
|
|
66
|
-
def visit_and_node(node)
|
|
67
|
-
left = visit(node.left)
|
|
68
|
-
|
|
69
|
-
if left[0] == :and
|
|
70
|
-
# ruby_parser has the and keyword as right-associative as opposed to
|
|
71
|
-
# prism which has it as left-associative. We reverse that
|
|
72
|
-
# associativity here.
|
|
73
|
-
nest = left
|
|
74
|
-
nest = nest[2] while nest[2][0] == :and
|
|
75
|
-
nest[2] = s(node, :and, nest[2], visit(node.right))
|
|
76
|
-
left
|
|
77
|
-
else
|
|
78
|
-
s(node, :and, left, visit(node.right))
|
|
79
|
-
end
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
# ```
|
|
83
|
-
# []
|
|
84
|
-
# ^^
|
|
85
|
-
# ```
|
|
86
|
-
def visit_array_node(node)
|
|
87
|
-
if in_pattern
|
|
88
|
-
s(node, :array_pat, nil).concat(visit_all(node.elements))
|
|
89
|
-
else
|
|
90
|
-
s(node, :array).concat(visit_all(node.elements))
|
|
91
|
-
end
|
|
92
|
-
end
|
|
93
|
-
|
|
94
|
-
# ```
|
|
95
|
-
# foo => [bar]
|
|
96
|
-
# ^^^^^
|
|
97
|
-
# ```
|
|
98
|
-
def visit_array_pattern_node(node)
|
|
99
|
-
if node.constant.nil? && node.requireds.empty? && node.rest.nil? && node.posts.empty?
|
|
100
|
-
s(node, :array_pat)
|
|
101
|
-
else
|
|
102
|
-
result = s(node, :array_pat, visit_pattern_constant(node.constant)).concat(visit_all(node.requireds))
|
|
103
|
-
|
|
104
|
-
case node.rest
|
|
105
|
-
when SplatNode
|
|
106
|
-
result << :"*#{node.rest.expression&.name}"
|
|
107
|
-
when ImplicitRestNode
|
|
108
|
-
result << :*
|
|
109
|
-
|
|
110
|
-
# This doesn't make any sense at all, but since we're trying to
|
|
111
|
-
# replicate the behavior directly, we'll copy it.
|
|
112
|
-
result.line(666)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
result.concat(visit_all(node.posts))
|
|
116
|
-
end
|
|
117
|
-
end
|
|
118
|
-
|
|
119
|
-
# ```
|
|
120
|
-
# foo(bar)
|
|
121
|
-
# ^^^
|
|
122
|
-
# ```
|
|
123
|
-
def visit_arguments_node(node)
|
|
124
|
-
raise "Cannot visit arguments directly"
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
# ```
|
|
128
|
-
# { a: 1 }
|
|
129
|
-
# ^^^^
|
|
130
|
-
# ```
|
|
131
|
-
def visit_assoc_node(node)
|
|
132
|
-
[visit(node.key), visit(node.value)]
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
# ```
|
|
136
|
-
# def foo(**); bar(**); end
|
|
137
|
-
# ^^
|
|
138
|
-
#
|
|
139
|
-
# { **foo }
|
|
140
|
-
# ^^^^^
|
|
141
|
-
# ```
|
|
142
|
-
def visit_assoc_splat_node(node)
|
|
143
|
-
if node.value.nil?
|
|
144
|
-
[s(node, :kwsplat)]
|
|
145
|
-
else
|
|
146
|
-
[s(node, :kwsplat, visit(node.value))]
|
|
147
|
-
end
|
|
148
|
-
end
|
|
149
|
-
|
|
150
|
-
# ```
|
|
151
|
-
# $+
|
|
152
|
-
# ^^
|
|
153
|
-
# ```
|
|
154
|
-
def visit_back_reference_read_node(node)
|
|
155
|
-
s(node, :back_ref, node.name.to_s.delete_prefix("$").to_sym)
|
|
156
|
-
end
|
|
157
|
-
|
|
158
|
-
# ```
|
|
159
|
-
# begin end
|
|
160
|
-
# ^^^^^^^^^
|
|
161
|
-
# ```
|
|
162
|
-
def visit_begin_node(node)
|
|
163
|
-
result = node.statements.nil? ? s(node, :nil) : visit(node.statements)
|
|
164
|
-
|
|
165
|
-
if !node.rescue_clause.nil?
|
|
166
|
-
if !node.statements.nil?
|
|
167
|
-
result = s(node.statements, :rescue, result, visit(node.rescue_clause))
|
|
168
|
-
else
|
|
169
|
-
result = s(node.rescue_clause, :rescue, visit(node.rescue_clause))
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
current = node.rescue_clause
|
|
173
|
-
until (current = current.subsequent).nil?
|
|
174
|
-
result << visit(current)
|
|
175
|
-
end
|
|
176
|
-
end
|
|
177
|
-
|
|
178
|
-
if !node.else_clause&.statements.nil?
|
|
179
|
-
result << visit(node.else_clause)
|
|
180
|
-
end
|
|
181
|
-
|
|
182
|
-
if !node.ensure_clause.nil?
|
|
183
|
-
if !node.statements.nil? || !node.rescue_clause.nil? || !node.else_clause.nil?
|
|
184
|
-
result = s(node.statements || node.rescue_clause || node.else_clause || node.ensure_clause, :ensure, result, visit(node.ensure_clause))
|
|
185
|
-
else
|
|
186
|
-
result = s(node.ensure_clause, :ensure, visit(node.ensure_clause))
|
|
187
|
-
end
|
|
188
|
-
end
|
|
189
|
-
|
|
190
|
-
result
|
|
191
|
-
end
|
|
192
|
-
|
|
193
|
-
# ```
|
|
194
|
-
# foo(&bar)
|
|
195
|
-
# ^^^^
|
|
196
|
-
# ```
|
|
197
|
-
def visit_block_argument_node(node)
|
|
198
|
-
s(node, :block_pass).tap do |result|
|
|
199
|
-
result << visit(node.expression) unless node.expression.nil?
|
|
200
|
-
end
|
|
201
|
-
end
|
|
202
|
-
|
|
203
|
-
# ```
|
|
204
|
-
# foo { |; bar| }
|
|
205
|
-
# ^^^
|
|
206
|
-
# ```
|
|
207
|
-
def visit_block_local_variable_node(node)
|
|
208
|
-
node.name
|
|
209
|
-
end
|
|
210
|
-
|
|
211
|
-
# A block on a keyword or method call.
|
|
212
|
-
def visit_block_node(node)
|
|
213
|
-
s(node, :block_pass, visit(node.expression))
|
|
214
|
-
end
|
|
215
|
-
|
|
216
|
-
# ```
|
|
217
|
-
# def foo(&bar); end
|
|
218
|
-
# ^^^^
|
|
219
|
-
# ```
|
|
220
|
-
def visit_block_parameter_node(node)
|
|
221
|
-
:"&#{node.name}"
|
|
222
|
-
end
|
|
223
|
-
|
|
224
|
-
# A block's parameters.
|
|
225
|
-
def visit_block_parameters_node(node)
|
|
226
|
-
# If this block parameters has no parameters and is using pipes, then
|
|
227
|
-
# it inherits its location from its shadow locals, even if they're not
|
|
228
|
-
# on the same lines as the pipes.
|
|
229
|
-
shadow_loc = true
|
|
230
|
-
|
|
231
|
-
result =
|
|
232
|
-
if node.parameters.nil?
|
|
233
|
-
s(node, :args)
|
|
234
|
-
else
|
|
235
|
-
shadow_loc = false
|
|
236
|
-
visit(node.parameters)
|
|
237
|
-
end
|
|
238
|
-
|
|
239
|
-
if node.opening == "("
|
|
240
|
-
result.line = node.opening_loc.start_line
|
|
241
|
-
result.line_max = node.closing_loc.end_line
|
|
242
|
-
shadow_loc = false
|
|
243
|
-
end
|
|
244
|
-
|
|
245
|
-
if node.locals.any?
|
|
246
|
-
shadow = s(node, :shadow).concat(visit_all(node.locals))
|
|
247
|
-
shadow.line = node.locals.first.location.start_line
|
|
248
|
-
shadow.line_max = node.locals.last.location.end_line
|
|
249
|
-
result << shadow
|
|
250
|
-
|
|
251
|
-
if shadow_loc
|
|
252
|
-
result.line = shadow.line
|
|
253
|
-
result.line_max = shadow.line_max
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
result
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
# ```
|
|
261
|
-
# break
|
|
262
|
-
# ^^^^^
|
|
263
|
-
#
|
|
264
|
-
# break foo
|
|
265
|
-
# ^^^^^^^^^
|
|
266
|
-
# ```
|
|
267
|
-
def visit_break_node(node)
|
|
268
|
-
if node.arguments.nil?
|
|
269
|
-
s(node, :break)
|
|
270
|
-
elsif node.arguments.arguments.length == 1
|
|
271
|
-
s(node, :break, visit(node.arguments.arguments.first))
|
|
272
|
-
else
|
|
273
|
-
s(node, :break, s(node.arguments, :array).concat(visit_all(node.arguments.arguments)))
|
|
274
|
-
end
|
|
275
|
-
end
|
|
276
|
-
|
|
277
|
-
# ```
|
|
278
|
-
# foo
|
|
279
|
-
# ^^^
|
|
280
|
-
#
|
|
281
|
-
# foo.bar
|
|
282
|
-
# ^^^^^^^
|
|
283
|
-
#
|
|
284
|
-
# foo.bar() {}
|
|
285
|
-
# ^^^^^^^^^^^^
|
|
286
|
-
# ```
|
|
287
|
-
def visit_call_node(node)
|
|
288
|
-
case node.name
|
|
289
|
-
when :!~
|
|
290
|
-
return s(node, :not, visit(node.copy(name: :"=~")))
|
|
291
|
-
when :=~
|
|
292
|
-
if node.arguments&.arguments&.length == 1 && node.block.nil?
|
|
293
|
-
case node.receiver
|
|
294
|
-
when StringNode
|
|
295
|
-
return s(node, :match3, visit(node.arguments.arguments.first), visit(node.receiver))
|
|
296
|
-
when RegularExpressionNode, InterpolatedRegularExpressionNode
|
|
297
|
-
return s(node, :match2, visit(node.receiver), visit(node.arguments.arguments.first))
|
|
298
|
-
end
|
|
299
|
-
|
|
300
|
-
case node.arguments.arguments.first
|
|
301
|
-
when RegularExpressionNode, InterpolatedRegularExpressionNode
|
|
302
|
-
return s(node, :match3, visit(node.arguments.arguments.first), visit(node.receiver))
|
|
303
|
-
end
|
|
304
|
-
end
|
|
305
|
-
end
|
|
306
|
-
|
|
307
|
-
type = node.attribute_write? ? :attrasgn : :call
|
|
308
|
-
type = :"safe_#{type}" if node.safe_navigation?
|
|
309
|
-
|
|
310
|
-
arguments = node.arguments&.arguments || []
|
|
311
|
-
write_value = arguments.pop if type == :attrasgn
|
|
312
|
-
block = node.block
|
|
313
|
-
|
|
314
|
-
if block.is_a?(BlockArgumentNode)
|
|
315
|
-
arguments << block
|
|
316
|
-
block = nil
|
|
317
|
-
end
|
|
318
|
-
|
|
319
|
-
result = s(node, type, visit(node.receiver), node.name).concat(visit_all(arguments))
|
|
320
|
-
result << visit_write_value(write_value) unless write_value.nil?
|
|
321
|
-
|
|
322
|
-
visit_block(node, result, block)
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
# ```
|
|
326
|
-
# foo.bar += baz
|
|
327
|
-
# ^^^^^^^^^^^^^^^
|
|
328
|
-
# ```
|
|
329
|
-
def visit_call_operator_write_node(node)
|
|
330
|
-
if op_asgn?(node)
|
|
331
|
-
s(node, op_asgn_type(node, :op_asgn), visit(node.receiver), visit_write_value(node.value), node.read_name, node.binary_operator)
|
|
332
|
-
else
|
|
333
|
-
s(node, op_asgn_type(node, :op_asgn2), visit(node.receiver), node.write_name, node.binary_operator, visit_write_value(node.value))
|
|
334
|
-
end
|
|
335
|
-
end
|
|
336
|
-
|
|
337
|
-
# ```
|
|
338
|
-
# foo.bar &&= baz
|
|
339
|
-
# ^^^^^^^^^^^^^^^
|
|
340
|
-
# ```
|
|
341
|
-
def visit_call_and_write_node(node)
|
|
342
|
-
if op_asgn?(node)
|
|
343
|
-
s(node, op_asgn_type(node, :op_asgn), visit(node.receiver), visit_write_value(node.value), node.read_name, :"&&")
|
|
344
|
-
else
|
|
345
|
-
s(node, op_asgn_type(node, :op_asgn2), visit(node.receiver), node.write_name, :"&&", visit_write_value(node.value))
|
|
346
|
-
end
|
|
347
|
-
end
|
|
348
|
-
|
|
349
|
-
# ```
|
|
350
|
-
# foo.bar ||= baz
|
|
351
|
-
# ^^^^^^^^^^^^^^^
|
|
352
|
-
# ```
|
|
353
|
-
def visit_call_or_write_node(node)
|
|
354
|
-
if op_asgn?(node)
|
|
355
|
-
s(node, op_asgn_type(node, :op_asgn), visit(node.receiver), visit_write_value(node.value), node.read_name, :"||")
|
|
356
|
-
else
|
|
357
|
-
s(node, op_asgn_type(node, :op_asgn2), visit(node.receiver), node.write_name, :"||", visit_write_value(node.value))
|
|
358
|
-
end
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
# Call nodes with operators following them will either be op_asgn or
|
|
362
|
-
# op_asgn2 nodes. That is determined by their call operator and their
|
|
363
|
-
# right-hand side.
|
|
364
|
-
private def op_asgn?(node)
|
|
365
|
-
node.call_operator == "::" || (node.value.is_a?(CallNode) && node.value.opening_loc.nil? && !node.value.arguments.nil?)
|
|
366
|
-
end
|
|
367
|
-
|
|
368
|
-
# Call nodes with operators following them can use &. as an operator,
|
|
369
|
-
# which changes their type by prefixing "safe_".
|
|
370
|
-
private def op_asgn_type(node, type)
|
|
371
|
-
node.safe_navigation? ? :"safe_#{type}" : type
|
|
372
|
-
end
|
|
373
|
-
|
|
374
|
-
# ```
|
|
375
|
-
# foo.bar, = 1
|
|
376
|
-
# ^^^^^^^
|
|
377
|
-
# ```
|
|
378
|
-
def visit_call_target_node(node)
|
|
379
|
-
s(node, :attrasgn, visit(node.receiver), node.name)
|
|
380
|
-
end
|
|
381
|
-
|
|
382
|
-
# ```
|
|
383
|
-
# foo => bar => baz
|
|
384
|
-
# ^^^^^^^^^^
|
|
385
|
-
# ```
|
|
386
|
-
def visit_capture_pattern_node(node)
|
|
387
|
-
visit(node.target) << visit(node.value)
|
|
388
|
-
end
|
|
389
|
-
|
|
390
|
-
# ```
|
|
391
|
-
# case foo; when bar; end
|
|
392
|
-
# ^^^^^^^^^^^^^^^^^^^^^^^
|
|
393
|
-
# ```
|
|
394
|
-
def visit_case_node(node)
|
|
395
|
-
s(node, :case, visit(node.predicate)).concat(visit_all(node.conditions)) << visit(node.else_clause)
|
|
396
|
-
end
|
|
397
|
-
|
|
398
|
-
# ```
|
|
399
|
-
# case foo; in bar; end
|
|
400
|
-
# ^^^^^^^^^^^^^^^^^^^^^
|
|
401
|
-
# ```
|
|
402
|
-
def visit_case_match_node(node)
|
|
403
|
-
s(node, :case, visit(node.predicate)).concat(visit_all(node.conditions)) << visit(node.else_clause)
|
|
404
|
-
end
|
|
405
|
-
|
|
406
|
-
# ```
|
|
407
|
-
# class Foo; end
|
|
408
|
-
# ^^^^^^^^^^^^^^
|
|
409
|
-
# ```
|
|
410
|
-
def visit_class_node(node)
|
|
411
|
-
name =
|
|
412
|
-
if node.constant_path.is_a?(ConstantReadNode)
|
|
413
|
-
node.name
|
|
414
|
-
else
|
|
415
|
-
visit(node.constant_path)
|
|
416
|
-
end
|
|
417
|
-
|
|
418
|
-
if node.body.nil?
|
|
419
|
-
s(node, :class, name, visit(node.superclass))
|
|
420
|
-
elsif node.body.is_a?(StatementsNode)
|
|
421
|
-
compiler = copy_compiler(in_def: false)
|
|
422
|
-
s(node, :class, name, visit(node.superclass)).concat(node.body.body.map { |child| child.accept(compiler) })
|
|
423
|
-
else
|
|
424
|
-
s(node, :class, name, visit(node.superclass), node.body.accept(copy_compiler(in_def: false)))
|
|
425
|
-
end
|
|
426
|
-
end
|
|
427
|
-
|
|
428
|
-
# ```
|
|
429
|
-
# @@foo
|
|
430
|
-
# ^^^^^
|
|
431
|
-
# ```
|
|
432
|
-
def visit_class_variable_read_node(node)
|
|
433
|
-
s(node, :cvar, node.name)
|
|
434
|
-
end
|
|
435
|
-
|
|
436
|
-
# ```
|
|
437
|
-
# @@foo = 1
|
|
438
|
-
# ^^^^^^^^^
|
|
439
|
-
#
|
|
440
|
-
# @@foo, @@bar = 1
|
|
441
|
-
# ^^^^^ ^^^^^
|
|
442
|
-
# ```
|
|
443
|
-
def visit_class_variable_write_node(node)
|
|
444
|
-
s(node, class_variable_write_type, node.name, visit_write_value(node.value))
|
|
445
|
-
end
|
|
446
|
-
|
|
447
|
-
# ```
|
|
448
|
-
# @@foo += bar
|
|
449
|
-
# ^^^^^^^^^^^^
|
|
450
|
-
# ```
|
|
451
|
-
def visit_class_variable_operator_write_node(node)
|
|
452
|
-
s(node, class_variable_write_type, node.name, s(node, :call, s(node, :cvar, node.name), node.binary_operator, visit_write_value(node.value)))
|
|
453
|
-
end
|
|
454
|
-
|
|
455
|
-
# ```
|
|
456
|
-
# @@foo &&= bar
|
|
457
|
-
# ^^^^^^^^^^^^^
|
|
458
|
-
# ```
|
|
459
|
-
def visit_class_variable_and_write_node(node)
|
|
460
|
-
s(node, :op_asgn_and, s(node, :cvar, node.name), s(node, class_variable_write_type, node.name, visit_write_value(node.value)))
|
|
461
|
-
end
|
|
462
|
-
|
|
463
|
-
# ```
|
|
464
|
-
# @@foo ||= bar
|
|
465
|
-
# ^^^^^^^^^^^^^
|
|
466
|
-
# ```
|
|
467
|
-
def visit_class_variable_or_write_node(node)
|
|
468
|
-
s(node, :op_asgn_or, s(node, :cvar, node.name), s(node, class_variable_write_type, node.name, visit_write_value(node.value)))
|
|
469
|
-
end
|
|
470
|
-
|
|
471
|
-
# ```
|
|
472
|
-
# @@foo, = bar
|
|
473
|
-
# ^^^^^
|
|
474
|
-
# ```
|
|
475
|
-
def visit_class_variable_target_node(node)
|
|
476
|
-
s(node, class_variable_write_type, node.name)
|
|
477
|
-
end
|
|
478
|
-
|
|
479
|
-
# If a class variable is written within a method definition, it has a
|
|
480
|
-
# different type than everywhere else.
|
|
481
|
-
private def class_variable_write_type
|
|
482
|
-
in_def ? :cvasgn : :cvdecl
|
|
483
|
-
end
|
|
484
|
-
|
|
485
|
-
# ```
|
|
486
|
-
# Foo
|
|
487
|
-
# ^^^
|
|
488
|
-
# ```
|
|
489
|
-
def visit_constant_read_node(node)
|
|
490
|
-
s(node, :const, node.name)
|
|
491
|
-
end
|
|
492
|
-
|
|
493
|
-
# ```
|
|
494
|
-
# Foo = 1
|
|
495
|
-
# ^^^^^^^
|
|
496
|
-
#
|
|
497
|
-
# Foo, Bar = 1
|
|
498
|
-
# ^^^ ^^^
|
|
499
|
-
# ```
|
|
500
|
-
def visit_constant_write_node(node)
|
|
501
|
-
s(node, :cdecl, node.name, visit_write_value(node.value))
|
|
502
|
-
end
|
|
503
|
-
|
|
504
|
-
# ```
|
|
505
|
-
# Foo += bar
|
|
506
|
-
# ^^^^^^^^^^^
|
|
507
|
-
# ```
|
|
508
|
-
def visit_constant_operator_write_node(node)
|
|
509
|
-
s(node, :cdecl, node.name, s(node, :call, s(node, :const, node.name), node.binary_operator, visit_write_value(node.value)))
|
|
510
|
-
end
|
|
511
|
-
|
|
512
|
-
# ```
|
|
513
|
-
# Foo &&= bar
|
|
514
|
-
# ^^^^^^^^^^^^
|
|
515
|
-
# ```
|
|
516
|
-
def visit_constant_and_write_node(node)
|
|
517
|
-
s(node, :op_asgn_and, s(node, :const, node.name), s(node, :cdecl, node.name, visit(node.value)))
|
|
518
|
-
end
|
|
519
|
-
|
|
520
|
-
# ```
|
|
521
|
-
# Foo ||= bar
|
|
522
|
-
# ^^^^^^^^^^^^
|
|
523
|
-
# ```
|
|
524
|
-
def visit_constant_or_write_node(node)
|
|
525
|
-
s(node, :op_asgn_or, s(node, :const, node.name), s(node, :cdecl, node.name, visit(node.value)))
|
|
526
|
-
end
|
|
527
|
-
|
|
528
|
-
# ```
|
|
529
|
-
# Foo, = bar
|
|
530
|
-
# ^^^
|
|
531
|
-
# ```
|
|
532
|
-
def visit_constant_target_node(node)
|
|
533
|
-
s(node, :cdecl, node.name)
|
|
534
|
-
end
|
|
535
|
-
|
|
536
|
-
# ```
|
|
537
|
-
# Foo::Bar
|
|
538
|
-
# ^^^^^^^^
|
|
539
|
-
# ```
|
|
540
|
-
def visit_constant_path_node(node)
|
|
541
|
-
if node.parent.nil?
|
|
542
|
-
s(node, :colon3, node.name)
|
|
543
|
-
else
|
|
544
|
-
s(node, :colon2, visit(node.parent), node.name)
|
|
545
|
-
end
|
|
546
|
-
end
|
|
547
|
-
|
|
548
|
-
# ```
|
|
549
|
-
# Foo::Bar = 1
|
|
550
|
-
# ^^^^^^^^^^^^
|
|
551
|
-
#
|
|
552
|
-
# Foo::Foo, Bar::Bar = 1
|
|
553
|
-
# ^^^^^^^^ ^^^^^^^^
|
|
554
|
-
# ```
|
|
555
|
-
def visit_constant_path_write_node(node)
|
|
556
|
-
s(node, :cdecl, visit(node.target), visit_write_value(node.value))
|
|
557
|
-
end
|
|
558
|
-
|
|
559
|
-
# ```
|
|
560
|
-
# Foo::Bar += baz
|
|
561
|
-
# ^^^^^^^^^^^^^^^
|
|
562
|
-
# ```
|
|
563
|
-
def visit_constant_path_operator_write_node(node)
|
|
564
|
-
s(node, :op_asgn, visit(node.target), node.binary_operator, visit_write_value(node.value))
|
|
565
|
-
end
|
|
566
|
-
|
|
567
|
-
# ```
|
|
568
|
-
# Foo::Bar &&= baz
|
|
569
|
-
# ^^^^^^^^^^^^^^^^
|
|
570
|
-
# ```
|
|
571
|
-
def visit_constant_path_and_write_node(node)
|
|
572
|
-
s(node, :op_asgn_and, visit(node.target), visit_write_value(node.value))
|
|
573
|
-
end
|
|
574
|
-
|
|
575
|
-
# ```
|
|
576
|
-
# Foo::Bar ||= baz
|
|
577
|
-
# ^^^^^^^^^^^^^^^^
|
|
578
|
-
# ```
|
|
579
|
-
def visit_constant_path_or_write_node(node)
|
|
580
|
-
s(node, :op_asgn_or, visit(node.target), visit_write_value(node.value))
|
|
581
|
-
end
|
|
582
|
-
|
|
583
|
-
# ```
|
|
584
|
-
# Foo::Bar, = baz
|
|
585
|
-
# ^^^^^^^^
|
|
586
|
-
# ```
|
|
587
|
-
def visit_constant_path_target_node(node)
|
|
588
|
-
inner =
|
|
589
|
-
if node.parent.nil?
|
|
590
|
-
s(node, :colon3, node.name)
|
|
591
|
-
else
|
|
592
|
-
s(node, :colon2, visit(node.parent), node.name)
|
|
593
|
-
end
|
|
594
|
-
|
|
595
|
-
s(node, :const, inner)
|
|
596
|
-
end
|
|
597
|
-
|
|
598
|
-
# ```
|
|
599
|
-
# def foo; end
|
|
600
|
-
# ^^^^^^^^^^^^
|
|
601
|
-
#
|
|
602
|
-
# def self.foo; end
|
|
603
|
-
# ^^^^^^^^^^^^^^^^^
|
|
604
|
-
# ```
|
|
605
|
-
def visit_def_node(node)
|
|
606
|
-
name = node.name_loc.slice.to_sym
|
|
607
|
-
result =
|
|
608
|
-
if node.receiver.nil?
|
|
609
|
-
s(node, :defn, name)
|
|
610
|
-
else
|
|
611
|
-
s(node, :defs, visit(node.receiver), name)
|
|
612
|
-
end
|
|
613
|
-
|
|
614
|
-
result.line(node.name_loc.start_line)
|
|
615
|
-
if node.parameters.nil?
|
|
616
|
-
result << s(node, :args).line(node.name_loc.start_line)
|
|
617
|
-
else
|
|
618
|
-
result << visit(node.parameters)
|
|
619
|
-
end
|
|
620
|
-
|
|
621
|
-
if node.body.nil?
|
|
622
|
-
result << s(node, :nil)
|
|
623
|
-
elsif node.body.is_a?(StatementsNode)
|
|
624
|
-
compiler = copy_compiler(in_def: true)
|
|
625
|
-
result.concat(node.body.body.map { |child| child.accept(compiler) })
|
|
626
|
-
else
|
|
627
|
-
result << node.body.accept(copy_compiler(in_def: true))
|
|
628
|
-
end
|
|
629
|
-
end
|
|
630
|
-
|
|
631
|
-
# ```
|
|
632
|
-
# defined? a
|
|
633
|
-
# ^^^^^^^^^^
|
|
634
|
-
#
|
|
635
|
-
# defined?(a)
|
|
636
|
-
# ^^^^^^^^^^^
|
|
637
|
-
# ```
|
|
638
|
-
def visit_defined_node(node)
|
|
639
|
-
s(node, :defined, visit(node.value))
|
|
640
|
-
end
|
|
641
|
-
|
|
642
|
-
# ```
|
|
643
|
-
# if foo then bar else baz end
|
|
644
|
-
# ^^^^^^^^^^^^
|
|
645
|
-
# ```
|
|
646
|
-
def visit_else_node(node)
|
|
647
|
-
visit(node.statements)
|
|
648
|
-
end
|
|
649
|
-
|
|
650
|
-
# ```
|
|
651
|
-
# "foo #{bar}"
|
|
652
|
-
# ^^^^^^
|
|
653
|
-
# ```
|
|
654
|
-
def visit_embedded_statements_node(node)
|
|
655
|
-
result = s(node, :evstr)
|
|
656
|
-
result << visit(node.statements) unless node.statements.nil?
|
|
657
|
-
result
|
|
658
|
-
end
|
|
659
|
-
|
|
660
|
-
# ```
|
|
661
|
-
# "foo #@bar"
|
|
662
|
-
# ^^^^^
|
|
663
|
-
# ```
|
|
664
|
-
def visit_embedded_variable_node(node)
|
|
665
|
-
s(node, :evstr, visit(node.variable))
|
|
666
|
-
end
|
|
667
|
-
|
|
668
|
-
# ```
|
|
669
|
-
# begin; foo; ensure; bar; end
|
|
670
|
-
# ^^^^^^^^^^^^
|
|
671
|
-
# ```
|
|
672
|
-
def visit_ensure_node(node)
|
|
673
|
-
node.statements.nil? ? s(node, :nil) : visit(node.statements)
|
|
674
|
-
end
|
|
675
|
-
|
|
676
|
-
# ```
|
|
677
|
-
# false
|
|
678
|
-
# ^^^^^
|
|
679
|
-
# ```
|
|
680
|
-
def visit_false_node(node)
|
|
681
|
-
s(node, :false)
|
|
682
|
-
end
|
|
683
|
-
|
|
684
|
-
# ```
|
|
685
|
-
# foo => [*, bar, *]
|
|
686
|
-
# ^^^^^^^^^^^
|
|
687
|
-
# ```
|
|
688
|
-
def visit_find_pattern_node(node)
|
|
689
|
-
s(node, :find_pat, visit_pattern_constant(node.constant), :"*#{node.left.expression&.name}", *visit_all(node.requireds), :"*#{node.right.expression&.name}")
|
|
690
|
-
end
|
|
691
|
-
|
|
692
|
-
# ```
|
|
693
|
-
# if foo .. bar; end
|
|
694
|
-
# ^^^^^^^^^^
|
|
695
|
-
# ```
|
|
696
|
-
def visit_flip_flop_node(node)
|
|
697
|
-
if node.left.is_a?(IntegerNode) && node.right.is_a?(IntegerNode)
|
|
698
|
-
s(node, :lit, Range.new(node.left.value, node.right.value, node.exclude_end?))
|
|
699
|
-
else
|
|
700
|
-
s(node, node.exclude_end? ? :flip3 : :flip2, visit(node.left), visit(node.right))
|
|
701
|
-
end
|
|
702
|
-
end
|
|
703
|
-
|
|
704
|
-
# ```
|
|
705
|
-
# 1.0
|
|
706
|
-
# ^^^
|
|
707
|
-
# ```
|
|
708
|
-
def visit_float_node(node)
|
|
709
|
-
s(node, :lit, node.value)
|
|
710
|
-
end
|
|
711
|
-
|
|
712
|
-
# ```
|
|
713
|
-
# for foo in bar do end
|
|
714
|
-
# ^^^^^^^^^^^^^^^^^^^^^
|
|
715
|
-
# ```
|
|
716
|
-
def visit_for_node(node)
|
|
717
|
-
s(node, :for, visit(node.collection), visit(node.index), visit(node.statements))
|
|
718
|
-
end
|
|
719
|
-
|
|
720
|
-
# ```
|
|
721
|
-
# def foo(...); bar(...); end
|
|
722
|
-
# ^^^
|
|
723
|
-
# ```
|
|
724
|
-
def visit_forwarding_arguments_node(node)
|
|
725
|
-
s(node, :forward_args)
|
|
726
|
-
end
|
|
727
|
-
|
|
728
|
-
# ```
|
|
729
|
-
# def foo(...); end
|
|
730
|
-
# ^^^
|
|
731
|
-
# ```
|
|
732
|
-
def visit_forwarding_parameter_node(node)
|
|
733
|
-
s(node, :forward_args)
|
|
734
|
-
end
|
|
735
|
-
|
|
736
|
-
# ```
|
|
737
|
-
# super
|
|
738
|
-
# ^^^^^
|
|
739
|
-
#
|
|
740
|
-
# super {}
|
|
741
|
-
# ^^^^^^^^
|
|
742
|
-
# ```
|
|
743
|
-
def visit_forwarding_super_node(node)
|
|
744
|
-
visit_block(node, s(node, :zsuper), node.block)
|
|
745
|
-
end
|
|
746
|
-
|
|
747
|
-
# ```
|
|
748
|
-
# $foo
|
|
749
|
-
# ^^^^
|
|
750
|
-
# ```
|
|
751
|
-
def visit_global_variable_read_node(node)
|
|
752
|
-
s(node, :gvar, node.name)
|
|
753
|
-
end
|
|
754
|
-
|
|
755
|
-
# ```
|
|
756
|
-
# $foo = 1
|
|
757
|
-
# ^^^^^^^^
|
|
758
|
-
#
|
|
759
|
-
# $foo, $bar = 1
|
|
760
|
-
# ^^^^ ^^^^
|
|
761
|
-
# ```
|
|
762
|
-
def visit_global_variable_write_node(node)
|
|
763
|
-
s(node, :gasgn, node.name, visit_write_value(node.value))
|
|
764
|
-
end
|
|
765
|
-
|
|
766
|
-
# ```
|
|
767
|
-
# $foo += bar
|
|
768
|
-
# ^^^^^^^^^^^
|
|
769
|
-
# ```
|
|
770
|
-
def visit_global_variable_operator_write_node(node)
|
|
771
|
-
s(node, :gasgn, node.name, s(node, :call, s(node, :gvar, node.name), node.binary_operator, visit(node.value)))
|
|
772
|
-
end
|
|
773
|
-
|
|
774
|
-
# ```
|
|
775
|
-
# $foo &&= bar
|
|
776
|
-
# ^^^^^^^^^^^^
|
|
777
|
-
# ```
|
|
778
|
-
def visit_global_variable_and_write_node(node)
|
|
779
|
-
s(node, :op_asgn_and, s(node, :gvar, node.name), s(node, :gasgn, node.name, visit_write_value(node.value)))
|
|
780
|
-
end
|
|
781
|
-
|
|
782
|
-
# ```
|
|
783
|
-
# $foo ||= bar
|
|
784
|
-
# ^^^^^^^^^^^^
|
|
785
|
-
# ```
|
|
786
|
-
def visit_global_variable_or_write_node(node)
|
|
787
|
-
s(node, :op_asgn_or, s(node, :gvar, node.name), s(node, :gasgn, node.name, visit_write_value(node.value)))
|
|
788
|
-
end
|
|
789
|
-
|
|
790
|
-
# ```
|
|
791
|
-
# $foo, = bar
|
|
792
|
-
# ^^^^
|
|
793
|
-
# ```
|
|
794
|
-
def visit_global_variable_target_node(node)
|
|
795
|
-
s(node, :gasgn, node.name)
|
|
796
|
-
end
|
|
797
|
-
|
|
798
|
-
# ```
|
|
799
|
-
# {}
|
|
800
|
-
# ^^
|
|
801
|
-
# ```
|
|
802
|
-
def visit_hash_node(node)
|
|
803
|
-
s(node, :hash).concat(node.elements.flat_map { |element| visit(element) })
|
|
804
|
-
end
|
|
805
|
-
|
|
806
|
-
# ```
|
|
807
|
-
# foo => {}
|
|
808
|
-
# ^^
|
|
809
|
-
# ```
|
|
810
|
-
def visit_hash_pattern_node(node)
|
|
811
|
-
result = s(node, :hash_pat, visit_pattern_constant(node.constant)).concat(node.elements.flat_map { |element| visit(element) })
|
|
812
|
-
|
|
813
|
-
case node.rest
|
|
814
|
-
when AssocSplatNode
|
|
815
|
-
result << s(node.rest, :kwrest, :"**#{node.rest.value&.name}")
|
|
816
|
-
when NoKeywordsParameterNode
|
|
817
|
-
result << visit(node.rest)
|
|
818
|
-
end
|
|
819
|
-
|
|
820
|
-
result
|
|
821
|
-
end
|
|
822
|
-
|
|
823
|
-
# ```
|
|
824
|
-
# if foo then bar end
|
|
825
|
-
# ^^^^^^^^^^^^^^^^^^^
|
|
826
|
-
#
|
|
827
|
-
# bar if foo
|
|
828
|
-
# ^^^^^^^^^^
|
|
829
|
-
#
|
|
830
|
-
# foo ? bar : baz
|
|
831
|
-
# ^^^^^^^^^^^^^^^
|
|
832
|
-
# ```
|
|
833
|
-
def visit_if_node(node)
|
|
834
|
-
s(node, :if, visit(node.predicate), visit(node.statements), visit(node.subsequent))
|
|
835
|
-
end
|
|
836
|
-
|
|
837
|
-
# 1i
|
|
838
|
-
def visit_imaginary_node(node)
|
|
839
|
-
s(node, :lit, node.value)
|
|
840
|
-
end
|
|
841
|
-
|
|
842
|
-
# ```
|
|
843
|
-
# { foo: }
|
|
844
|
-
# ^^^^
|
|
845
|
-
# ```
|
|
846
|
-
def visit_implicit_node(node)
|
|
847
|
-
end
|
|
848
|
-
|
|
849
|
-
# ```
|
|
850
|
-
# foo { |bar,| }
|
|
851
|
-
# ^
|
|
852
|
-
# ```
|
|
853
|
-
def visit_implicit_rest_node(node)
|
|
854
|
-
end
|
|
855
|
-
|
|
856
|
-
# ```
|
|
857
|
-
# case foo; in bar; end
|
|
858
|
-
# ^^^^^^^^^^^^^^^^^^^^^
|
|
859
|
-
# ```
|
|
860
|
-
def visit_in_node(node)
|
|
861
|
-
pattern =
|
|
862
|
-
if node.pattern.is_a?(ConstantPathNode)
|
|
863
|
-
s(node.pattern, :const, visit(node.pattern))
|
|
864
|
-
else
|
|
865
|
-
node.pattern.accept(copy_compiler(in_pattern: true))
|
|
866
|
-
end
|
|
867
|
-
|
|
868
|
-
s(node, :in, pattern).concat(node.statements.nil? ? [nil] : visit_all(node.statements.body))
|
|
869
|
-
end
|
|
870
|
-
|
|
871
|
-
# ```
|
|
872
|
-
# foo[bar] += baz
|
|
873
|
-
# ^^^^^^^^^^^^^^^
|
|
874
|
-
# ```
|
|
875
|
-
def visit_index_operator_write_node(node)
|
|
876
|
-
arglist = nil
|
|
877
|
-
|
|
878
|
-
if !node.arguments.nil? || !node.block.nil?
|
|
879
|
-
arglist = s(node, :arglist).concat(visit_all(node.arguments&.arguments || []))
|
|
880
|
-
arglist << visit(node.block) if !node.block.nil?
|
|
881
|
-
end
|
|
882
|
-
|
|
883
|
-
s(node, :op_asgn1, visit(node.receiver), arglist, node.binary_operator, visit_write_value(node.value))
|
|
884
|
-
end
|
|
885
|
-
|
|
886
|
-
# ```
|
|
887
|
-
# foo[bar] &&= baz
|
|
888
|
-
# ^^^^^^^^^^^^^^^^
|
|
889
|
-
# ```
|
|
890
|
-
def visit_index_and_write_node(node)
|
|
891
|
-
arglist = nil
|
|
892
|
-
|
|
893
|
-
if !node.arguments.nil? || !node.block.nil?
|
|
894
|
-
arglist = s(node, :arglist).concat(visit_all(node.arguments&.arguments || []))
|
|
895
|
-
arglist << visit(node.block) if !node.block.nil?
|
|
896
|
-
end
|
|
897
|
-
|
|
898
|
-
s(node, :op_asgn1, visit(node.receiver), arglist, :"&&", visit_write_value(node.value))
|
|
899
|
-
end
|
|
900
|
-
|
|
901
|
-
# ```
|
|
902
|
-
# foo[bar] ||= baz
|
|
903
|
-
# ^^^^^^^^^^^^^^^^
|
|
904
|
-
# ```
|
|
905
|
-
def visit_index_or_write_node(node)
|
|
906
|
-
arglist = nil
|
|
907
|
-
|
|
908
|
-
if !node.arguments.nil? || !node.block.nil?
|
|
909
|
-
arglist = s(node, :arglist).concat(visit_all(node.arguments&.arguments || []))
|
|
910
|
-
arglist << visit(node.block) if !node.block.nil?
|
|
911
|
-
end
|
|
912
|
-
|
|
913
|
-
s(node, :op_asgn1, visit(node.receiver), arglist, :"||", visit_write_value(node.value))
|
|
914
|
-
end
|
|
915
|
-
|
|
916
|
-
# ```
|
|
917
|
-
# foo[bar], = 1
|
|
918
|
-
# ^^^^^^^^
|
|
919
|
-
# ```
|
|
920
|
-
def visit_index_target_node(node)
|
|
921
|
-
arguments = visit_all(node.arguments&.arguments || [])
|
|
922
|
-
arguments << visit(node.block) unless node.block.nil?
|
|
923
|
-
|
|
924
|
-
s(node, :attrasgn, visit(node.receiver), :[]=).concat(arguments)
|
|
925
|
-
end
|
|
926
|
-
|
|
927
|
-
# ```
|
|
928
|
-
# @foo
|
|
929
|
-
# ^^^^
|
|
930
|
-
# ```
|
|
931
|
-
def visit_instance_variable_read_node(node)
|
|
932
|
-
s(node, :ivar, node.name)
|
|
933
|
-
end
|
|
934
|
-
|
|
935
|
-
# ```
|
|
936
|
-
# @foo = 1
|
|
937
|
-
# ^^^^^^^^
|
|
938
|
-
#
|
|
939
|
-
# @foo, @bar = 1
|
|
940
|
-
# ^^^^ ^^^^
|
|
941
|
-
# ```
|
|
942
|
-
def visit_instance_variable_write_node(node)
|
|
943
|
-
s(node, :iasgn, node.name, visit_write_value(node.value))
|
|
944
|
-
end
|
|
945
|
-
|
|
946
|
-
# ```
|
|
947
|
-
# @foo += bar
|
|
948
|
-
# ^^^^^^^^^^^
|
|
949
|
-
# ```
|
|
950
|
-
def visit_instance_variable_operator_write_node(node)
|
|
951
|
-
s(node, :iasgn, node.name, s(node, :call, s(node, :ivar, node.name), node.binary_operator, visit_write_value(node.value)))
|
|
952
|
-
end
|
|
953
|
-
|
|
954
|
-
# ```
|
|
955
|
-
# @foo &&= bar
|
|
956
|
-
# ^^^^^^^^^^^^
|
|
957
|
-
# ```
|
|
958
|
-
def visit_instance_variable_and_write_node(node)
|
|
959
|
-
s(node, :op_asgn_and, s(node, :ivar, node.name), s(node, :iasgn, node.name, visit(node.value)))
|
|
960
|
-
end
|
|
961
|
-
|
|
962
|
-
# ```
|
|
963
|
-
# @foo ||= bar
|
|
964
|
-
# ^^^^^^^^^^^^
|
|
965
|
-
# ```
|
|
966
|
-
def visit_instance_variable_or_write_node(node)
|
|
967
|
-
s(node, :op_asgn_or, s(node, :ivar, node.name), s(node, :iasgn, node.name, visit(node.value)))
|
|
968
|
-
end
|
|
969
|
-
|
|
970
|
-
# ```
|
|
971
|
-
# @foo, = bar
|
|
972
|
-
# ^^^^
|
|
973
|
-
# ```
|
|
974
|
-
def visit_instance_variable_target_node(node)
|
|
975
|
-
s(node, :iasgn, node.name)
|
|
976
|
-
end
|
|
977
|
-
|
|
978
|
-
# ```
|
|
979
|
-
# 1
|
|
980
|
-
# ^
|
|
981
|
-
# ```
|
|
982
|
-
def visit_integer_node(node)
|
|
983
|
-
s(node, :lit, node.value)
|
|
984
|
-
end
|
|
985
|
-
|
|
986
|
-
# ```
|
|
987
|
-
# if /foo #{bar}/ then end
|
|
988
|
-
# ^^^^^^^^^^^^
|
|
989
|
-
# ```
|
|
990
|
-
def visit_interpolated_match_last_line_node(node)
|
|
991
|
-
parts = visit_interpolated_parts(node.parts)
|
|
992
|
-
regexp =
|
|
993
|
-
if parts.length == 1
|
|
994
|
-
s(node, :lit, Regexp.new(parts.first, node.options))
|
|
995
|
-
else
|
|
996
|
-
s(node, :dregx).concat(parts).tap do |result|
|
|
997
|
-
options = node.options
|
|
998
|
-
result << options if options != 0
|
|
999
|
-
end
|
|
1000
|
-
end
|
|
1001
|
-
|
|
1002
|
-
s(node, :match, regexp)
|
|
1003
|
-
end
|
|
1004
|
-
|
|
1005
|
-
# ```
|
|
1006
|
-
# /foo #{bar}/
|
|
1007
|
-
# ^^^^^^^^^^^^
|
|
1008
|
-
# ```
|
|
1009
|
-
def visit_interpolated_regular_expression_node(node)
|
|
1010
|
-
parts = visit_interpolated_parts(node.parts)
|
|
1011
|
-
|
|
1012
|
-
if parts.length == 1
|
|
1013
|
-
s(node, :lit, Regexp.new(parts.first, node.options))
|
|
1014
|
-
else
|
|
1015
|
-
s(node, :dregx).concat(parts).tap do |result|
|
|
1016
|
-
options = node.options
|
|
1017
|
-
result << options if options != 0
|
|
1018
|
-
end
|
|
1019
|
-
end
|
|
1020
|
-
end
|
|
1021
|
-
|
|
1022
|
-
# ```
|
|
1023
|
-
# "foo #{bar}"
|
|
1024
|
-
# ^^^^^^^^^^^^
|
|
1025
|
-
# ```
|
|
1026
|
-
def visit_interpolated_string_node(node)
|
|
1027
|
-
parts = visit_interpolated_parts(node.parts)
|
|
1028
|
-
parts.length == 1 ? s(node, :str, parts.first) : s(node, :dstr).concat(parts)
|
|
1029
|
-
end
|
|
1030
|
-
|
|
1031
|
-
# ```
|
|
1032
|
-
# :"foo #{bar}"
|
|
1033
|
-
# ^^^^^^^^^^^^^
|
|
1034
|
-
# ```
|
|
1035
|
-
def visit_interpolated_symbol_node(node)
|
|
1036
|
-
parts = visit_interpolated_parts(node.parts)
|
|
1037
|
-
parts.length == 1 ? s(node, :lit, parts.first.to_sym) : s(node, :dsym).concat(parts)
|
|
1038
|
-
end
|
|
1039
|
-
|
|
1040
|
-
# ```
|
|
1041
|
-
# `foo #{bar}`
|
|
1042
|
-
# ^^^^^^^^^^^^
|
|
1043
|
-
# ```
|
|
1044
|
-
def visit_interpolated_x_string_node(node)
|
|
1045
|
-
source = node.heredoc? ? node.parts.first : node
|
|
1046
|
-
parts = visit_interpolated_parts(node.parts)
|
|
1047
|
-
parts.length == 1 ? s(source, :xstr, parts.first) : s(source, :dxstr).concat(parts)
|
|
1048
|
-
end
|
|
1049
|
-
|
|
1050
|
-
# Visit the interpolated content of the string-like node.
|
|
1051
|
-
private def visit_interpolated_parts(parts)
|
|
1052
|
-
visited = []
|
|
1053
|
-
|
|
1054
|
-
parts.each do |part|
|
|
1055
|
-
result = visit(part)
|
|
1056
|
-
|
|
1057
|
-
if result[0] == :evstr && result[1]
|
|
1058
|
-
if result[1][0] == :str
|
|
1059
|
-
visited << result[1]
|
|
1060
|
-
elsif result[1][0] == :dstr
|
|
1061
|
-
visited.concat(result[1][1..-1])
|
|
1062
|
-
else
|
|
1063
|
-
visited << result
|
|
1064
|
-
end
|
|
1065
|
-
visited << :space
|
|
1066
|
-
elsif result[0] == :dstr
|
|
1067
|
-
if !visited.empty? && part.parts[0].is_a?(StringNode)
|
|
1068
|
-
# If we are in the middle of an implicitly concatenated string,
|
|
1069
|
-
# we should not have a bare string as the first part. In this
|
|
1070
|
-
# case we need to visit just that first part and then we can
|
|
1071
|
-
# push the rest of the parts onto the visited array.
|
|
1072
|
-
result[1] = visit(part.parts[0])
|
|
1073
|
-
end
|
|
1074
|
-
visited.concat(result[1..-1])
|
|
1075
|
-
else
|
|
1076
|
-
visited << result
|
|
1077
|
-
end
|
|
1078
|
-
end
|
|
1079
|
-
|
|
1080
|
-
state = :beginning #: :beginning | :string_content | :interpolated_content
|
|
1081
|
-
results = []
|
|
1082
|
-
|
|
1083
|
-
visited.each_with_index do |result, index|
|
|
1084
|
-
case state
|
|
1085
|
-
when :beginning
|
|
1086
|
-
if result.is_a?(String)
|
|
1087
|
-
results << result
|
|
1088
|
-
state = :string_content
|
|
1089
|
-
elsif result.is_a?(Array) && result[0] == :str
|
|
1090
|
-
results << result[1]
|
|
1091
|
-
state = :string_content
|
|
1092
|
-
else
|
|
1093
|
-
results << ""
|
|
1094
|
-
results << result
|
|
1095
|
-
state = :interpolated_content
|
|
1096
|
-
end
|
|
1097
|
-
when :string_content
|
|
1098
|
-
if result == :space
|
|
1099
|
-
# continue
|
|
1100
|
-
elsif result.is_a?(String)
|
|
1101
|
-
results[0] = "#{results[0]}#{result}"
|
|
1102
|
-
elsif result.is_a?(Array) && result[0] == :str
|
|
1103
|
-
results[0] = "#{results[0]}#{result[1]}"
|
|
1104
|
-
else
|
|
1105
|
-
results << result
|
|
1106
|
-
state = :interpolated_content
|
|
1107
|
-
end
|
|
1108
|
-
when :interpolated_content
|
|
1109
|
-
if result == :space
|
|
1110
|
-
# continue
|
|
1111
|
-
elsif visited[index - 1] != :space && result.is_a?(Array) && result[0] == :str && results[-1][0] == :str && (results[-1].line_max == result.line)
|
|
1112
|
-
results[-1][1] = "#{results[-1][1]}#{result[1]}"
|
|
1113
|
-
results[-1].line_max = result.line_max
|
|
1114
|
-
else
|
|
1115
|
-
results << result
|
|
1116
|
-
end
|
|
1117
|
-
end
|
|
1118
|
-
end
|
|
1119
|
-
|
|
1120
|
-
results
|
|
1121
|
-
end
|
|
1122
|
-
|
|
1123
|
-
# ```
|
|
1124
|
-
# -> { it }
|
|
1125
|
-
# ^^
|
|
1126
|
-
# ```
|
|
1127
|
-
def visit_it_local_variable_read_node(node)
|
|
1128
|
-
s(node, :call, nil, :it)
|
|
1129
|
-
end
|
|
1130
|
-
|
|
1131
|
-
# ```
|
|
1132
|
-
# foo(bar: baz)
|
|
1133
|
-
# ^^^^^^^^
|
|
1134
|
-
# ```
|
|
1135
|
-
def visit_keyword_hash_node(node)
|
|
1136
|
-
s(node, :hash).concat(node.elements.flat_map { |element| visit(element) })
|
|
1137
|
-
end
|
|
1138
|
-
|
|
1139
|
-
# ```
|
|
1140
|
-
# def foo(**bar); end
|
|
1141
|
-
# ^^^^^
|
|
1142
|
-
#
|
|
1143
|
-
# def foo(**); end
|
|
1144
|
-
# ^^
|
|
1145
|
-
# ```
|
|
1146
|
-
def visit_keyword_rest_parameter_node(node)
|
|
1147
|
-
:"**#{node.name}"
|
|
1148
|
-
end
|
|
1149
|
-
|
|
1150
|
-
# -> {}
|
|
1151
|
-
def visit_lambda_node(node)
|
|
1152
|
-
parameters =
|
|
1153
|
-
case node.parameters
|
|
1154
|
-
when nil, ItParametersNode, NumberedParametersNode
|
|
1155
|
-
0
|
|
1156
|
-
else
|
|
1157
|
-
visit(node.parameters)
|
|
1158
|
-
end
|
|
1159
|
-
|
|
1160
|
-
if node.body.nil?
|
|
1161
|
-
s(node, :iter, s(node, :lambda), parameters)
|
|
1162
|
-
else
|
|
1163
|
-
s(node, :iter, s(node, :lambda), parameters, visit(node.body))
|
|
1164
|
-
end
|
|
1165
|
-
end
|
|
1166
|
-
|
|
1167
|
-
# ```
|
|
1168
|
-
# foo
|
|
1169
|
-
# ^^^
|
|
1170
|
-
# ```
|
|
1171
|
-
def visit_local_variable_read_node(node)
|
|
1172
|
-
if node.name.match?(/^_\d$/)
|
|
1173
|
-
s(node, :call, nil, node.name)
|
|
1174
|
-
else
|
|
1175
|
-
s(node, :lvar, node.name)
|
|
1176
|
-
end
|
|
1177
|
-
end
|
|
1178
|
-
|
|
1179
|
-
# ```
|
|
1180
|
-
# foo = 1
|
|
1181
|
-
# ^^^^^^^
|
|
1182
|
-
#
|
|
1183
|
-
# foo, bar = 1
|
|
1184
|
-
# ^^^ ^^^
|
|
1185
|
-
# ```
|
|
1186
|
-
def visit_local_variable_write_node(node)
|
|
1187
|
-
s(node, :lasgn, node.name, visit_write_value(node.value))
|
|
1188
|
-
end
|
|
1189
|
-
|
|
1190
|
-
# ```
|
|
1191
|
-
# foo += bar
|
|
1192
|
-
# ^^^^^^^^^^
|
|
1193
|
-
# ```
|
|
1194
|
-
def visit_local_variable_operator_write_node(node)
|
|
1195
|
-
s(node, :lasgn, node.name, s(node, :call, s(node, :lvar, node.name), node.binary_operator, visit_write_value(node.value)))
|
|
1196
|
-
end
|
|
1197
|
-
|
|
1198
|
-
# ```
|
|
1199
|
-
# foo &&= bar
|
|
1200
|
-
# ^^^^^^^^^^^
|
|
1201
|
-
# ```
|
|
1202
|
-
def visit_local_variable_and_write_node(node)
|
|
1203
|
-
s(node, :op_asgn_and, s(node, :lvar, node.name), s(node, :lasgn, node.name, visit_write_value(node.value)))
|
|
1204
|
-
end
|
|
1205
|
-
|
|
1206
|
-
# ```
|
|
1207
|
-
# foo ||= bar
|
|
1208
|
-
# ^^^^^^^^^^^
|
|
1209
|
-
# ```
|
|
1210
|
-
def visit_local_variable_or_write_node(node)
|
|
1211
|
-
s(node, :op_asgn_or, s(node, :lvar, node.name), s(node, :lasgn, node.name, visit_write_value(node.value)))
|
|
1212
|
-
end
|
|
1213
|
-
|
|
1214
|
-
# ```
|
|
1215
|
-
# foo, = bar
|
|
1216
|
-
# ^^^
|
|
1217
|
-
# ```
|
|
1218
|
-
def visit_local_variable_target_node(node)
|
|
1219
|
-
s(node, :lasgn, node.name)
|
|
1220
|
-
end
|
|
1221
|
-
|
|
1222
|
-
# ```
|
|
1223
|
-
# if /foo/ then end
|
|
1224
|
-
# ^^^^^
|
|
1225
|
-
# ```
|
|
1226
|
-
def visit_match_last_line_node(node)
|
|
1227
|
-
s(node, :match, s(node, :lit, Regexp.new(node.unescaped, node.options)))
|
|
1228
|
-
end
|
|
1229
|
-
|
|
1230
|
-
# ```
|
|
1231
|
-
# foo in bar
|
|
1232
|
-
# ^^^^^^^^^^
|
|
1233
|
-
# ```
|
|
1234
|
-
def visit_match_predicate_node(node)
|
|
1235
|
-
s(node, :case, visit(node.value), s(node, :in, node.pattern.accept(copy_compiler(in_pattern: true)), nil), nil)
|
|
1236
|
-
end
|
|
1237
|
-
|
|
1238
|
-
# ```
|
|
1239
|
-
# foo => bar
|
|
1240
|
-
# ^^^^^^^^^^
|
|
1241
|
-
# ```
|
|
1242
|
-
def visit_match_required_node(node)
|
|
1243
|
-
s(node, :case, visit(node.value), s(node, :in, node.pattern.accept(copy_compiler(in_pattern: true)), nil), nil)
|
|
1244
|
-
end
|
|
1245
|
-
|
|
1246
|
-
# ```
|
|
1247
|
-
# /(?<foo>foo)/ =~ bar
|
|
1248
|
-
# ^^^^^^^^^^^^^^^^^^^^
|
|
1249
|
-
# ```
|
|
1250
|
-
def visit_match_write_node(node)
|
|
1251
|
-
s(node, :match2, visit(node.call.receiver), visit(node.call.arguments.arguments.first))
|
|
1252
|
-
end
|
|
1253
|
-
|
|
1254
|
-
# A node that is missing from the syntax tree. This is only used in the
|
|
1255
|
-
# case of a syntax error. The parser gem doesn't have such a concept, so
|
|
1256
|
-
# we invent our own here.
|
|
1257
|
-
def visit_missing_node(node)
|
|
1258
|
-
raise "Cannot visit missing node directly"
|
|
1259
|
-
end
|
|
1260
|
-
|
|
1261
|
-
# ```
|
|
1262
|
-
# module Foo; end
|
|
1263
|
-
# ^^^^^^^^^^^^^^^
|
|
1264
|
-
# ```
|
|
1265
|
-
def visit_module_node(node)
|
|
1266
|
-
name =
|
|
1267
|
-
if node.constant_path.is_a?(ConstantReadNode)
|
|
1268
|
-
node.name
|
|
1269
|
-
else
|
|
1270
|
-
visit(node.constant_path)
|
|
1271
|
-
end
|
|
1272
|
-
|
|
1273
|
-
if node.body.nil?
|
|
1274
|
-
s(node, :module, name)
|
|
1275
|
-
elsif node.body.is_a?(StatementsNode)
|
|
1276
|
-
compiler = copy_compiler(in_def: false)
|
|
1277
|
-
s(node, :module, name).concat(node.body.body.map { |child| child.accept(compiler) })
|
|
1278
|
-
else
|
|
1279
|
-
s(node, :module, name, node.body.accept(copy_compiler(in_def: false)))
|
|
1280
|
-
end
|
|
1281
|
-
end
|
|
1282
|
-
|
|
1283
|
-
# ```
|
|
1284
|
-
# foo, bar = baz
|
|
1285
|
-
# ^^^^^^^^
|
|
1286
|
-
# ```
|
|
1287
|
-
def visit_multi_target_node(node)
|
|
1288
|
-
targets = [*node.lefts]
|
|
1289
|
-
targets << node.rest if !node.rest.nil? && !node.rest.is_a?(ImplicitRestNode)
|
|
1290
|
-
targets.concat(node.rights)
|
|
1291
|
-
|
|
1292
|
-
s(node, :masgn, s(node, :array).concat(visit_all(targets)))
|
|
1293
|
-
end
|
|
1294
|
-
|
|
1295
|
-
# ```
|
|
1296
|
-
# foo, bar = baz
|
|
1297
|
-
# ^^^^^^^^^^^^^^
|
|
1298
|
-
# ```
|
|
1299
|
-
def visit_multi_write_node(node)
|
|
1300
|
-
targets = [*node.lefts]
|
|
1301
|
-
targets << node.rest if !node.rest.nil? && !node.rest.is_a?(ImplicitRestNode)
|
|
1302
|
-
targets.concat(node.rights)
|
|
1303
|
-
|
|
1304
|
-
value =
|
|
1305
|
-
if node.value.is_a?(ArrayNode) && node.value.opening_loc.nil?
|
|
1306
|
-
if node.value.elements.length == 1 && node.value.elements.first.is_a?(SplatNode)
|
|
1307
|
-
visit(node.value.elements.first)
|
|
1308
|
-
else
|
|
1309
|
-
visit(node.value)
|
|
1310
|
-
end
|
|
1311
|
-
else
|
|
1312
|
-
s(node.value, :to_ary, visit(node.value))
|
|
1313
|
-
end
|
|
1314
|
-
|
|
1315
|
-
s(node, :masgn, s(node, :array).concat(visit_all(targets)), value)
|
|
1316
|
-
end
|
|
1317
|
-
|
|
1318
|
-
# ```
|
|
1319
|
-
# next
|
|
1320
|
-
# ^^^^
|
|
1321
|
-
#
|
|
1322
|
-
# next foo
|
|
1323
|
-
# ^^^^^^^^
|
|
1324
|
-
# ```
|
|
1325
|
-
def visit_next_node(node)
|
|
1326
|
-
if node.arguments.nil?
|
|
1327
|
-
s(node, :next)
|
|
1328
|
-
elsif node.arguments.arguments.length == 1
|
|
1329
|
-
argument = node.arguments.arguments.first
|
|
1330
|
-
s(node, :next, argument.is_a?(SplatNode) ? s(node, :svalue, visit(argument)) : visit(argument))
|
|
1331
|
-
else
|
|
1332
|
-
s(node, :next, s(node, :array).concat(visit_all(node.arguments.arguments)))
|
|
1333
|
-
end
|
|
1334
|
-
end
|
|
1335
|
-
|
|
1336
|
-
# ```
|
|
1337
|
-
# nil
|
|
1338
|
-
# ^^^
|
|
1339
|
-
# ```
|
|
1340
|
-
def visit_nil_node(node)
|
|
1341
|
-
s(node, :nil)
|
|
1342
|
-
end
|
|
1343
|
-
|
|
1344
|
-
# ```
|
|
1345
|
-
# def foo(**nil); end
|
|
1346
|
-
# ^^^^^
|
|
1347
|
-
# ```
|
|
1348
|
-
def visit_no_keywords_parameter_node(node)
|
|
1349
|
-
in_pattern ? s(node, :kwrest, :"**nil") : :"**nil"
|
|
1350
|
-
end
|
|
1351
|
-
|
|
1352
|
-
# ```
|
|
1353
|
-
# -> { _1 + _2 }
|
|
1354
|
-
# ^^^^^^^^^^^^^^
|
|
1355
|
-
# ```
|
|
1356
|
-
def visit_numbered_parameters_node(node)
|
|
1357
|
-
raise "Cannot visit numbered parameters directly"
|
|
1358
|
-
end
|
|
1359
|
-
|
|
1360
|
-
# ```
|
|
1361
|
-
# $1
|
|
1362
|
-
# ^^
|
|
1363
|
-
# ```
|
|
1364
|
-
def visit_numbered_reference_read_node(node)
|
|
1365
|
-
s(node, :nth_ref, node.number)
|
|
1366
|
-
end
|
|
1367
|
-
|
|
1368
|
-
# ```
|
|
1369
|
-
# def foo(bar: baz); end
|
|
1370
|
-
# ^^^^^^^^
|
|
1371
|
-
# ```
|
|
1372
|
-
def visit_optional_keyword_parameter_node(node)
|
|
1373
|
-
s(node, :kwarg, node.name, visit(node.value))
|
|
1374
|
-
end
|
|
1375
|
-
|
|
1376
|
-
# ```
|
|
1377
|
-
# def foo(bar = 1); end
|
|
1378
|
-
# ^^^^^^^
|
|
1379
|
-
# ```
|
|
1380
|
-
def visit_optional_parameter_node(node)
|
|
1381
|
-
s(node, :lasgn, node.name, visit(node.value))
|
|
1382
|
-
end
|
|
1383
|
-
|
|
1384
|
-
# ```
|
|
1385
|
-
# a or b
|
|
1386
|
-
# ^^^^^^
|
|
1387
|
-
# ```
|
|
1388
|
-
def visit_or_node(node)
|
|
1389
|
-
left = visit(node.left)
|
|
1390
|
-
|
|
1391
|
-
if left[0] == :or
|
|
1392
|
-
# ruby_parser has the or keyword as right-associative as opposed to
|
|
1393
|
-
# prism which has it as left-associative. We reverse that
|
|
1394
|
-
# associativity here.
|
|
1395
|
-
nest = left
|
|
1396
|
-
nest = nest[2] while nest[2][0] == :or
|
|
1397
|
-
nest[2] = s(node, :or, nest[2], visit(node.right))
|
|
1398
|
-
left
|
|
1399
|
-
else
|
|
1400
|
-
s(node, :or, left, visit(node.right))
|
|
1401
|
-
end
|
|
1402
|
-
end
|
|
1403
|
-
|
|
1404
|
-
# ```
|
|
1405
|
-
# def foo(bar, *baz); end
|
|
1406
|
-
# ^^^^^^^^^
|
|
1407
|
-
# ```
|
|
1408
|
-
def visit_parameters_node(node)
|
|
1409
|
-
children =
|
|
1410
|
-
node.compact_child_nodes.map do |element|
|
|
1411
|
-
if element.is_a?(MultiTargetNode)
|
|
1412
|
-
visit_destructured_parameter(element)
|
|
1413
|
-
else
|
|
1414
|
-
visit(element)
|
|
1415
|
-
end
|
|
1416
|
-
end
|
|
1417
|
-
|
|
1418
|
-
s(node, :args).concat(children)
|
|
1419
|
-
end
|
|
1420
|
-
|
|
1421
|
-
# ```
|
|
1422
|
-
# def foo((bar, baz)); end
|
|
1423
|
-
# ^^^^^^^^^^
|
|
1424
|
-
# ```
|
|
1425
|
-
private def visit_destructured_parameter(node)
|
|
1426
|
-
children =
|
|
1427
|
-
[*node.lefts, *node.rest, *node.rights].map do |child|
|
|
1428
|
-
case child
|
|
1429
|
-
when RequiredParameterNode
|
|
1430
|
-
visit(child)
|
|
1431
|
-
when MultiTargetNode
|
|
1432
|
-
visit_destructured_parameter(child)
|
|
1433
|
-
when SplatNode
|
|
1434
|
-
:"*#{child.expression&.name}"
|
|
1435
|
-
else
|
|
1436
|
-
raise
|
|
1437
|
-
end
|
|
1438
|
-
end
|
|
1439
|
-
|
|
1440
|
-
s(node, :masgn).concat(children)
|
|
1441
|
-
end
|
|
1442
|
-
|
|
1443
|
-
# ```
|
|
1444
|
-
# ()
|
|
1445
|
-
# ^^
|
|
1446
|
-
#
|
|
1447
|
-
# (1)
|
|
1448
|
-
# ^^^
|
|
1449
|
-
# ```
|
|
1450
|
-
def visit_parentheses_node(node)
|
|
1451
|
-
if node.body.nil?
|
|
1452
|
-
s(node, :nil)
|
|
1453
|
-
else
|
|
1454
|
-
visit(node.body)
|
|
1455
|
-
end
|
|
1456
|
-
end
|
|
1457
|
-
|
|
1458
|
-
# ```
|
|
1459
|
-
# foo => ^(bar)
|
|
1460
|
-
# ^^^^^^
|
|
1461
|
-
# ```
|
|
1462
|
-
def visit_pinned_expression_node(node)
|
|
1463
|
-
node.expression.accept(copy_compiler(in_pattern: false))
|
|
1464
|
-
end
|
|
1465
|
-
|
|
1466
|
-
# ```
|
|
1467
|
-
# foo = 1 and bar => ^foo
|
|
1468
|
-
# ^^^^
|
|
1469
|
-
# ```
|
|
1470
|
-
def visit_pinned_variable_node(node)
|
|
1471
|
-
if node.variable.is_a?(LocalVariableReadNode) && node.variable.name.match?(/^_\d$/)
|
|
1472
|
-
s(node, :lvar, node.variable.name)
|
|
1473
|
-
else
|
|
1474
|
-
visit(node.variable)
|
|
1475
|
-
end
|
|
1476
|
-
end
|
|
1477
|
-
|
|
1478
|
-
# END {}
|
|
1479
|
-
def visit_post_execution_node(node)
|
|
1480
|
-
s(node, :iter, s(node, :postexe), 0, visit(node.statements))
|
|
1481
|
-
end
|
|
1482
|
-
|
|
1483
|
-
# BEGIN {}
|
|
1484
|
-
def visit_pre_execution_node(node)
|
|
1485
|
-
s(node, :iter, s(node, :preexe), 0, visit(node.statements))
|
|
1486
|
-
end
|
|
1487
|
-
|
|
1488
|
-
# The top-level program node.
|
|
1489
|
-
def visit_program_node(node)
|
|
1490
|
-
visit(node.statements)
|
|
1491
|
-
end
|
|
1492
|
-
|
|
1493
|
-
# ```
|
|
1494
|
-
# 0..5
|
|
1495
|
-
# ^^^^
|
|
1496
|
-
# ```
|
|
1497
|
-
def visit_range_node(node)
|
|
1498
|
-
if !in_pattern && !node.left.nil? && !node.right.nil? && ([node.left.type, node.right.type] - %i[nil_node integer_node]).empty?
|
|
1499
|
-
left = node.left.value if node.left.is_a?(IntegerNode)
|
|
1500
|
-
right = node.right.value if node.right.is_a?(IntegerNode)
|
|
1501
|
-
s(node, :lit, Range.new(left, right, node.exclude_end?))
|
|
1502
|
-
else
|
|
1503
|
-
s(node, node.exclude_end? ? :dot3 : :dot2, visit_range_bounds_node(node.left), visit_range_bounds_node(node.right))
|
|
1504
|
-
end
|
|
1505
|
-
end
|
|
1506
|
-
|
|
1507
|
-
# If the bounds of a range node are empty parentheses, then they do not
|
|
1508
|
-
# get replaced by their usual s(:nil), but instead are s(:begin).
|
|
1509
|
-
private def visit_range_bounds_node(node)
|
|
1510
|
-
if node.is_a?(ParenthesesNode) && node.body.nil?
|
|
1511
|
-
s(node, :begin)
|
|
1512
|
-
else
|
|
1513
|
-
visit(node)
|
|
1514
|
-
end
|
|
1515
|
-
end
|
|
1516
|
-
|
|
1517
|
-
# ```
|
|
1518
|
-
# 1r
|
|
1519
|
-
# ^^
|
|
1520
|
-
# ```
|
|
1521
|
-
def visit_rational_node(node)
|
|
1522
|
-
s(node, :lit, node.value)
|
|
1523
|
-
end
|
|
1524
|
-
|
|
1525
|
-
# ```
|
|
1526
|
-
# redo
|
|
1527
|
-
# ^^^^
|
|
1528
|
-
# ```
|
|
1529
|
-
def visit_redo_node(node)
|
|
1530
|
-
s(node, :redo)
|
|
1531
|
-
end
|
|
1532
|
-
|
|
1533
|
-
# ```
|
|
1534
|
-
# /foo/
|
|
1535
|
-
# ^^^^^
|
|
1536
|
-
# ```
|
|
1537
|
-
def visit_regular_expression_node(node)
|
|
1538
|
-
s(node, :lit, Regexp.new(node.unescaped, node.options))
|
|
1539
|
-
end
|
|
1540
|
-
|
|
1541
|
-
# ```
|
|
1542
|
-
# def foo(bar:); end
|
|
1543
|
-
# ^^^^
|
|
1544
|
-
# ```
|
|
1545
|
-
def visit_required_keyword_parameter_node(node)
|
|
1546
|
-
s(node, :kwarg, node.name)
|
|
1547
|
-
end
|
|
1548
|
-
|
|
1549
|
-
# ```
|
|
1550
|
-
# def foo(bar); end
|
|
1551
|
-
# ^^^
|
|
1552
|
-
# ```
|
|
1553
|
-
def visit_required_parameter_node(node)
|
|
1554
|
-
node.name
|
|
1555
|
-
end
|
|
1556
|
-
|
|
1557
|
-
# ```
|
|
1558
|
-
# foo rescue bar
|
|
1559
|
-
# ^^^^^^^^^^^^^^
|
|
1560
|
-
# ```
|
|
1561
|
-
def visit_rescue_modifier_node(node)
|
|
1562
|
-
s(node, :rescue, visit(node.expression), s(node.rescue_expression, :resbody, s(node.rescue_expression, :array), visit(node.rescue_expression)))
|
|
1563
|
-
end
|
|
1564
|
-
|
|
1565
|
-
# ```
|
|
1566
|
-
# begin; rescue; end
|
|
1567
|
-
# ^^^^^^^
|
|
1568
|
-
# ```
|
|
1569
|
-
def visit_rescue_node(node)
|
|
1570
|
-
exceptions =
|
|
1571
|
-
if node.exceptions.length == 1 && node.exceptions.first.is_a?(SplatNode)
|
|
1572
|
-
visit(node.exceptions.first)
|
|
1573
|
-
else
|
|
1574
|
-
s(node, :array).concat(visit_all(node.exceptions))
|
|
1575
|
-
end
|
|
1576
|
-
|
|
1577
|
-
if !node.reference.nil?
|
|
1578
|
-
exceptions << (visit(node.reference) << s(node.reference, :gvar, :"$!"))
|
|
1579
|
-
end
|
|
1580
|
-
|
|
1581
|
-
s(node, :resbody, exceptions).concat(node.statements.nil? ? [nil] : visit_all(node.statements.body))
|
|
1582
|
-
end
|
|
1583
|
-
|
|
1584
|
-
# ```
|
|
1585
|
-
# def foo(*bar); end
|
|
1586
|
-
# ^^^^
|
|
1587
|
-
#
|
|
1588
|
-
# def foo(*); end
|
|
1589
|
-
# ^
|
|
1590
|
-
# ```
|
|
1591
|
-
def visit_rest_parameter_node(node)
|
|
1592
|
-
:"*#{node.name}"
|
|
1593
|
-
end
|
|
1594
|
-
|
|
1595
|
-
# ```
|
|
1596
|
-
# retry
|
|
1597
|
-
# ^^^^^
|
|
1598
|
-
# ```
|
|
1599
|
-
def visit_retry_node(node)
|
|
1600
|
-
s(node, :retry)
|
|
1601
|
-
end
|
|
1602
|
-
|
|
1603
|
-
# ```
|
|
1604
|
-
# return
|
|
1605
|
-
# ^^^^^^
|
|
1606
|
-
#
|
|
1607
|
-
# return 1
|
|
1608
|
-
# ^^^^^^^^
|
|
1609
|
-
# ```
|
|
1610
|
-
def visit_return_node(node)
|
|
1611
|
-
if node.arguments.nil?
|
|
1612
|
-
s(node, :return)
|
|
1613
|
-
elsif node.arguments.arguments.length == 1
|
|
1614
|
-
argument = node.arguments.arguments.first
|
|
1615
|
-
s(node, :return, argument.is_a?(SplatNode) ? s(node, :svalue, visit(argument)) : visit(argument))
|
|
1616
|
-
else
|
|
1617
|
-
s(node, :return, s(node, :array).concat(visit_all(node.arguments.arguments)))
|
|
1618
|
-
end
|
|
1619
|
-
end
|
|
1620
|
-
|
|
1621
|
-
# ```
|
|
1622
|
-
# self
|
|
1623
|
-
# ^^^^
|
|
1624
|
-
# ```
|
|
1625
|
-
def visit_self_node(node)
|
|
1626
|
-
s(node, :self)
|
|
1627
|
-
end
|
|
1628
|
-
|
|
1629
|
-
# A shareable constant.
|
|
1630
|
-
def visit_shareable_constant_node(node)
|
|
1631
|
-
visit(node.write)
|
|
1632
|
-
end
|
|
1633
|
-
|
|
1634
|
-
# ```
|
|
1635
|
-
# class << self; end
|
|
1636
|
-
# ^^^^^^^^^^^^^^^^^^
|
|
1637
|
-
# ```
|
|
1638
|
-
def visit_singleton_class_node(node)
|
|
1639
|
-
s(node, :sclass, visit(node.expression)).tap do |sexp|
|
|
1640
|
-
sexp << node.body.accept(copy_compiler(in_def: false)) unless node.body.nil?
|
|
1641
|
-
end
|
|
1642
|
-
end
|
|
1643
|
-
|
|
1644
|
-
# ```
|
|
1645
|
-
# __ENCODING__
|
|
1646
|
-
# ^^^^^^^^^^^^
|
|
1647
|
-
# ```
|
|
1648
|
-
def visit_source_encoding_node(node)
|
|
1649
|
-
# TODO
|
|
1650
|
-
s(node, :colon2, s(node, :const, :Encoding), :UTF_8)
|
|
1651
|
-
end
|
|
1652
|
-
|
|
1653
|
-
# ```
|
|
1654
|
-
# __FILE__
|
|
1655
|
-
# ^^^^^^^^
|
|
1656
|
-
# ```
|
|
1657
|
-
def visit_source_file_node(node)
|
|
1658
|
-
s(node, :str, node.filepath)
|
|
1659
|
-
end
|
|
1660
|
-
|
|
1661
|
-
# ```
|
|
1662
|
-
# __LINE__
|
|
1663
|
-
# ^^^^^^^^
|
|
1664
|
-
# ```
|
|
1665
|
-
def visit_source_line_node(node)
|
|
1666
|
-
s(node, :lit, node.location.start_line)
|
|
1667
|
-
end
|
|
1668
|
-
|
|
1669
|
-
# ```
|
|
1670
|
-
# foo(*bar)
|
|
1671
|
-
# ^^^^
|
|
1672
|
-
#
|
|
1673
|
-
# def foo((bar, *baz)); end
|
|
1674
|
-
# ^^^^
|
|
1675
|
-
#
|
|
1676
|
-
# def foo(*); bar(*); end
|
|
1677
|
-
# ^
|
|
1678
|
-
# ```
|
|
1679
|
-
def visit_splat_node(node)
|
|
1680
|
-
if node.expression.nil?
|
|
1681
|
-
s(node, :splat)
|
|
1682
|
-
else
|
|
1683
|
-
s(node, :splat, visit(node.expression))
|
|
1684
|
-
end
|
|
1685
|
-
end
|
|
1686
|
-
|
|
1687
|
-
# A list of statements.
|
|
1688
|
-
def visit_statements_node(node)
|
|
1689
|
-
first, *rest = node.body
|
|
1690
|
-
|
|
1691
|
-
if rest.empty?
|
|
1692
|
-
visit(first)
|
|
1693
|
-
else
|
|
1694
|
-
s(node, :block).concat(visit_all(node.body))
|
|
1695
|
-
end
|
|
1696
|
-
end
|
|
1697
|
-
|
|
1698
|
-
# ```
|
|
1699
|
-
# "foo"
|
|
1700
|
-
# ^^^^^
|
|
1701
|
-
# ```
|
|
1702
|
-
def visit_string_node(node)
|
|
1703
|
-
unescaped = node.unescaped
|
|
1704
|
-
|
|
1705
|
-
if node.forced_binary_encoding?
|
|
1706
|
-
unescaped = unescaped.dup
|
|
1707
|
-
unescaped.force_encoding(Encoding::BINARY)
|
|
1708
|
-
end
|
|
1709
|
-
|
|
1710
|
-
s(node, :str, unescaped)
|
|
1711
|
-
end
|
|
1712
|
-
|
|
1713
|
-
# ```
|
|
1714
|
-
# super(foo)
|
|
1715
|
-
# ^^^^^^^^^^
|
|
1716
|
-
# ```
|
|
1717
|
-
def visit_super_node(node)
|
|
1718
|
-
arguments = node.arguments&.arguments || []
|
|
1719
|
-
block = node.block
|
|
1720
|
-
|
|
1721
|
-
if block.is_a?(BlockArgumentNode)
|
|
1722
|
-
arguments << block
|
|
1723
|
-
block = nil
|
|
1724
|
-
end
|
|
1725
|
-
|
|
1726
|
-
visit_block(node, s(node, :super).concat(visit_all(arguments)), block)
|
|
1727
|
-
end
|
|
1728
|
-
|
|
1729
|
-
# ```
|
|
1730
|
-
# :foo
|
|
1731
|
-
# ^^^^
|
|
1732
|
-
# ```
|
|
1733
|
-
def visit_symbol_node(node)
|
|
1734
|
-
node.value == "!@" ? s(node, :lit, :"!@") : s(node, :lit, node.unescaped.to_sym)
|
|
1735
|
-
end
|
|
1736
|
-
|
|
1737
|
-
# ```
|
|
1738
|
-
# true
|
|
1739
|
-
# ^^^^
|
|
1740
|
-
# ```
|
|
1741
|
-
def visit_true_node(node)
|
|
1742
|
-
s(node, :true)
|
|
1743
|
-
end
|
|
1744
|
-
|
|
1745
|
-
# ```
|
|
1746
|
-
# undef foo
|
|
1747
|
-
# ^^^^^^^^^
|
|
1748
|
-
# ```
|
|
1749
|
-
def visit_undef_node(node)
|
|
1750
|
-
names = node.names.map { |name| s(node, :undef, visit(name)) }
|
|
1751
|
-
names.length == 1 ? names.first : s(node, :block).concat(names)
|
|
1752
|
-
end
|
|
1753
|
-
|
|
1754
|
-
# ```
|
|
1755
|
-
# unless foo; bar end
|
|
1756
|
-
# ^^^^^^^^^^^^^^^^^^^
|
|
1757
|
-
#
|
|
1758
|
-
# bar unless foo
|
|
1759
|
-
# ^^^^^^^^^^^^^^
|
|
1760
|
-
# ```
|
|
1761
|
-
def visit_unless_node(node)
|
|
1762
|
-
s(node, :if, visit(node.predicate), visit(node.else_clause), visit(node.statements))
|
|
1763
|
-
end
|
|
1764
|
-
|
|
1765
|
-
# ```
|
|
1766
|
-
# until foo; bar end
|
|
1767
|
-
# ^^^^^^^^^^^^^^^^^
|
|
1768
|
-
#
|
|
1769
|
-
# bar until foo
|
|
1770
|
-
# ^^^^^^^^^^^^^
|
|
1771
|
-
# ```
|
|
1772
|
-
def visit_until_node(node)
|
|
1773
|
-
s(node, :until, visit(node.predicate), visit(node.statements), !node.begin_modifier?)
|
|
1774
|
-
end
|
|
1775
|
-
|
|
1776
|
-
# ```
|
|
1777
|
-
# case foo; when bar; end
|
|
1778
|
-
# ^^^^^^^^^^^^^
|
|
1779
|
-
# ```
|
|
1780
|
-
def visit_when_node(node)
|
|
1781
|
-
s(node, :when, s(node, :array).concat(visit_all(node.conditions))).concat(node.statements.nil? ? [nil] : visit_all(node.statements.body))
|
|
1782
|
-
end
|
|
1783
|
-
|
|
1784
|
-
# ```
|
|
1785
|
-
# while foo; bar end
|
|
1786
|
-
# ^^^^^^^^^^^^^^^^^^
|
|
1787
|
-
#
|
|
1788
|
-
# bar while foo
|
|
1789
|
-
# ^^^^^^^^^^^^^
|
|
1790
|
-
# ```
|
|
1791
|
-
def visit_while_node(node)
|
|
1792
|
-
s(node, :while, visit(node.predicate), visit(node.statements), !node.begin_modifier?)
|
|
1793
|
-
end
|
|
1794
|
-
|
|
1795
|
-
# ```
|
|
1796
|
-
# `foo`
|
|
1797
|
-
# ^^^^^
|
|
1798
|
-
# ```
|
|
1799
|
-
def visit_x_string_node(node)
|
|
1800
|
-
result = s(node, :xstr, node.unescaped)
|
|
1801
|
-
|
|
1802
|
-
if node.heredoc?
|
|
1803
|
-
result.line = node.content_loc.start_line
|
|
1804
|
-
result.line_max = node.content_loc.end_line
|
|
1805
|
-
end
|
|
1806
|
-
|
|
1807
|
-
result
|
|
1808
|
-
end
|
|
1809
|
-
|
|
1810
|
-
# ```
|
|
1811
|
-
# yield
|
|
1812
|
-
# ^^^^^
|
|
1813
|
-
#
|
|
1814
|
-
# yield 1
|
|
1815
|
-
# ^^^^^^^
|
|
1816
|
-
# ```
|
|
1817
|
-
def visit_yield_node(node)
|
|
1818
|
-
s(node, :yield).concat(visit_all(node.arguments&.arguments || []))
|
|
1819
|
-
end
|
|
1820
|
-
|
|
1821
|
-
private
|
|
1822
|
-
|
|
1823
|
-
# Create a new compiler with the given options.
|
|
1824
|
-
def copy_compiler(in_def: self.in_def, in_pattern: self.in_pattern)
|
|
1825
|
-
Compiler.new(file, in_def: in_def, in_pattern: in_pattern)
|
|
1826
|
-
end
|
|
1827
|
-
|
|
1828
|
-
# Create a new Sexp object from the given prism node and arguments.
|
|
1829
|
-
def s(node, *arguments)
|
|
1830
|
-
result = Sexp.new(*arguments)
|
|
1831
|
-
result.file = file
|
|
1832
|
-
result.line = node.location.start_line
|
|
1833
|
-
result.line_max = node.location.end_line
|
|
1834
|
-
result
|
|
1835
|
-
end
|
|
1836
|
-
|
|
1837
|
-
# Visit a block node, which will modify the AST by wrapping the given
|
|
1838
|
-
# visited node in an iter node.
|
|
1839
|
-
def visit_block(node, sexp, block)
|
|
1840
|
-
if block.nil?
|
|
1841
|
-
sexp
|
|
1842
|
-
else
|
|
1843
|
-
parameters =
|
|
1844
|
-
case block.parameters
|
|
1845
|
-
when nil, ItParametersNode, NumberedParametersNode
|
|
1846
|
-
0
|
|
1847
|
-
else
|
|
1848
|
-
visit(block.parameters)
|
|
1849
|
-
end
|
|
1850
|
-
|
|
1851
|
-
if block.body.nil?
|
|
1852
|
-
s(node, :iter, sexp, parameters)
|
|
1853
|
-
else
|
|
1854
|
-
s(node, :iter, sexp, parameters, visit(block.body))
|
|
1855
|
-
end
|
|
1856
|
-
end
|
|
1857
|
-
end
|
|
1858
|
-
|
|
1859
|
-
# Pattern constants get wrapped in another layer of :const.
|
|
1860
|
-
def visit_pattern_constant(node)
|
|
1861
|
-
case node
|
|
1862
|
-
when nil
|
|
1863
|
-
# nothing
|
|
1864
|
-
when ConstantReadNode
|
|
1865
|
-
visit(node)
|
|
1866
|
-
else
|
|
1867
|
-
s(node, :const, visit(node))
|
|
1868
|
-
end
|
|
1869
|
-
end
|
|
1870
|
-
|
|
1871
|
-
# Visit the value of a write, which will be on the right-hand side of
|
|
1872
|
-
# a write operator. Because implicit arrays can have splats, those could
|
|
1873
|
-
# potentially be wrapped in an svalue node.
|
|
1874
|
-
def visit_write_value(node)
|
|
1875
|
-
if node.is_a?(ArrayNode) && node.opening_loc.nil?
|
|
1876
|
-
if node.elements.length == 1 && node.elements.first.is_a?(SplatNode)
|
|
1877
|
-
s(node, :svalue, visit(node.elements.first))
|
|
1878
|
-
else
|
|
1879
|
-
s(node, :svalue, visit(node))
|
|
1880
|
-
end
|
|
1881
|
-
else
|
|
1882
|
-
visit(node)
|
|
1883
|
-
end
|
|
1884
|
-
end
|
|
1885
|
-
end
|
|
1886
|
-
|
|
1887
|
-
private_constant :Compiler
|
|
1888
|
-
|
|
1889
|
-
# Parse the given source and translate it into the seattlerb/ruby_parser
|
|
1890
|
-
# gem's Sexp format.
|
|
1891
|
-
def parse(source, filepath = "(string)")
|
|
1892
|
-
translate(Prism.parse(source, filepath: filepath, partial_script: true), filepath)
|
|
1893
|
-
end
|
|
1894
|
-
|
|
1895
|
-
# Parse the given file and translate it into the seattlerb/ruby_parser
|
|
1896
|
-
# gem's Sexp format.
|
|
1897
|
-
def parse_file(filepath)
|
|
1898
|
-
translate(Prism.parse_file(filepath, partial_script: true), filepath)
|
|
1899
|
-
end
|
|
1900
|
-
|
|
1901
|
-
class << self
|
|
1902
|
-
# Parse the given source and translate it into the seattlerb/ruby_parser
|
|
1903
|
-
# gem's Sexp format.
|
|
1904
|
-
def parse(source, filepath = "(string)")
|
|
1905
|
-
new.parse(source, filepath)
|
|
1906
|
-
end
|
|
1907
|
-
|
|
1908
|
-
# Parse the given file and translate it into the seattlerb/ruby_parser
|
|
1909
|
-
# gem's Sexp format.
|
|
1910
|
-
def parse_file(filepath)
|
|
1911
|
-
new.parse_file(filepath)
|
|
1912
|
-
end
|
|
1913
|
-
end
|
|
1914
|
-
|
|
1915
|
-
private
|
|
1916
|
-
|
|
1917
|
-
# Translate the given parse result and filepath into the
|
|
1918
|
-
# seattlerb/ruby_parser gem's Sexp format.
|
|
1919
|
-
def translate(result, filepath)
|
|
1920
|
-
if result.failure?
|
|
1921
|
-
error = result.errors.first
|
|
1922
|
-
raise ::RubyParser::SyntaxError, "#{filepath}:#{error.location.start_line} :: #{error.message}"
|
|
1923
|
-
end
|
|
1924
|
-
|
|
1925
|
-
result.value.accept(Compiler.new(filepath))
|
|
1926
|
-
end
|
|
1927
|
-
end
|
|
1928
|
-
end
|
|
1929
|
-
end
|