@ai-ecoverse/wasix-ruby 3.4.11-20 → 3.4.11-21
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 +8 -8
- package/README.md +9 -1
- package/THIRD-PARTY-NOTICES.md +1 -1
- package/bin/ruby +0 -0
- package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +9 -9
- package/lib/ruby/gems/3.4.0/cache/bigdecimal-3.1.8.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/debug-1.11.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/nkf-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/racc-1.8.1.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/rbs-3.8.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/cache/syslog-0.2.0.gem +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/bigdecimal-3.1.8/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/debug-1.11.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/nkf-0.2.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/racc-1.8.1/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/rbs-3.8.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/syslog-0.2.0/gem.build_complete +0 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +56 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.c +7794 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.h +313 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bits.h +141 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/extconf.rb +62 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/feature.h +68 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing/dtoa.c +3462 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.c +27 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.h +196 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h +54 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +90 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +89 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +232 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +80 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +185 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +74 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +40 -0
- package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +21 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +573 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +10 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +22 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +996 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +57 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +23 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +53 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/debug.c +228 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/extconf.rb +27 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/iseq_collector.c +93 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +77 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +556 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +263 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +123 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +592 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +224 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +336 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +190 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +37 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +115 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +13 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +15 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +50 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +534 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +1348 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +1108 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +2667 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +150 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +1457 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +241 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +9 -0
- package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +660 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +5 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +22 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +38 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +24 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +14 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +8 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Command.java +58 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/CommandParser.java +70 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/NKFLibrary.java +13 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Option.java +80 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Options.java +109 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/RubyNKF.java +601 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/extconf.rb +3 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/config.h +51 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.c +7205 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.h +189 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.c +14638 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.h +72 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf.c +506 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +283 -0
- package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +6 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +22 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +56 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +846 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +5 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +320 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +218 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +219 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +99 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +36 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +348 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +10 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +125 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +414 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/cparse.c +840 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/extconf.rb +8 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +33 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +60 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +16 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +1191 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +667 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +18 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +212 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +644 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +630 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +473 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +35 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +976 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +311 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +22 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +1854 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +203 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +415 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +44 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +311 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +4062 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +375 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +150 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +277 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +220 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +171 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +786 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +415 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +981 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +1371 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +2405 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +630 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +673 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +760 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +376 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +550 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +2936 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +331 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +1151 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +644 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +184 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +1861 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +1413 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +984 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +70 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +3402 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +3054 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +207 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +635 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +729 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +386 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +1704 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +209 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +818 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +166 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +190 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +868 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +2296 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +1065 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +237 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +1107 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +531 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +88 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +1229 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +1209 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +293 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +1928 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +765 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +176 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +49 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +148 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +1171 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +294 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +621 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +100 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +3583 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +667 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +475 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +1765 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +79 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +1762 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +477 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +98 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +329 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +106 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +192 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +86 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +57 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +309 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +125 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +167 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +147 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +905 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/extconf.rb +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.c +2728 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.h +179 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.re +147 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexstate.c +175 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.c +303 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.h +84 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/main.c +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.c +2961 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.h +18 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.c +366 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.h +161 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/rbs_extension.h +31 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/unescape.c +32 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +91 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +72 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +199 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +400 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +131 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +8 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +29 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +29 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +467 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +39 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +449 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +225 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +137 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +67 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +58 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +83 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +356 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +1223 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +223 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +32 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +258 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +50 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +16 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +395 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +620 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +254 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +841 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +125 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +77 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +818 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +173 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +155 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +600 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +18 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +138 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +241 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +141 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +125 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +77 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +140 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +99 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +840 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +641 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +279 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +667 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +127 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +219 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +91 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +198 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +83 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +201 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +80 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +30 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +212 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +84 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +50 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +167 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +433 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +112 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +100 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +126 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +109 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +1557 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +176 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +136 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +341 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +143 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +182 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +189 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +71 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +419 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +93 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +163 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +326 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +266 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +50 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +36 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +317 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +163 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +60 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +102 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +24 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +30 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +27 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +32 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +44 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +15 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +43 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +74 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +66 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +46 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +214 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +4 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +267 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +173 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +165 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +61 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +277 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +111 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +65 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +383 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +58 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +7 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +258 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +84 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +58 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +146 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +27 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +75 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +182 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +67 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +85 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +34 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +35 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +38 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +41 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +37 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +52 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +9 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +82 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +53 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +98 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +110 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +79 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +576 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +154 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +194 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +136 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +35 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +9 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +87 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +51 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +47 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +127 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +153 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +793 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +66 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +355 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +452 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +1629 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +119 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +1285 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +263 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +3776 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +1585 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +616 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +26 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +421 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +184 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +47 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +96 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +343 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +577 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +532 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +865 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +1734 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +49 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +268 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +414 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +428 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +1914 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +166 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +45 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +100 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +796 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +34 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +42 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +52 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +590 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +102 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +259 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +25 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +21 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +64 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +64 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +46 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +62 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +19 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +53 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +28 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +163 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +129 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +18 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +69 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +6 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +4 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +115 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +354 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +104 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +5552 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +55 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +402 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +487 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +217 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +4 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +393 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +147 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +12113 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +1725 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +1406 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +300 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +383 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +603 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +237 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +402 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +237 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +51 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +59 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +153 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +117 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +56 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +391 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +17 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +48 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +97 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +3 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +1830 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +1648 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +62 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +229 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +131 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +666 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +590 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +2295 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +4157 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +192 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +79 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +133 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +169 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +170 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +567 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +1627 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +479 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +432 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +81 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +69 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +5 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +409 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +582 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +118 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +1108 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +104 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +230 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +14 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +92 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +189 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +9 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +2 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +1 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +210 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +23 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +12 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +156 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +293 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +166 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +180 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +13 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +11 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +449 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +200 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +20 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +10 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +36 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +27 -0
- package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +122 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +5 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +22 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +41 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +20 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +14 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +8 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/extconf.rb +26 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.c +592 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.txt +124 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +209 -0
- package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +10 -0
- package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +25 -0
- package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +32 -0
- package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +26 -0
- package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
- package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +31 -0
- package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +25 -0
- package/package.json +9 -9
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
#ifndef RBS__PARSER_H
|
|
2
|
+
#define RBS__PARSER_H
|
|
3
|
+
|
|
4
|
+
#include "ruby.h"
|
|
5
|
+
#include "parserstate.h"
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* RBS::Parser class
|
|
9
|
+
* */
|
|
10
|
+
extern VALUE RBS_Parser;
|
|
11
|
+
|
|
12
|
+
VALUE parse_type(parserstate *state);
|
|
13
|
+
VALUE parse_method_type(parserstate *state);
|
|
14
|
+
VALUE parse_signature(parserstate *state);
|
|
15
|
+
|
|
16
|
+
void rbs__init_parser();
|
|
17
|
+
|
|
18
|
+
#endif
|
|
@@ -0,0 +1,366 @@
|
|
|
1
|
+
#include "rbs_extension.h"
|
|
2
|
+
|
|
3
|
+
#define RESET_TABLE_P(table) (table->size == 0)
|
|
4
|
+
|
|
5
|
+
id_table *alloc_empty_table(void) {
|
|
6
|
+
id_table *table = malloc(sizeof(id_table));
|
|
7
|
+
|
|
8
|
+
*table = (id_table) {
|
|
9
|
+
.size = 10,
|
|
10
|
+
.count = 0,
|
|
11
|
+
.ids = calloc(10, sizeof(ID)),
|
|
12
|
+
.next = NULL,
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
return table;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
id_table *alloc_reset_table(void) {
|
|
19
|
+
id_table *table = malloc(sizeof(id_table));
|
|
20
|
+
|
|
21
|
+
*table = (id_table) {
|
|
22
|
+
.size = 0,
|
|
23
|
+
.count = 0,
|
|
24
|
+
.ids = NULL,
|
|
25
|
+
.next = NULL,
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
return table;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
id_table *parser_push_typevar_table(parserstate *state, bool reset) {
|
|
32
|
+
if (reset) {
|
|
33
|
+
id_table *table = alloc_reset_table();
|
|
34
|
+
table->next = state->vars;
|
|
35
|
+
state->vars = table;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
id_table *table = alloc_empty_table();
|
|
39
|
+
table->next = state->vars;
|
|
40
|
+
state->vars = table;
|
|
41
|
+
|
|
42
|
+
return table;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
void parser_pop_typevar_table(parserstate *state) {
|
|
46
|
+
id_table *table;
|
|
47
|
+
|
|
48
|
+
if (state->vars) {
|
|
49
|
+
table = state->vars;
|
|
50
|
+
state->vars = table->next;
|
|
51
|
+
free(table->ids);
|
|
52
|
+
free(table);
|
|
53
|
+
} else {
|
|
54
|
+
rb_raise(rb_eRuntimeError, "Cannot pop empty table");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (state->vars && RESET_TABLE_P(state->vars)) {
|
|
58
|
+
table = state->vars;
|
|
59
|
+
state->vars = table->next;
|
|
60
|
+
free(table);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
void parser_insert_typevar(parserstate *state, ID id) {
|
|
65
|
+
id_table *table = state->vars;
|
|
66
|
+
|
|
67
|
+
if (RESET_TABLE_P(table)) {
|
|
68
|
+
rb_raise(rb_eRuntimeError, "Cannot insert to reset table");
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if (table->size == table->count) {
|
|
72
|
+
// expand
|
|
73
|
+
ID *ptr = table->ids;
|
|
74
|
+
table->size += 10;
|
|
75
|
+
table->ids = calloc(table->size, sizeof(ID));
|
|
76
|
+
memcpy(table->ids, ptr, sizeof(ID) * table->count);
|
|
77
|
+
free(ptr);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
table->ids[table->count++] = id;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
bool parser_typevar_member(parserstate *state, ID id) {
|
|
84
|
+
id_table *table = state->vars;
|
|
85
|
+
|
|
86
|
+
while (table && !RESET_TABLE_P(table)) {
|
|
87
|
+
for (size_t i = 0; i < table->count; i++) {
|
|
88
|
+
if (table->ids[i] == id) {
|
|
89
|
+
return true;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
table = table->next;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
return false;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
void print_parser(parserstate *state) {
|
|
100
|
+
printf(" current_token = %s (%d...%d)\n", token_type_str(state->current_token.type), state->current_token.range.start.char_pos, state->current_token.range.end.char_pos);
|
|
101
|
+
printf(" next_token = %s (%d...%d)\n", token_type_str(state->next_token.type), state->next_token.range.start.char_pos, state->next_token.range.end.char_pos);
|
|
102
|
+
printf(" next_token2 = %s (%d...%d)\n", token_type_str(state->next_token2.type), state->next_token2.range.start.char_pos, state->next_token2.range.end.char_pos);
|
|
103
|
+
printf(" next_token3 = %s (%d...%d)\n", token_type_str(state->next_token3.type), state->next_token3.range.start.char_pos, state->next_token3.range.end.char_pos);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
void parser_advance(parserstate *state) {
|
|
107
|
+
state->current_token = state->next_token;
|
|
108
|
+
state->next_token = state->next_token2;
|
|
109
|
+
state->next_token2 = state->next_token3;
|
|
110
|
+
|
|
111
|
+
while (true) {
|
|
112
|
+
if (state->next_token3.type == pEOF) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
state->next_token3 = rbsparser_next_token(state->lexstate);
|
|
117
|
+
|
|
118
|
+
if (state->next_token3.type == tCOMMENT) {
|
|
119
|
+
// skip
|
|
120
|
+
} else if (state->next_token3.type == tLINECOMMENT) {
|
|
121
|
+
insert_comment_line(state, state->next_token3);
|
|
122
|
+
} else if (state->next_token3.type == tTRIVIA) {
|
|
123
|
+
//skip
|
|
124
|
+
} else {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Advance token if _next_ token is `type`.
|
|
132
|
+
* Ensures one token advance and `state->current_token.type == type`, or current token not changed.
|
|
133
|
+
*
|
|
134
|
+
* @returns true if token advances, false otherwise.
|
|
135
|
+
**/
|
|
136
|
+
bool parser_advance_if(parserstate *state, enum TokenType type) {
|
|
137
|
+
if (state->next_token.type == type) {
|
|
138
|
+
parser_advance(state);
|
|
139
|
+
return true;
|
|
140
|
+
} else {
|
|
141
|
+
return false;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
void parser_assert(parserstate *state, enum TokenType type) {
|
|
146
|
+
if (state->current_token.type != type) {
|
|
147
|
+
raise_syntax_error(
|
|
148
|
+
state,
|
|
149
|
+
state->current_token,
|
|
150
|
+
"expected a token `%s`",
|
|
151
|
+
token_type_str(type)
|
|
152
|
+
);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
void parser_advance_assert(parserstate *state, enum TokenType type) {
|
|
157
|
+
parser_advance(state);
|
|
158
|
+
parser_assert(state, type);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
void print_token(token tok) {
|
|
162
|
+
printf(
|
|
163
|
+
"%s char=%d...%d\n",
|
|
164
|
+
token_type_str(tok.type),
|
|
165
|
+
tok.range.start.char_pos,
|
|
166
|
+
tok.range.end.char_pos
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
void insert_comment_line(parserstate *state, token tok) {
|
|
171
|
+
int prev_line = tok.range.start.line - 1;
|
|
172
|
+
|
|
173
|
+
comment *com = comment_get_comment(state->last_comment, prev_line);
|
|
174
|
+
|
|
175
|
+
if (com) {
|
|
176
|
+
comment_insert_new_line(com, tok);
|
|
177
|
+
} else {
|
|
178
|
+
state->last_comment = alloc_comment(tok, state->last_comment);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
VALUE get_comment(parserstate *state, int subject_line) {
|
|
183
|
+
int comment_line = subject_line - 1;
|
|
184
|
+
|
|
185
|
+
comment *com = comment_get_comment(state->last_comment, comment_line);
|
|
186
|
+
|
|
187
|
+
if (com) {
|
|
188
|
+
return comment_to_ruby(com, state->buffer);
|
|
189
|
+
} else {
|
|
190
|
+
return Qnil;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
comment *alloc_comment(token comment_token, comment *last_comment) {
|
|
195
|
+
comment *new_comment = malloc(sizeof(comment));
|
|
196
|
+
|
|
197
|
+
*new_comment = (comment) {
|
|
198
|
+
.start = comment_token.range.start,
|
|
199
|
+
.end = comment_token.range.end,
|
|
200
|
+
|
|
201
|
+
.line_size = 0,
|
|
202
|
+
.line_count = 0,
|
|
203
|
+
.tokens = NULL,
|
|
204
|
+
|
|
205
|
+
.next_comment = last_comment,
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
comment_insert_new_line(new_comment, comment_token);
|
|
209
|
+
|
|
210
|
+
return new_comment;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
void free_comment(comment *com) {
|
|
214
|
+
if (com->next_comment) {
|
|
215
|
+
free_comment(com->next_comment);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
free(com->tokens);
|
|
219
|
+
free(com);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
void comment_insert_new_line(comment *com, token comment_token) {
|
|
223
|
+
if (com->line_count == 0) {
|
|
224
|
+
com->start = comment_token.range.start;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (com->line_count == com->line_size) {
|
|
228
|
+
com->line_size += 10;
|
|
229
|
+
|
|
230
|
+
if (com->tokens) {
|
|
231
|
+
token *p = com->tokens;
|
|
232
|
+
com->tokens = calloc(com->line_size, sizeof(token));
|
|
233
|
+
memcpy(com->tokens, p, sizeof(token) * com->line_count);
|
|
234
|
+
free(p);
|
|
235
|
+
} else {
|
|
236
|
+
com->tokens = calloc(com->line_size, sizeof(token));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
com->tokens[com->line_count++] = comment_token;
|
|
241
|
+
com->end = comment_token.range.end;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
comment *comment_get_comment(comment *com, int line) {
|
|
245
|
+
if (com == NULL) {
|
|
246
|
+
return NULL;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
if (com->end.line < line) {
|
|
250
|
+
return NULL;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (com->end.line == line) {
|
|
254
|
+
return com;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
return comment_get_comment(com->next_comment, line);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
VALUE comment_to_ruby(comment *com, VALUE buffer) {
|
|
261
|
+
VALUE content = rb_funcall(buffer, rb_intern("content"), 0);
|
|
262
|
+
rb_encoding *enc = rb_enc_get(content);
|
|
263
|
+
VALUE string = rb_enc_str_new_cstr("", enc);
|
|
264
|
+
|
|
265
|
+
int hash_bytes = rb_enc_codelen('#', enc);
|
|
266
|
+
int space_bytes = rb_enc_codelen(' ', enc);
|
|
267
|
+
|
|
268
|
+
for (size_t i = 0; i < com->line_count; i++) {
|
|
269
|
+
token tok = com->tokens[i];
|
|
270
|
+
|
|
271
|
+
char *comment_start = RSTRING_PTR(content) + tok.range.start.byte_pos + hash_bytes;
|
|
272
|
+
int comment_bytes = RANGE_BYTES(tok.range) - hash_bytes;
|
|
273
|
+
unsigned char c = rb_enc_mbc_to_codepoint(comment_start, RSTRING_END(content), enc);
|
|
274
|
+
|
|
275
|
+
if (c == ' ') {
|
|
276
|
+
comment_start += space_bytes;
|
|
277
|
+
comment_bytes -= space_bytes;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
rb_str_cat(string, comment_start, comment_bytes);
|
|
281
|
+
rb_str_cat_cstr(string, "\n");
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
return rbs_ast_comment(
|
|
285
|
+
string,
|
|
286
|
+
rbs_location_pp(buffer, &com->start, &com->end)
|
|
287
|
+
);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
lexstate *alloc_lexer(VALUE string, int start_pos, int end_pos) {
|
|
291
|
+
if (start_pos < 0 || end_pos < 0) {
|
|
292
|
+
rb_raise(rb_eArgError, "negative position range: %d...%d", start_pos, end_pos);
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
lexstate *lexer = malloc(sizeof(lexstate));
|
|
296
|
+
|
|
297
|
+
position start_position = (position) {
|
|
298
|
+
.byte_pos = 0,
|
|
299
|
+
.char_pos = 0,
|
|
300
|
+
.line = 1,
|
|
301
|
+
.column = 0,
|
|
302
|
+
};
|
|
303
|
+
|
|
304
|
+
*lexer = (lexstate) {
|
|
305
|
+
.string = string,
|
|
306
|
+
.start_pos = start_pos,
|
|
307
|
+
.end_pos = end_pos,
|
|
308
|
+
.current = start_position,
|
|
309
|
+
.start = { 0 },
|
|
310
|
+
.first_token_of_line = false,
|
|
311
|
+
.last_char = 0,
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
skipn(lexer, start_pos);
|
|
315
|
+
lexer->start = lexer->current;
|
|
316
|
+
lexer->first_token_of_line = lexer->current.column == 0;
|
|
317
|
+
|
|
318
|
+
return lexer;
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
parserstate *alloc_parser(VALUE buffer, lexstate *lexer, int start_pos, int end_pos, VALUE variables) {
|
|
322
|
+
parserstate *parser = malloc(sizeof(parserstate));
|
|
323
|
+
|
|
324
|
+
*parser = (parserstate) {
|
|
325
|
+
.lexstate = lexer,
|
|
326
|
+
|
|
327
|
+
.current_token = NullToken,
|
|
328
|
+
.next_token = NullToken,
|
|
329
|
+
.next_token2 = NullToken,
|
|
330
|
+
.next_token3 = NullToken,
|
|
331
|
+
.buffer = buffer,
|
|
332
|
+
|
|
333
|
+
.vars = NULL,
|
|
334
|
+
.last_comment = NULL,
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
parser_advance(parser);
|
|
338
|
+
parser_advance(parser);
|
|
339
|
+
parser_advance(parser);
|
|
340
|
+
|
|
341
|
+
if (!NIL_P(variables)) {
|
|
342
|
+
if (!RB_TYPE_P(variables, T_ARRAY)) {
|
|
343
|
+
rb_raise(rb_eTypeError,
|
|
344
|
+
"wrong argument type %"PRIsVALUE" (must be array or nil)",
|
|
345
|
+
rb_obj_class(variables));
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
parser_push_typevar_table(parser, true);
|
|
349
|
+
|
|
350
|
+
for (long i = 0; i < rb_array_len(variables); i++) {
|
|
351
|
+
VALUE index = INT2FIX(i);
|
|
352
|
+
VALUE symbol = rb_ary_aref(1, &index, variables);
|
|
353
|
+
parser_insert_typevar(parser, SYM2ID(symbol));
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
return parser;
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
void free_parser(parserstate *parser) {
|
|
361
|
+
free(parser->lexstate);
|
|
362
|
+
if (parser->last_comment) {
|
|
363
|
+
free_comment(parser->last_comment);
|
|
364
|
+
}
|
|
365
|
+
free(parser);
|
|
366
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
#ifndef RBS__PARSERSTATE_H
|
|
2
|
+
#define RBS__PARSERSTATE_H
|
|
3
|
+
|
|
4
|
+
#include <stdbool.h>
|
|
5
|
+
|
|
6
|
+
#include "lexer.h"
|
|
7
|
+
#include "location.h"
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* id_table represents a set of IDs.
|
|
11
|
+
* This is used to manage the set of bound variables.
|
|
12
|
+
* */
|
|
13
|
+
typedef struct id_table {
|
|
14
|
+
size_t size;
|
|
15
|
+
size_t count;
|
|
16
|
+
ID *ids;
|
|
17
|
+
struct id_table *next;
|
|
18
|
+
} id_table;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* comment represents a sequence of comment lines.
|
|
22
|
+
*
|
|
23
|
+
* # Comment for the method.
|
|
24
|
+
* #
|
|
25
|
+
* # ```rb
|
|
26
|
+
* # object.foo() # Do something
|
|
27
|
+
* # ```
|
|
28
|
+
* #
|
|
29
|
+
* def foo: () -> void
|
|
30
|
+
*
|
|
31
|
+
* A comment object represents the six lines of comments.
|
|
32
|
+
* */
|
|
33
|
+
typedef struct comment {
|
|
34
|
+
position start;
|
|
35
|
+
position end;
|
|
36
|
+
|
|
37
|
+
size_t line_size;
|
|
38
|
+
size_t line_count;
|
|
39
|
+
token *tokens;
|
|
40
|
+
|
|
41
|
+
struct comment *next_comment;
|
|
42
|
+
} comment;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* An RBS parser is a LL(3) parser.
|
|
46
|
+
* */
|
|
47
|
+
typedef struct {
|
|
48
|
+
lexstate *lexstate;
|
|
49
|
+
|
|
50
|
+
token current_token;
|
|
51
|
+
token next_token; /* The first lookahead token */
|
|
52
|
+
token next_token2; /* The second lookahead token */
|
|
53
|
+
token next_token3; /* The third lookahead token */
|
|
54
|
+
VALUE buffer;
|
|
55
|
+
|
|
56
|
+
id_table *vars; /* Known type variables */
|
|
57
|
+
comment *last_comment; /* Last read comment */
|
|
58
|
+
} parserstate;
|
|
59
|
+
|
|
60
|
+
comment *alloc_comment(token comment_token, comment *last_comment);
|
|
61
|
+
void free_comment(comment *com);
|
|
62
|
+
void comment_insert_new_line(comment *com, token comment_token);
|
|
63
|
+
comment *comment_get_comment(comment *com, int line);
|
|
64
|
+
VALUE comment_to_ruby(comment *com, VALUE buffer);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Insert new table entry.
|
|
68
|
+
* Setting `reset` inserts a _reset_ entry, which stops searching.
|
|
69
|
+
*
|
|
70
|
+
* ```
|
|
71
|
+
* class Foo[A]
|
|
72
|
+
* ^^^ <= push new table with reset
|
|
73
|
+
* def foo: [B] () -> [A, B]
|
|
74
|
+
* ^^^ <= push new table without reset
|
|
75
|
+
*
|
|
76
|
+
* class Baz[C]
|
|
77
|
+
* ^^^ <= push new table with reset
|
|
78
|
+
* end
|
|
79
|
+
* end
|
|
80
|
+
* ```
|
|
81
|
+
* */
|
|
82
|
+
id_table *parser_push_typevar_table(parserstate *state, bool reset);
|
|
83
|
+
void parser_pop_typevar_table(parserstate *state);
|
|
84
|
+
/**
|
|
85
|
+
* Insert new type variable into the latest table.
|
|
86
|
+
* */
|
|
87
|
+
void parser_insert_typevar(parserstate *state, ID id);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Returns true if given type variable is recorded in the table.
|
|
91
|
+
* If not found, it goes one table up, if it's not a reset table.
|
|
92
|
+
* Or returns false, if it's a reset table.
|
|
93
|
+
* */
|
|
94
|
+
bool parser_typevar_member(parserstate *state, ID id);
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Allocate new lexstate object.
|
|
98
|
+
*
|
|
99
|
+
* ```
|
|
100
|
+
* VALUE string = rb_funcall(buffer, rb_intern("content"), 0);
|
|
101
|
+
* alloc_lexer(string, 0, 31) // New lexstate with buffer content
|
|
102
|
+
* ```
|
|
103
|
+
* */
|
|
104
|
+
lexstate *alloc_lexer(VALUE string, int start_pos, int end_pos);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Allocate new parserstate object.
|
|
108
|
+
*
|
|
109
|
+
* ```
|
|
110
|
+
* alloc_parser(buffer, lexer, 0, 1, variables) // New parserstate with variables
|
|
111
|
+
* alloc_parser(buffer, lexer, 3, 5, Qnil) // New parserstate without variables
|
|
112
|
+
* ```
|
|
113
|
+
* */
|
|
114
|
+
parserstate *alloc_parser(VALUE buffer, lexstate *lexer, int start_pos, int end_pos, VALUE variables);
|
|
115
|
+
void free_parser(parserstate *parser);
|
|
116
|
+
/**
|
|
117
|
+
* Advance one token.
|
|
118
|
+
* */
|
|
119
|
+
void parser_advance(parserstate *state);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* @brief Raises an exception if `current_token->type != type`.
|
|
123
|
+
*
|
|
124
|
+
* @param state
|
|
125
|
+
* @param type
|
|
126
|
+
*/
|
|
127
|
+
void parser_assert(parserstate *state, enum TokenType type);
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* Advance one token, and assert the current token type.
|
|
131
|
+
* Raises an exception if `current_token->type != type`.
|
|
132
|
+
* */
|
|
133
|
+
void parser_advance_assert(parserstate *state, enum TokenType type);
|
|
134
|
+
|
|
135
|
+
/**
|
|
136
|
+
* Advance one token if the next_token is a token of the type.
|
|
137
|
+
* */
|
|
138
|
+
bool parser_advance_if(parserstate *state, enum TokenType type);
|
|
139
|
+
void print_parser(parserstate *state);
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Insert new comment line token.
|
|
143
|
+
* */
|
|
144
|
+
void insert_comment_line(parserstate *state, token token);
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Returns a RBS::Comment object associated with an subject at `subject_line`.
|
|
148
|
+
*
|
|
149
|
+
* ```rbs
|
|
150
|
+
* # Comment1
|
|
151
|
+
* class Foo # This is the subject line for Comment1
|
|
152
|
+
*
|
|
153
|
+
* # Comment2
|
|
154
|
+
* %a{annotation} # This is the subject line for Comment2
|
|
155
|
+
* def foo: () -> void
|
|
156
|
+
* end
|
|
157
|
+
* ```
|
|
158
|
+
* */
|
|
159
|
+
VALUE get_comment(parserstate *state, int subject_line);
|
|
160
|
+
|
|
161
|
+
#endif
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#include <stdbool.h>
|
|
2
|
+
|
|
3
|
+
#include "ruby.h"
|
|
4
|
+
#include "ruby/re.h"
|
|
5
|
+
#include "ruby/encoding.h"
|
|
6
|
+
|
|
7
|
+
#include "rbs.h"
|
|
8
|
+
#include "lexer.h"
|
|
9
|
+
#include "parser.h"
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Receives `parserstate` and `range`, which represents a string token or symbol token, and returns a string VALUE.
|
|
13
|
+
*
|
|
14
|
+
* Input token | Output string
|
|
15
|
+
* ------------+-------------
|
|
16
|
+
* "foo\\n" | foo\n
|
|
17
|
+
* 'foo' | foo
|
|
18
|
+
* `bar` | bar
|
|
19
|
+
* :"baz\\t" | baz\t
|
|
20
|
+
* :'baz' | baz
|
|
21
|
+
* */
|
|
22
|
+
VALUE rbs_unquote_string(parserstate *state, range rg, int offset_bytes);
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Raises RBS::ParsingError on `tok` with message constructed with given `fmt`.
|
|
26
|
+
*
|
|
27
|
+
* ```
|
|
28
|
+
* foo.rbs:11:21...11:25: Syntax error: {message}, token=`{tok source}` ({tok type})
|
|
29
|
+
* ```
|
|
30
|
+
* */
|
|
31
|
+
PRINTF_ARGS(NORETURN(void) raise_syntax_error(parserstate *state, token tok, const char *fmt, ...), 3, 4);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
#include "rbs_extension.h"
|
|
2
|
+
|
|
3
|
+
VALUE rbs_unquote_string(parserstate *state, range rg, int offset_bytes) {
|
|
4
|
+
VALUE string = state->lexstate->string;
|
|
5
|
+
rb_encoding *enc = rb_enc_get(string);
|
|
6
|
+
|
|
7
|
+
unsigned int first_char = rb_enc_mbc_to_codepoint(
|
|
8
|
+
RSTRING_PTR(string) + rg.start.byte_pos + offset_bytes,
|
|
9
|
+
RSTRING_END(string),
|
|
10
|
+
enc
|
|
11
|
+
);
|
|
12
|
+
|
|
13
|
+
int byte_length = rg.end.byte_pos - rg.start.byte_pos - offset_bytes;
|
|
14
|
+
|
|
15
|
+
if (first_char == '"' || first_char == '\'' || first_char == '`') {
|
|
16
|
+
int bs = rb_enc_codelen(first_char, enc);
|
|
17
|
+
offset_bytes += bs;
|
|
18
|
+
byte_length -= 2 * bs;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
char *buffer = RSTRING_PTR(state->lexstate->string) + rg.start.byte_pos + offset_bytes;
|
|
22
|
+
VALUE str = rb_enc_str_new(buffer, byte_length, enc);
|
|
23
|
+
|
|
24
|
+
return rb_funcall(
|
|
25
|
+
RBS_Types_Literal,
|
|
26
|
+
rb_intern("unescape_string"),
|
|
27
|
+
2,
|
|
28
|
+
str,
|
|
29
|
+
first_char == '\"' ? Qtrue : Qfalse
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
rules:
|
|
2
|
+
- id: rbs.no_arg
|
|
3
|
+
pattern:
|
|
4
|
+
regexp: arg\d+
|
|
5
|
+
message: |
|
|
6
|
+
Stop using parameter names like `arg0` or `arg1`
|
|
7
|
+
|
|
8
|
+
The parameter names like `arg0` or `arg1` is not informative enough.
|
|
9
|
+
Try finding good parameter names from documents or arglists.
|
|
10
|
+
If you cannot find a good name, just delete the name of the parameters.
|
|
11
|
+
justification:
|
|
12
|
+
- Documents (comments) may contain that pattern.
|
|
13
|
+
glob:
|
|
14
|
+
- "{core,stdlib}/**/*.rbs"
|
|
15
|
+
fail:
|
|
16
|
+
- "def `send`: (interned arg0, *untyped arg1) -> untyped"
|
|
17
|
+
pass:
|
|
18
|
+
- "def `send`: (interned, *untyped) -> untyped"
|
|
19
|
+
|
|
20
|
+
- id: rbs.prefer_boolish
|
|
21
|
+
pattern:
|
|
22
|
+
- regexp: '\([^(]*\bbool\b[^\n]*\)'
|
|
23
|
+
- token: "-> bool }"
|
|
24
|
+
message: |
|
|
25
|
+
Prefer `boolish` over `bool` for method arguments and block return values
|
|
26
|
+
|
|
27
|
+
See the doc below:
|
|
28
|
+
https://github.com/ruby/rbs/blob/78d04a2db0f1c4925d2b13c2939868edf9465d6c/docs/syntax.md#bool-or-boolish
|
|
29
|
+
glob:
|
|
30
|
+
- "**/*.rbs"
|
|
31
|
+
justification:
|
|
32
|
+
- When you strictly want `true | false`. Use `bool` in this case.
|
|
33
|
+
pass:
|
|
34
|
+
- "(arg: boolish)"
|
|
35
|
+
- "{ () -> boolish }"
|
|
36
|
+
fail:
|
|
37
|
+
- "(arg: bool)"
|
|
38
|
+
- "{ () -> bool }"
|
|
39
|
+
|
|
40
|
+
- id: deprecate_stdlib_test
|
|
41
|
+
pattern:
|
|
42
|
+
token: < StdlibTest
|
|
43
|
+
message: |
|
|
44
|
+
StdlibTest is deprecated
|
|
45
|
+
|
|
46
|
+
We recommend writing tests based on `TypeAssertions` and `#assert_send_type`.
|
|
47
|
+
justification:
|
|
48
|
+
- When you are updating existing tests.
|
|
49
|
+
- When you are writing tests for callback, which cannot be done with `#assert_send_type`.
|
|
50
|
+
glob:
|
|
51
|
+
- "test/stdlib/**/*_test.rb"
|
|
52
|
+
fail:
|
|
53
|
+
- |
|
|
54
|
+
class IntegerTest < StdlibTest
|
|
55
|
+
target Integer
|
|
56
|
+
|
|
57
|
+
def test_plus
|
|
58
|
+
1 + 2
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
pass:
|
|
62
|
+
- |
|
|
63
|
+
class IntegerTest < Test::Unit::TestCase
|
|
64
|
+
include TypeAssertions
|
|
65
|
+
|
|
66
|
+
testing "Integer"
|
|
67
|
+
|
|
68
|
+
def test_plus
|
|
69
|
+
assert_send_type "(::Integer) -> ::Integer",
|
|
70
|
+
1, :+, 2
|
|
71
|
+
end
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
- id: no_trailing_whitespace
|
|
75
|
+
pattern:
|
|
76
|
+
regexp: '[ \t]+$'
|
|
77
|
+
message: |
|
|
78
|
+
Trim trailing whitespaces
|
|
79
|
+
glob:
|
|
80
|
+
- '**/*.rb'
|
|
81
|
+
- '**/*.rbs'
|
|
82
|
+
- '**/*.md'
|
|
83
|
+
justification:
|
|
84
|
+
- Let the maintainers know if it is an autogenerated files.
|
|
85
|
+
pass:
|
|
86
|
+
- "Hello world"
|
|
87
|
+
- "Hello\nworld"
|
|
88
|
+
- "Hello\n\nworld"
|
|
89
|
+
fail:
|
|
90
|
+
- "Hello world "
|
|
91
|
+
- "Hello \nworld"
|