@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.
Files changed (618) hide show
  1. package/PRESTAGE.md +8 -8
  2. package/README.md +9 -1
  3. package/THIRD-PARTY-NOTICES.md +1 -1
  4. package/bin/ruby +0 -0
  5. package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +9 -9
  6. package/lib/ruby/gems/3.4.0/cache/bigdecimal-3.1.8.gem +0 -0
  7. package/lib/ruby/gems/3.4.0/cache/debug-1.11.0.gem +0 -0
  8. package/lib/ruby/gems/3.4.0/cache/nkf-0.2.0.gem +0 -0
  9. package/lib/ruby/gems/3.4.0/cache/racc-1.8.1.gem +0 -0
  10. package/lib/ruby/gems/3.4.0/cache/rbs-3.8.0.gem +0 -0
  11. package/lib/ruby/gems/3.4.0/cache/syslog-0.2.0.gem +0 -0
  12. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/bigdecimal-3.1.8/gem.build_complete +0 -0
  13. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/debug-1.11.0/gem.build_complete +0 -0
  14. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/nkf-0.2.0/gem.build_complete +0 -0
  15. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/racc-1.8.1/gem.build_complete +0 -0
  16. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/rbs-3.8.0/gem.build_complete +0 -0
  17. package/lib/ruby/gems/3.4.0/extensions/wasm32-wasi/3.4.0-static/syslog-0.2.0/gem.build_complete +0 -0
  18. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +56 -0
  19. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.c +7794 -0
  20. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bigdecimal.h +313 -0
  21. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/bits.h +141 -0
  22. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/extconf.rb +62 -0
  23. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/feature.h +68 -0
  24. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing/dtoa.c +3462 -0
  25. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.c +27 -0
  26. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/missing.h +196 -0
  27. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/ext/bigdecimal/static_assert.h +54 -0
  28. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +90 -0
  29. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +89 -0
  30. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +232 -0
  31. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +80 -0
  32. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +185 -0
  33. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +5 -0
  34. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +74 -0
  35. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +40 -0
  36. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +21 -0
  37. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +573 -0
  38. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +10 -0
  39. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +22 -0
  40. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +996 -0
  41. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +57 -0
  42. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +23 -0
  43. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +53 -0
  44. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/debug.c +228 -0
  45. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/extconf.rb +27 -0
  46. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/ext/debug/iseq_collector.c +93 -0
  47. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +77 -0
  48. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +556 -0
  49. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +263 -0
  50. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +123 -0
  51. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +592 -0
  52. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +224 -0
  53. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +336 -0
  54. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +190 -0
  55. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +37 -0
  56. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +115 -0
  57. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +13 -0
  58. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +15 -0
  59. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +50 -0
  60. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +534 -0
  61. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +1348 -0
  62. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +1108 -0
  63. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +2667 -0
  64. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +150 -0
  65. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +5 -0
  66. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +1457 -0
  67. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +241 -0
  68. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +5 -0
  69. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +9 -0
  70. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +660 -0
  71. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +5 -0
  72. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +22 -0
  73. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +38 -0
  74. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +24 -0
  75. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +14 -0
  76. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +8 -0
  77. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Command.java +58 -0
  78. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/CommandParser.java +70 -0
  79. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/NKFLibrary.java +13 -0
  80. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Option.java +80 -0
  81. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/Options.java +109 -0
  82. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/java/org/jruby/ext/nkf/RubyNKF.java +601 -0
  83. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/extconf.rb +3 -0
  84. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/config.h +51 -0
  85. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.c +7205 -0
  86. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/nkf.h +189 -0
  87. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.c +14638 -0
  88. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf-utf8/utf8tbl.h +72 -0
  89. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/ext/nkf/nkf.c +506 -0
  90. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +283 -0
  91. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +6 -0
  92. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +22 -0
  93. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +56 -0
  94. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +846 -0
  95. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
  96. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +60 -0
  97. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +5 -0
  98. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +320 -0
  99. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +218 -0
  100. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +219 -0
  101. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +99 -0
  102. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +36 -0
  103. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +348 -0
  104. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +10 -0
  105. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +125 -0
  106. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +414 -0
  107. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/cparse.c +840 -0
  108. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ext/racc/cparse/extconf.rb +8 -0
  109. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +33 -0
  110. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +60 -0
  111. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +16 -0
  112. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +1191 -0
  113. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +667 -0
  114. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +18 -0
  115. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +92 -0
  116. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +212 -0
  117. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +644 -0
  118. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +630 -0
  119. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +473 -0
  120. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +35 -0
  121. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +976 -0
  122. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +311 -0
  123. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +5 -0
  124. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +6 -0
  125. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +22 -0
  126. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +1854 -0
  127. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +56 -0
  128. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +203 -0
  129. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +415 -0
  130. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +44 -0
  131. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +311 -0
  132. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +4062 -0
  133. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +375 -0
  134. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +150 -0
  135. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +277 -0
  136. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +220 -0
  137. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +171 -0
  138. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +786 -0
  139. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +96 -0
  140. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +415 -0
  141. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +981 -0
  142. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +1371 -0
  143. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +2405 -0
  144. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +92 -0
  145. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +630 -0
  146. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +6 -0
  147. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +673 -0
  148. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +760 -0
  149. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +376 -0
  150. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +82 -0
  151. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +550 -0
  152. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +11 -0
  153. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +2936 -0
  154. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +331 -0
  155. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +1151 -0
  156. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +644 -0
  157. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +184 -0
  158. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +1861 -0
  159. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +1413 -0
  160. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +984 -0
  161. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +70 -0
  162. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +3402 -0
  163. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +3054 -0
  164. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +207 -0
  165. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +635 -0
  166. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +729 -0
  167. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +386 -0
  168. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +1704 -0
  169. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +209 -0
  170. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +818 -0
  171. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +110 -0
  172. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +166 -0
  173. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +190 -0
  174. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +868 -0
  175. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +2296 -0
  176. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +1065 -0
  177. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +237 -0
  178. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +1107 -0
  179. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +531 -0
  180. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +88 -0
  181. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +1229 -0
  182. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +1209 -0
  183. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +293 -0
  184. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +59 -0
  185. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +1928 -0
  186. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +765 -0
  187. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +6 -0
  188. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +38 -0
  189. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +6 -0
  190. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +176 -0
  191. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +15 -0
  192. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +6 -0
  193. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +7 -0
  194. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +49 -0
  195. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +148 -0
  196. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +1171 -0
  197. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +15 -0
  198. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +23 -0
  199. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +5 -0
  200. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +10 -0
  201. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +294 -0
  202. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +621 -0
  203. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +100 -0
  204. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +3583 -0
  205. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +667 -0
  206. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +475 -0
  207. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +1765 -0
  208. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +79 -0
  209. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +1762 -0
  210. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +477 -0
  211. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +98 -0
  212. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +329 -0
  213. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +87 -0
  214. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +106 -0
  215. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +110 -0
  216. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +192 -0
  217. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +86 -0
  218. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +57 -0
  219. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +309 -0
  220. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +125 -0
  221. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +167 -0
  222. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +147 -0
  223. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +905 -0
  224. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +17 -0
  225. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +7 -0
  226. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/extconf.rb +14 -0
  227. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.c +2728 -0
  228. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.h +179 -0
  229. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexer.re +147 -0
  230. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/lexstate.c +175 -0
  231. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.c +303 -0
  232. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/location.h +84 -0
  233. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/main.c +12 -0
  234. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.c +2961 -0
  235. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parser.h +18 -0
  236. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.c +366 -0
  237. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/parserstate.h +161 -0
  238. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/rbs_extension.h +31 -0
  239. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/ext/rbs_extension/unescape.c +32 -0
  240. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +91 -0
  241. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +82 -0
  242. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +72 -0
  243. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +7 -0
  244. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +92 -0
  245. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +199 -0
  246. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +92 -0
  247. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +400 -0
  248. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +131 -0
  249. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +8 -0
  250. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +29 -0
  251. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +29 -0
  252. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +467 -0
  253. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +39 -0
  254. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +449 -0
  255. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +225 -0
  256. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +137 -0
  257. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +67 -0
  258. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +58 -0
  259. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +48 -0
  260. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +83 -0
  261. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +356 -0
  262. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +1223 -0
  263. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +38 -0
  264. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +92 -0
  265. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +223 -0
  266. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +81 -0
  267. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +32 -0
  268. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +14 -0
  269. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +258 -0
  270. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +81 -0
  271. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +48 -0
  272. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +50 -0
  273. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +38 -0
  274. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +16 -0
  275. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +28 -0
  276. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +395 -0
  277. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +620 -0
  278. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +254 -0
  279. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +841 -0
  280. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +125 -0
  281. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +77 -0
  282. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +818 -0
  283. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +173 -0
  284. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +155 -0
  285. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +600 -0
  286. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +18 -0
  287. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +28 -0
  288. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +138 -0
  289. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +241 -0
  290. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +141 -0
  291. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +125 -0
  292. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +15 -0
  293. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +23 -0
  294. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +77 -0
  295. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +140 -0
  296. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +99 -0
  297. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +840 -0
  298. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +641 -0
  299. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +59 -0
  300. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +19 -0
  301. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +279 -0
  302. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +667 -0
  303. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +127 -0
  304. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +219 -0
  305. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +91 -0
  306. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +198 -0
  307. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +83 -0
  308. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +201 -0
  309. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +80 -0
  310. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +30 -0
  311. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +212 -0
  312. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +19 -0
  313. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +84 -0
  314. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +50 -0
  315. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +167 -0
  316. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +433 -0
  317. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +112 -0
  318. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +100 -0
  319. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +126 -0
  320. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +109 -0
  321. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +1557 -0
  322. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +176 -0
  323. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +136 -0
  324. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +341 -0
  325. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +143 -0
  326. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +6 -0
  327. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +182 -0
  328. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +189 -0
  329. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +71 -0
  330. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +5 -0
  331. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +419 -0
  332. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +93 -0
  333. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +20 -0
  334. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +163 -0
  335. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +14 -0
  336. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +26 -0
  337. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +326 -0
  338. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +87 -0
  339. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +56 -0
  340. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +266 -0
  341. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +50 -0
  342. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +36 -0
  343. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +317 -0
  344. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +163 -0
  345. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +60 -0
  346. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +102 -0
  347. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +24 -0
  348. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +82 -0
  349. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +30 -0
  350. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +27 -0
  351. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +32 -0
  352. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +44 -0
  353. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +15 -0
  354. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +21 -0
  355. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +43 -0
  356. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +87 -0
  357. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +13 -0
  358. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +74 -0
  359. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +66 -0
  360. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +46 -0
  361. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +17 -0
  362. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +214 -0
  363. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +4 -0
  364. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +26 -0
  365. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +21 -0
  366. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +267 -0
  367. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +173 -0
  368. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +165 -0
  369. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +28 -0
  370. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +61 -0
  371. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +277 -0
  372. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +111 -0
  373. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +65 -0
  374. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +383 -0
  375. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +5 -0
  376. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +28 -0
  377. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +110 -0
  378. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +58 -0
  379. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +7 -0
  380. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +258 -0
  381. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +84 -0
  382. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +58 -0
  383. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +146 -0
  384. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +96 -0
  385. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +27 -0
  386. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +20 -0
  387. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +96 -0
  388. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +75 -0
  389. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +182 -0
  390. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +21 -0
  391. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +67 -0
  392. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +85 -0
  393. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +92 -0
  394. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +34 -0
  395. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +35 -0
  396. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +38 -0
  397. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +5 -0
  398. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +19 -0
  399. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +41 -0
  400. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +48 -0
  401. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +37 -0
  402. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +52 -0
  403. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +9 -0
  404. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +19 -0
  405. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +82 -0
  406. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +53 -0
  407. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +98 -0
  408. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +110 -0
  409. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +79 -0
  410. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +576 -0
  411. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +154 -0
  412. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +28 -0
  413. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +194 -0
  414. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +136 -0
  415. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +35 -0
  416. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +9 -0
  417. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +59 -0
  418. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +87 -0
  419. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +51 -0
  420. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +3 -0
  421. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +47 -0
  422. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +127 -0
  423. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +153 -0
  424. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +793 -0
  425. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +66 -0
  426. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +26 -0
  427. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +355 -0
  428. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +452 -0
  429. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +1629 -0
  430. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +119 -0
  431. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +2 -0
  432. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +1285 -0
  433. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +3 -0
  434. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +263 -0
  435. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +3776 -0
  436. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +3 -0
  437. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +1585 -0
  438. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +616 -0
  439. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +26 -0
  440. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +421 -0
  441. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +184 -0
  442. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +47 -0
  443. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +96 -0
  444. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +343 -0
  445. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +577 -0
  446. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +532 -0
  447. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +865 -0
  448. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +1734 -0
  449. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +49 -0
  450. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +268 -0
  451. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +414 -0
  452. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +428 -0
  453. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +1914 -0
  454. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +166 -0
  455. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +45 -0
  456. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +100 -0
  457. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +796 -0
  458. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +2 -0
  459. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +17 -0
  460. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +34 -0
  461. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +42 -0
  462. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +52 -0
  463. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +17 -0
  464. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +590 -0
  465. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +23 -0
  466. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +102 -0
  467. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +259 -0
  468. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +25 -0
  469. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +13 -0
  470. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +3 -0
  471. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +2 -0
  472. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +21 -0
  473. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +64 -0
  474. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +64 -0
  475. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +46 -0
  476. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +5 -0
  477. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +3 -0
  478. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +2 -0
  479. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +62 -0
  480. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +19 -0
  481. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +11 -0
  482. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +53 -0
  483. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +5 -0
  484. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +28 -0
  485. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +163 -0
  486. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +6 -0
  487. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +48 -0
  488. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +129 -0
  489. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +11 -0
  490. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +81 -0
  491. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +18 -0
  492. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +92 -0
  493. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +69 -0
  494. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +12 -0
  495. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +6 -0
  496. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +3 -0
  497. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +4 -0
  498. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +115 -0
  499. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +354 -0
  500. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +104 -0
  501. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +3 -0
  502. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +5552 -0
  503. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +2 -0
  504. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +56 -0
  505. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +2 -0
  506. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +55 -0
  507. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +402 -0
  508. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +487 -0
  509. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +217 -0
  510. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +4 -0
  511. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +393 -0
  512. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +147 -0
  513. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +3 -0
  514. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +12113 -0
  515. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +1725 -0
  516. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +1406 -0
  517. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +2 -0
  518. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +300 -0
  519. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +383 -0
  520. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +603 -0
  521. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +12 -0
  522. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +237 -0
  523. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +3 -0
  524. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +402 -0
  525. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +59 -0
  526. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +237 -0
  527. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +51 -0
  528. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +59 -0
  529. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +153 -0
  530. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +117 -0
  531. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +56 -0
  532. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +391 -0
  533. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +17 -0
  534. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +48 -0
  535. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +97 -0
  536. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +3 -0
  537. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +1830 -0
  538. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +1648 -0
  539. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +62 -0
  540. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +229 -0
  541. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +131 -0
  542. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +666 -0
  543. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +590 -0
  544. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +2295 -0
  545. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +92 -0
  546. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +4157 -0
  547. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +5 -0
  548. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +192 -0
  549. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +79 -0
  550. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +133 -0
  551. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +169 -0
  552. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +170 -0
  553. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +567 -0
  554. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +1627 -0
  555. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +479 -0
  556. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +432 -0
  557. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +81 -0
  558. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +69 -0
  559. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +5 -0
  560. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +20 -0
  561. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +409 -0
  562. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +582 -0
  563. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +118 -0
  564. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +13 -0
  565. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +1108 -0
  566. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +104 -0
  567. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +14 -0
  568. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +230 -0
  569. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +14 -0
  570. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +92 -0
  571. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +189 -0
  572. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +2 -0
  573. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +13 -0
  574. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +9 -0
  575. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +2 -0
  576. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +1 -0
  577. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +10 -0
  578. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +10 -0
  579. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +210 -0
  580. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +20 -0
  581. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +12 -0
  582. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +23 -0
  583. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +12 -0
  584. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +11 -0
  585. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +156 -0
  586. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +293 -0
  587. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +166 -0
  588. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +180 -0
  589. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +10 -0
  590. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +13 -0
  591. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +11 -0
  592. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +11 -0
  593. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +11 -0
  594. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +449 -0
  595. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +200 -0
  596. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +20 -0
  597. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +10 -0
  598. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +36 -0
  599. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +27 -0
  600. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +122 -0
  601. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +5 -0
  602. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +22 -0
  603. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +41 -0
  604. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +20 -0
  605. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +14 -0
  606. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +8 -0
  607. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/extconf.rb +26 -0
  608. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.c +592 -0
  609. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/ext/syslog/syslog.txt +124 -0
  610. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +209 -0
  611. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +10 -0
  612. package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +25 -0
  613. package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +32 -0
  614. package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +26 -0
  615. package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +28 -0
  616. package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +31 -0
  617. package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +25 -0
  618. package/package.json +9 -9
@@ -0,0 +1,1557 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RBS
4
+ module Types
5
+ module NoFreeVariables
6
+ def free_variables(set = Set.new)
7
+ set
8
+ end
9
+ end
10
+
11
+ module NoSubst
12
+ def sub(s)
13
+ self
14
+ end
15
+ end
16
+
17
+ module NoTypeName
18
+ def map_type_name
19
+ self
20
+ end
21
+ end
22
+
23
+ module EmptyEachType
24
+ def each_type
25
+ if block_given?
26
+ # nop
27
+ else
28
+ enum_for :each_type
29
+ end
30
+ end
31
+
32
+ def map_type(&block)
33
+ if block
34
+ _ = self
35
+ else
36
+ enum_for(:map_type)
37
+ end
38
+ end
39
+ end
40
+
41
+ module Bases
42
+ class Base
43
+ attr_reader :location
44
+
45
+ def initialize(location:)
46
+ @location = location
47
+ end
48
+
49
+ def ==(other)
50
+ other.is_a?(self.class)
51
+ end
52
+
53
+ def hash
54
+ self.class.hash
55
+ end
56
+
57
+ alias eql? ==
58
+
59
+ include NoFreeVariables
60
+ include NoSubst
61
+ include EmptyEachType
62
+ include NoTypeName
63
+
64
+ def to_json(state = _ = nil)
65
+ klass = to_s.to_sym
66
+ { class: klass, location: location }.to_json(state)
67
+ end
68
+
69
+ def to_s(level = 0)
70
+ case self
71
+ when Types::Bases::Bool
72
+ 'bool'
73
+ when Types::Bases::Void
74
+ 'void'
75
+ when Types::Bases::Any
76
+ raise
77
+ when Types::Bases::Nil
78
+ 'nil'
79
+ when Types::Bases::Top
80
+ 'top'
81
+ when Types::Bases::Bottom
82
+ 'bot'
83
+ when Types::Bases::Self
84
+ 'self'
85
+ when Types::Bases::Instance
86
+ 'instance'
87
+ when Types::Bases::Class
88
+ 'class'
89
+ else
90
+ raise "Unexpected base type: #{inspect}"
91
+ end
92
+ end
93
+
94
+ def has_self_type?
95
+ self.is_a?(Types::Bases::Self)
96
+ end
97
+
98
+ def has_classish_type?
99
+ self.is_a?(Bases::Instance) || self.is_a?(Bases::Class)
100
+ end
101
+
102
+ def with_nonreturn_void?
103
+ self.is_a?(Bases::Void)
104
+ end
105
+ end
106
+
107
+ class Bool < Base; end
108
+ class Void < Base; end
109
+ class Any < Base
110
+ def to_s(level=0)
111
+ @string || "untyped"
112
+ end
113
+
114
+ def todo!
115
+ @string = '__todo__'
116
+ self
117
+ end
118
+ end
119
+ class Nil < Base; end
120
+ class Top < Base; end
121
+ class Bottom < Base; end
122
+ class Self < Base; end
123
+ class Instance < Base
124
+ def sub(s)
125
+ s.apply(self)
126
+ end
127
+ end
128
+ class Class < Base; end
129
+ end
130
+
131
+ class Variable
132
+ attr_reader :name
133
+ attr_reader :location
134
+
135
+ include NoTypeName
136
+
137
+ def initialize(name:, location:)
138
+ @name = name
139
+ @location = location
140
+ end
141
+
142
+ def ==(other)
143
+ other.is_a?(Variable) && other.name == name
144
+ end
145
+
146
+ alias eql? ==
147
+
148
+ def hash
149
+ self.class.hash ^ name.hash
150
+ end
151
+
152
+ def free_variables(set = Set.new)
153
+ set.tap do
154
+ set << name
155
+ end
156
+ end
157
+
158
+ def to_json(state = _ = nil)
159
+ { class: :variable, name: name, location: location }.to_json(state)
160
+ end
161
+
162
+ def sub(s)
163
+ s.apply(self)
164
+ end
165
+
166
+ def self.build(v)
167
+ case v
168
+ when Symbol
169
+ new(name: v, location: nil)
170
+ when Array
171
+ v.map {|x| new(name: x, location: nil) }
172
+ end
173
+ end
174
+
175
+ @@count = 0
176
+ def self.fresh(v = :T)
177
+ @@count = @@count + 1
178
+ new(name: :"#{v}@#{@@count}", location: nil)
179
+ end
180
+
181
+ def to_s(level = 0)
182
+ name.to_s
183
+ end
184
+
185
+ include EmptyEachType
186
+
187
+ def has_self_type?
188
+ false
189
+ end
190
+
191
+ def has_classish_type?
192
+ false
193
+ end
194
+
195
+ def with_nonreturn_void?
196
+ false
197
+ end
198
+ end
199
+
200
+ class ClassSingleton
201
+ attr_reader :name
202
+ attr_reader :location
203
+
204
+ def initialize(name:, location:)
205
+ @name = name
206
+ @location = location
207
+ end
208
+
209
+ def ==(other)
210
+ other.is_a?(ClassSingleton) && other.name == name
211
+ end
212
+
213
+ alias eql? ==
214
+
215
+ def hash
216
+ self.class.hash ^ name.hash
217
+ end
218
+
219
+ include NoFreeVariables
220
+ include NoSubst
221
+
222
+ def to_json(state = _ = nil)
223
+ { class: :class_singleton, name: name, location: location }.to_json(state)
224
+ end
225
+
226
+ def to_s(level = 0)
227
+ "singleton(#{name})"
228
+ end
229
+
230
+ include EmptyEachType
231
+
232
+ def map_type_name
233
+ ClassSingleton.new(
234
+ name: yield(name, location, self),
235
+ location: location
236
+ )
237
+ end
238
+
239
+ def has_self_type?
240
+ false
241
+ end
242
+
243
+ def has_classish_type?
244
+ false
245
+ end
246
+
247
+ def with_nonreturn_void?
248
+ false
249
+ end
250
+ end
251
+
252
+ module Application
253
+ attr_reader :name
254
+ attr_reader :args
255
+
256
+ def ==(other)
257
+ other.is_a?(self.class) && other.name == name && other.args == args
258
+ end
259
+
260
+ alias eql? ==
261
+
262
+ def hash
263
+ name.hash ^ args.hash
264
+ end
265
+
266
+ def free_variables(set = Set.new)
267
+ set.tap do
268
+ args.each do |arg|
269
+ arg.free_variables(set)
270
+ end
271
+ end
272
+ end
273
+
274
+ def to_s(level = 0)
275
+ if args.empty?
276
+ name.to_s
277
+ else
278
+ "#{name}[#{args.join(", ")}]"
279
+ end
280
+ end
281
+
282
+ def each_type(&block)
283
+ if block
284
+ args.each(&block)
285
+ else
286
+ enum_for :each_type
287
+ end
288
+ end
289
+
290
+ def has_self_type?
291
+ each_type.any? {|type| type.has_self_type? }
292
+ end
293
+
294
+ def has_classish_type?
295
+ each_type.any? {|type| type.has_classish_type? }
296
+ end
297
+
298
+ def with_nonreturn_void?
299
+ each_type.any? do |type|
300
+ if type.is_a?(Bases::Void)
301
+ # `void` in immediate generics parameter is allowed
302
+ false
303
+ else
304
+ type.with_nonreturn_void?
305
+ end
306
+ end
307
+ end
308
+ end
309
+
310
+ class Interface
311
+ attr_reader :location
312
+
313
+ include Application
314
+
315
+ def initialize(name:, args:, location:)
316
+ @name = name
317
+ @args = args
318
+ @location = location
319
+ end
320
+
321
+ def to_json(state = _ = nil)
322
+ { class: :interface, name: name, args: args, location: location }.to_json(state)
323
+ end
324
+
325
+ def sub(s)
326
+ self.class.new(name: name,
327
+ args: args.map {|ty| ty.sub(s) },
328
+ location: location)
329
+ end
330
+
331
+ def map_type_name(&block)
332
+ Interface.new(
333
+ name: yield(name, location, self),
334
+ args: args.map {|type| type.map_type_name(&block) },
335
+ location: location
336
+ )
337
+ end
338
+
339
+ def map_type(&block)
340
+ if block
341
+ Interface.new(
342
+ name: name,
343
+ args: args.map {|type| yield type },
344
+ location: location
345
+ )
346
+ else
347
+ enum_for(:map_type)
348
+ end
349
+ end
350
+ end
351
+
352
+ class ClassInstance
353
+ attr_reader :location
354
+
355
+ include Application
356
+
357
+ def initialize(name:, args:, location:)
358
+ @name = name
359
+ @args = args
360
+ @location = location
361
+ end
362
+
363
+ def to_json(state = _ = nil)
364
+ { class: :class_instance, name: name, args: args, location: location }.to_json(state)
365
+ end
366
+
367
+ def sub(s)
368
+ self.class.new(name: name,
369
+ args: args.map {|ty| ty.sub(s) },
370
+ location: location)
371
+ end
372
+
373
+ def map_type_name(&block)
374
+ ClassInstance.new(
375
+ name: yield(name, location, self),
376
+ args: args.map {|type| type.map_type_name(&block) },
377
+ location: location
378
+ )
379
+ end
380
+
381
+ def map_type(&block)
382
+ if block
383
+ ClassInstance.new(
384
+ name: name,
385
+ args: args.map {|type| yield type },
386
+ location: location
387
+ )
388
+ else
389
+ enum_for :map_type
390
+ end
391
+ end
392
+ end
393
+
394
+ class Alias
395
+ attr_reader :location
396
+
397
+ include Application
398
+
399
+ def initialize(name:, args:, location:)
400
+ @name = name
401
+ @args = args
402
+ @location = location
403
+ end
404
+
405
+ def to_json(state = _ = nil)
406
+ { class: :alias, name: name, args: args, location: location }.to_json(state)
407
+ end
408
+
409
+ def sub(s)
410
+ Alias.new(name: name, args: args.map {|ty| ty.sub(s) }, location: location)
411
+ end
412
+
413
+ def map_type_name(&block)
414
+ Alias.new(
415
+ name: yield(name, location, self),
416
+ args: args.map {|arg| arg.map_type_name(&block) },
417
+ location: location
418
+ )
419
+ end
420
+
421
+ def map_type(&block)
422
+ if block
423
+ Alias.new(
424
+ name: name,
425
+ args: args.map {|type| yield type },
426
+ location: location
427
+ )
428
+ else
429
+ enum_for :map_type
430
+ end
431
+ end
432
+ end
433
+
434
+ class Tuple
435
+ attr_reader :types
436
+ attr_reader :location
437
+
438
+ def initialize(types:, location:)
439
+ @types = types
440
+ @location = location
441
+ end
442
+
443
+ def ==(other)
444
+ other.is_a?(Tuple) && other.types == types
445
+ end
446
+
447
+ alias eql? ==
448
+
449
+ def hash
450
+ self.class.hash ^ types.hash
451
+ end
452
+
453
+ def free_variables(set = Set.new)
454
+ set.tap do
455
+ types.each do |type|
456
+ type.free_variables set
457
+ end
458
+ end
459
+ end
460
+
461
+ def to_json(state = _ = nil)
462
+ { class: :tuple, types: types, location: location }.to_json(state)
463
+ end
464
+
465
+ def sub(s)
466
+ self.class.new(types: types.map {|ty| ty.sub(s) },
467
+ location: location)
468
+ end
469
+
470
+ def to_s(level = 0)
471
+ if types.empty?
472
+ "[ ]"
473
+ else
474
+ "[ #{types.join(", ")} ]"
475
+ end
476
+ end
477
+
478
+ def each_type(&block)
479
+ if block
480
+ types.each(&block)
481
+ else
482
+ enum_for :each_type
483
+ end
484
+ end
485
+
486
+ def map_type_name(&block)
487
+ Tuple.new(
488
+ types: types.map {|type| type.map_type_name(&block) },
489
+ location: location
490
+ )
491
+ end
492
+
493
+ def map_type(&block)
494
+ if block
495
+ Tuple.new(
496
+ types: types.map {|type| yield type },
497
+ location: location
498
+ )
499
+ else
500
+ enum_for :map_type
501
+ end
502
+ end
503
+
504
+ def has_self_type?
505
+ each_type.any? {|type| type.has_self_type? }
506
+ end
507
+
508
+ def has_classish_type?
509
+ each_type.any? {|type| type.has_classish_type? }
510
+ end
511
+
512
+ def with_nonreturn_void?
513
+ each_type.any? {|type| type.with_nonreturn_void? }
514
+ end
515
+ end
516
+
517
+ class Record
518
+ attr_reader :all_fields, :fields, :optional_fields
519
+ attr_reader :location
520
+
521
+ def initialize(all_fields: nil, fields: nil, location:)
522
+ case
523
+ when fields && all_fields.nil?
524
+ @all_fields = fields.transform_values { |v| [v, true] }
525
+ @fields = fields
526
+ @optional_fields = {}
527
+ when all_fields && fields.nil?
528
+ @all_fields = all_fields
529
+ @fields = {}
530
+ @optional_fields = {}
531
+ all_fields.each do |(k, (v, required))|
532
+ if required
533
+ @fields[k] = v
534
+ else
535
+ @optional_fields[k] = v
536
+ end
537
+ end
538
+ else
539
+ raise ArgumentError, "only one of `:fields` or `:all_fields` is requireds"
540
+ end
541
+
542
+ @location = location
543
+ end
544
+
545
+ def ==(other)
546
+ other.is_a?(Record) && other.fields == fields && other.optional_fields == optional_fields
547
+ end
548
+
549
+ alias eql? ==
550
+
551
+ def hash
552
+ self.class.hash ^ all_fields.hash
553
+ end
554
+
555
+ def free_variables(set = Set.new)
556
+ set.tap do
557
+ fields.each_value do |type|
558
+ type.free_variables set
559
+ end
560
+ optional_fields.each_value do |type|
561
+ type.free_variables set
562
+ end
563
+ end
564
+ end
565
+
566
+ def to_json(state = _ = nil)
567
+ { class: :record, fields: fields, optional_fields: optional_fields, location: location }.to_json(state)
568
+ end
569
+
570
+ def sub(s)
571
+ self.class.new(
572
+ all_fields: all_fields.transform_values {|ty, required| [ty.sub(s), required] },
573
+ location: location
574
+ )
575
+ end
576
+
577
+ def to_s(level = 0)
578
+ return "{ }" if all_fields.empty?
579
+
580
+ fields = all_fields.map do |key, (type, required)|
581
+ field = if key.is_a?(Symbol) && key.match?(/\A[A-Za-z_][A-Za-z_0-9]*\z/)
582
+ "#{key}: #{type}"
583
+ else
584
+ "#{key.inspect} => #{type}"
585
+ end
586
+
587
+ field = "?#{field}" unless required
588
+ field
589
+ end
590
+ "{ #{fields.join(", ")} }"
591
+ end
592
+
593
+ def each_type(&block)
594
+ if block
595
+ fields.each_value(&block)
596
+ optional_fields.each_value(&block)
597
+ else
598
+ enum_for :each_type
599
+ end
600
+ end
601
+
602
+ def map_type_name(&block)
603
+ Record.new(
604
+ all_fields: all_fields.transform_values {|ty, required| [ty.map_type_name(&block), required] },
605
+ location: location
606
+ )
607
+ end
608
+
609
+ def map_type(&block)
610
+ if block
611
+ Record.new(
612
+ all_fields: all_fields.transform_values {|type, required| [yield(type), required] },
613
+ location: location
614
+ )
615
+ else
616
+ enum_for :map_type
617
+ end
618
+ end
619
+
620
+ def has_self_type?
621
+ each_type.any? {|type| type.has_self_type? }
622
+ end
623
+
624
+ def has_classish_type?
625
+ each_type.any? {|type| type.has_classish_type? }
626
+ end
627
+
628
+ def with_nonreturn_void?
629
+ each_type.any? {|type| type.with_nonreturn_void? }
630
+ end
631
+ end
632
+
633
+ class Optional
634
+ attr_reader :type
635
+ attr_reader :location
636
+
637
+ def initialize(type:, location:)
638
+ @type = type
639
+ @location = location
640
+ end
641
+
642
+ def ==(other)
643
+ other.is_a?(Optional) && other.type == type
644
+ end
645
+
646
+ alias eql? ==
647
+
648
+ def hash
649
+ self.class.hash ^ type.hash
650
+ end
651
+
652
+ def free_variables(set = Set.new)
653
+ type.free_variables(set)
654
+ end
655
+
656
+ def to_json(state = _ = nil)
657
+ { class: :optional, type: type, location: location }.to_json(state)
658
+ end
659
+
660
+ def sub(s)
661
+ self.class.new(type: type.sub(s), location: location)
662
+ end
663
+
664
+ def to_s(level = 0)
665
+ case t = type
666
+ when RBS::Types::Literal
667
+ case t.literal
668
+ when Symbol
669
+ return "#{type.to_s(1)} ?"
670
+ end
671
+ when RBS::Types::Proc
672
+ return "(#{type.to_s(1)})?"
673
+ end
674
+
675
+ "#{type.to_s(1)}?"
676
+ end
677
+
678
+ def each_type
679
+ if block_given?
680
+ yield type
681
+ else
682
+ enum_for :each_type
683
+ end
684
+ end
685
+
686
+ def map_type_name(&block)
687
+ Optional.new(
688
+ type: type.map_type_name(&block),
689
+ location: location
690
+ )
691
+ end
692
+
693
+ def map_type(&block)
694
+ if block
695
+ Optional.new(
696
+ type: yield(type),
697
+ location: location
698
+ )
699
+ else
700
+ enum_for :map_type
701
+ end
702
+ end
703
+
704
+ def has_self_type?
705
+ each_type.any? {|type| type.has_self_type? }
706
+ end
707
+
708
+ def has_classish_type?
709
+ each_type.any? {|type| type.has_classish_type? }
710
+ end
711
+
712
+ def with_nonreturn_void?
713
+ each_type.any? {|type| type.with_nonreturn_void? }
714
+ end
715
+ end
716
+
717
+ class Union
718
+ attr_reader :types
719
+ attr_reader :location
720
+
721
+ def initialize(types:, location:)
722
+ @types = types
723
+ @location = location
724
+ end
725
+
726
+ def ==(other)
727
+ other.is_a?(Union) && other.types == types
728
+ end
729
+
730
+ alias eql? ==
731
+
732
+ def hash
733
+ self.class.hash ^ types.hash
734
+ end
735
+
736
+ def free_variables(set = Set.new)
737
+ set.tap do
738
+ types.each do |type|
739
+ type.free_variables set
740
+ end
741
+ end
742
+ end
743
+
744
+ def to_json(state = _ = nil)
745
+ { class: :union, types: types, location: location }.to_json(state)
746
+ end
747
+
748
+ def sub(s)
749
+ self.class.new(types: types.map {|ty| ty.sub(s) },
750
+ location: location)
751
+ end
752
+
753
+ def to_s(level = 0)
754
+ if level > 0
755
+ "(#{types.join(" | ")})"
756
+ else
757
+ types.join(" | ")
758
+ end
759
+ end
760
+
761
+ def each_type(&block)
762
+ if block
763
+ types.each(&block)
764
+ else
765
+ enum_for :each_type
766
+ end
767
+ end
768
+
769
+ def map_type(&block)
770
+ if block
771
+ Union.new(types: types.map(&block), location: location)
772
+ else
773
+ enum_for :map_type
774
+ end
775
+ end
776
+
777
+ def map_type_name(&block)
778
+ Union.new(
779
+ types: types.map {|type| type.map_type_name(&block) },
780
+ location: location
781
+ )
782
+ end
783
+
784
+ def has_self_type?
785
+ each_type.any? {|type| type.has_self_type? }
786
+ end
787
+
788
+ def has_classish_type?
789
+ each_type.any? {|type| type.has_classish_type? }
790
+ end
791
+
792
+ def with_nonreturn_void?
793
+ each_type.any? {|type| type.with_nonreturn_void? }
794
+ end
795
+ end
796
+
797
+ class Intersection
798
+ attr_reader :types
799
+ attr_reader :location
800
+
801
+ def initialize(types:, location:)
802
+ @types = types
803
+ @location = location
804
+ end
805
+
806
+ def ==(other)
807
+ other.is_a?(Intersection) && other.types == types
808
+ end
809
+
810
+ alias eql? ==
811
+
812
+ def hash
813
+ self.class.hash ^ types.hash
814
+ end
815
+
816
+ def free_variables(set = Set.new)
817
+ set.tap do
818
+ types.each do |type|
819
+ type.free_variables set
820
+ end
821
+ end
822
+ end
823
+
824
+ def to_json(state = _ = nil)
825
+ { class: :intersection, types: types, location: location }.to_json(state)
826
+ end
827
+
828
+ def sub(s)
829
+ self.class.new(types: types.map {|ty| ty.sub(s) },
830
+ location: location)
831
+ end
832
+
833
+ def to_s(level = 0)
834
+ strs = types.map {|ty| ty.to_s(2) }
835
+ if level > 0
836
+ "(#{strs.join(" & ")})"
837
+ else
838
+ strs.join(" & ")
839
+ end
840
+ end
841
+
842
+ def each_type(&block)
843
+ if block
844
+ types.each(&block)
845
+ else
846
+ enum_for :each_type
847
+ end
848
+ end
849
+
850
+ def map_type(&block)
851
+ if block
852
+ Intersection.new(types: types.map(&block), location: location)
853
+ else
854
+ enum_for :map_type
855
+ end
856
+ end
857
+
858
+ def map_type_name(&block)
859
+ Intersection.new(
860
+ types: types.map {|type| type.map_type_name(&block) },
861
+ location: location
862
+ )
863
+ end
864
+
865
+ def has_self_type?
866
+ each_type.any? {|type| type.has_self_type? }
867
+ end
868
+
869
+ def has_classish_type?
870
+ each_type.any? {|type| type.has_classish_type? }
871
+ end
872
+
873
+ def with_nonreturn_void?
874
+ each_type.any? {|type| type.with_nonreturn_void? }
875
+ end
876
+ end
877
+
878
+ class Function
879
+ class Param
880
+ attr_reader :type
881
+ attr_reader :name
882
+ attr_reader :location
883
+
884
+ def initialize(type:, name:, location: nil)
885
+ @type = type
886
+ @name = name
887
+ @location = location
888
+ end
889
+
890
+ def ==(other)
891
+ other.is_a?(Param) && other.type == type && other.name == name
892
+ end
893
+
894
+ alias eql? ==
895
+
896
+ def hash
897
+ self.class.hash ^ type.hash ^ name.hash
898
+ end
899
+
900
+ def map_type(&block)
901
+ if block
902
+ Param.new(name: name, type: yield(type), location: location)
903
+ else
904
+ enum_for :map_type
905
+ end
906
+ end
907
+
908
+ def to_json(state = _ = nil)
909
+ { type: type, name: name }.to_json(state)
910
+ end
911
+
912
+ def to_s
913
+ if name
914
+ if name.match?(/\A[a-zA-Z0-9_]+\z/)
915
+ "#{type} #{name}"
916
+ else
917
+ "#{type} `#{name}`"
918
+ end
919
+ else
920
+ "#{type}"
921
+ end
922
+ end
923
+ end
924
+
925
+ attr_reader :required_positionals
926
+ attr_reader :optional_positionals
927
+ attr_reader :rest_positionals
928
+ attr_reader :trailing_positionals
929
+ attr_reader :required_keywords
930
+ attr_reader :optional_keywords
931
+ attr_reader :rest_keywords
932
+ attr_reader :return_type
933
+
934
+ def initialize(required_positionals:, optional_positionals:, rest_positionals:, trailing_positionals:, required_keywords:, optional_keywords:, rest_keywords:, return_type:)
935
+ @return_type = return_type
936
+ @required_positionals = required_positionals
937
+ @optional_positionals = optional_positionals
938
+ @rest_positionals = rest_positionals
939
+ @trailing_positionals = trailing_positionals
940
+ @required_keywords = required_keywords
941
+ @optional_keywords = optional_keywords
942
+ @rest_keywords = rest_keywords
943
+ end
944
+
945
+ def ==(other)
946
+ other.is_a?(Function) &&
947
+ other.required_positionals == required_positionals &&
948
+ other.optional_positionals == optional_positionals &&
949
+ other.rest_positionals == rest_positionals &&
950
+ other.trailing_positionals == trailing_positionals &&
951
+ other.required_keywords == required_keywords &&
952
+ other.optional_keywords == optional_keywords &&
953
+ other.rest_keywords == rest_keywords &&
954
+ other.return_type == return_type
955
+ end
956
+
957
+ alias eql? ==
958
+
959
+ def hash
960
+ self.class.hash ^
961
+ required_positionals.hash ^
962
+ optional_positionals.hash ^
963
+ rest_positionals.hash ^
964
+ trailing_positionals.hash ^
965
+ required_keywords.hash ^
966
+ optional_keywords.hash ^
967
+ rest_keywords.hash ^
968
+ return_type.hash
969
+ end
970
+
971
+ def free_variables(set = Set.new)
972
+ set.tap do
973
+ required_positionals.each do |param|
974
+ param.type.free_variables(set)
975
+ end
976
+ optional_positionals.each do |param|
977
+ param.type.free_variables(set)
978
+ end
979
+ rest_positionals&.yield_self do |param|
980
+ param.type.free_variables(set)
981
+ end
982
+ trailing_positionals.each do |param|
983
+ param.type.free_variables(set)
984
+ end
985
+ required_keywords.each_value do |param|
986
+ param.type.free_variables(set)
987
+ end
988
+ optional_keywords.each_value do |param|
989
+ param.type.free_variables(set)
990
+ end
991
+ rest_keywords&.yield_self do |param|
992
+ param.type.free_variables(set)
993
+ end
994
+
995
+ return_type.free_variables(set)
996
+ end
997
+ end
998
+
999
+ def map_type(&block)
1000
+ if block
1001
+ Function.new(
1002
+ required_positionals: amap(required_positionals) {|param| param.map_type(&block) },
1003
+ optional_positionals: amap(optional_positionals) {|param| param.map_type(&block) },
1004
+ rest_positionals: rest_positionals&.yield_self {|param| param.map_type(&block) },
1005
+ trailing_positionals: amap(trailing_positionals) {|param| param.map_type(&block) },
1006
+ required_keywords: hmapv(required_keywords) {|param| param.map_type(&block) },
1007
+ optional_keywords: hmapv(optional_keywords) {|param| param.map_type(&block) },
1008
+ rest_keywords: rest_keywords&.yield_self {|param| param.map_type(&block) },
1009
+ return_type: yield(return_type)
1010
+ )
1011
+ else
1012
+ enum_for :map_type
1013
+ end
1014
+ end
1015
+
1016
+ def amap(array, &block)
1017
+ if array.empty?
1018
+ _ = array
1019
+ else
1020
+ array.map(&block)
1021
+ end
1022
+ end
1023
+
1024
+ def hmapv(hash, &block)
1025
+ if hash.empty?
1026
+ _ = hash
1027
+ else
1028
+ hash.transform_values(&block)
1029
+ end
1030
+ end
1031
+
1032
+ def map_type_name(&block)
1033
+ map_type do |type|
1034
+ type.map_type_name(&block)
1035
+ end
1036
+ end
1037
+
1038
+ def each_type
1039
+ if block_given?
1040
+ required_positionals.each {|param| yield param.type }
1041
+ optional_positionals.each {|param| yield param.type }
1042
+ rest_positionals&.yield_self {|param| yield param.type }
1043
+ trailing_positionals.each {|param| yield param.type }
1044
+ required_keywords.each_value {|param| yield param.type }
1045
+ optional_keywords.each_value {|param| yield param.type }
1046
+ rest_keywords&.yield_self {|param| yield param.type }
1047
+ yield(return_type)
1048
+ else
1049
+ enum_for :each_type
1050
+ end
1051
+ end
1052
+
1053
+ def each_param(&block)
1054
+ if block
1055
+ required_positionals.each(&block)
1056
+ optional_positionals.each(&block)
1057
+ rest_positionals&.yield_self(&block)
1058
+ trailing_positionals.each(&block)
1059
+ required_keywords.each_value(&block)
1060
+ optional_keywords.each_value(&block)
1061
+ rest_keywords&.yield_self(&block)
1062
+ else
1063
+ enum_for :each_param
1064
+ end
1065
+ end
1066
+
1067
+ def to_json(state = _ = nil)
1068
+ {
1069
+ required_positionals: required_positionals,
1070
+ optional_positionals: optional_positionals,
1071
+ rest_positionals: rest_positionals,
1072
+ trailing_positionals: trailing_positionals,
1073
+ required_keywords: required_keywords,
1074
+ optional_keywords: optional_keywords,
1075
+ rest_keywords: rest_keywords,
1076
+ return_type: return_type
1077
+ }.to_json(state)
1078
+ end
1079
+
1080
+ def sub(s)
1081
+ map_type {|ty| ty.sub(s) }
1082
+ end
1083
+
1084
+ def self.empty(return_type)
1085
+ Function.new(
1086
+ required_positionals: [],
1087
+ optional_positionals: [],
1088
+ rest_positionals: nil,
1089
+ trailing_positionals: [],
1090
+ required_keywords: {},
1091
+ optional_keywords: {},
1092
+ rest_keywords: nil,
1093
+ return_type: return_type
1094
+ )
1095
+ end
1096
+
1097
+ def with_return_type(type)
1098
+ Function.new(
1099
+ required_positionals: required_positionals,
1100
+ optional_positionals: optional_positionals,
1101
+ rest_positionals: rest_positionals,
1102
+ trailing_positionals: trailing_positionals,
1103
+ required_keywords: required_keywords,
1104
+ optional_keywords: optional_keywords,
1105
+ rest_keywords: rest_keywords,
1106
+ return_type: type
1107
+ )
1108
+ end
1109
+
1110
+ def update(required_positionals: self.required_positionals, optional_positionals: self.optional_positionals, rest_positionals: self.rest_positionals, trailing_positionals: self.trailing_positionals,
1111
+ required_keywords: self.required_keywords, optional_keywords: self.optional_keywords, rest_keywords: self.rest_keywords, return_type: self.return_type)
1112
+ Function.new(
1113
+ required_positionals: required_positionals,
1114
+ optional_positionals: optional_positionals,
1115
+ rest_positionals: rest_positionals,
1116
+ trailing_positionals: trailing_positionals,
1117
+ required_keywords: required_keywords,
1118
+ optional_keywords: optional_keywords,
1119
+ rest_keywords: rest_keywords,
1120
+ return_type: return_type
1121
+ )
1122
+ end
1123
+
1124
+ def empty?
1125
+ required_positionals.empty? &&
1126
+ optional_positionals.empty? &&
1127
+ !rest_positionals &&
1128
+ trailing_positionals.empty? &&
1129
+ required_keywords.empty? &&
1130
+ optional_keywords.empty? &&
1131
+ !rest_keywords
1132
+ end
1133
+
1134
+ def param_to_s
1135
+ # @type var params: Array[String]
1136
+ params = []
1137
+
1138
+ params.push(*required_positionals.map(&:to_s))
1139
+ params.push(*optional_positionals.map {|p| "?#{p}"})
1140
+ params.push("*#{rest_positionals}") if rest_positionals
1141
+ params.push(*trailing_positionals.map(&:to_s))
1142
+ params.push(*required_keywords.map {|name, param| "#{name}: #{param}" })
1143
+ params.push(*optional_keywords.map {|name, param| "?#{name}: #{param}" })
1144
+ params.push("**#{rest_keywords}") if rest_keywords
1145
+
1146
+ params.join(", ")
1147
+ end
1148
+
1149
+ def return_to_s
1150
+ return_type.to_s(1)
1151
+ end
1152
+
1153
+ def drop_head
1154
+ case
1155
+ when !required_positionals.empty?
1156
+ [
1157
+ required_positionals[0],
1158
+ update(required_positionals: required_positionals.drop(1))
1159
+ ]
1160
+ when !optional_positionals.empty?
1161
+ [
1162
+ optional_positionals[0],
1163
+ update(optional_positionals: optional_positionals.drop(1))
1164
+ ]
1165
+ else
1166
+ raise "Cannot #drop_head"
1167
+ end
1168
+ end
1169
+
1170
+ def drop_tail
1171
+ case
1172
+ when !trailing_positionals.empty?
1173
+ last = trailing_positionals.last or raise
1174
+ [
1175
+ last,
1176
+ update(trailing_positionals: trailing_positionals.take(trailing_positionals.size - 1))
1177
+ ]
1178
+ else
1179
+ raise "Cannot #drop_tail"
1180
+ end
1181
+ end
1182
+
1183
+ def has_keyword?
1184
+ if !required_keywords.empty? || !optional_keywords.empty? || rest_keywords
1185
+ true
1186
+ else
1187
+ false
1188
+ end
1189
+ end
1190
+
1191
+ def has_self_type?
1192
+ each_type.any? {|type| type.has_self_type? }
1193
+ end
1194
+
1195
+ def has_classish_type?
1196
+ each_type.any? {|type| type.has_classish_type? }
1197
+ end
1198
+
1199
+ def with_nonreturn_void?
1200
+ if each_param.any? {|param| param.type.with_nonreturn_void? }
1201
+ true
1202
+ else
1203
+ if return_type.is_a?(Bases::Void)
1204
+ false
1205
+ else
1206
+ return_type.with_nonreturn_void?
1207
+ end
1208
+ end
1209
+ end
1210
+ end
1211
+
1212
+ class UntypedFunction
1213
+ attr_reader :return_type
1214
+
1215
+ def initialize(return_type:)
1216
+ @return_type = return_type
1217
+ end
1218
+
1219
+ def free_variables(acc = Set.new)
1220
+ return_type.free_variables(acc)
1221
+ end
1222
+
1223
+ def map_type(&block)
1224
+ if block
1225
+ update(return_type: yield(return_type))
1226
+ else
1227
+ enum_for :map_type
1228
+ end
1229
+ end
1230
+
1231
+ def map_type_name(&block)
1232
+ UntypedFunction.new(
1233
+ return_type: return_type.map_type_name(&block)
1234
+ )
1235
+ end
1236
+
1237
+ def each_type(&block)
1238
+ if block
1239
+ yield return_type
1240
+ else
1241
+ enum_for :each_type
1242
+ end
1243
+ end
1244
+
1245
+ def each_param(&block)
1246
+ if block
1247
+ # noop
1248
+ else
1249
+ enum_for :each_param
1250
+ end
1251
+ end
1252
+
1253
+ def to_json(state = _ = nil)
1254
+ {
1255
+ return_type: return_type
1256
+ }.to_json(state)
1257
+ end
1258
+
1259
+ def sub(subst)
1260
+ map_type { _1.sub(subst) }
1261
+ end
1262
+
1263
+ def with_return_type(ty)
1264
+ update(return_type: ty)
1265
+ end
1266
+
1267
+ def update(return_type: self.return_type)
1268
+ UntypedFunction.new(return_type: return_type)
1269
+ end
1270
+
1271
+ def empty?
1272
+ true
1273
+ end
1274
+
1275
+ def has_self_type?
1276
+ return_type.has_self_type?
1277
+ end
1278
+
1279
+ def has_classish_type?
1280
+ return_type.has_classish_type?
1281
+ end
1282
+
1283
+ def with_nonreturn_void?
1284
+ false
1285
+ end
1286
+
1287
+ def param_to_s
1288
+ "?"
1289
+ end
1290
+
1291
+ def return_to_s
1292
+ return_type.to_s(1)
1293
+ end
1294
+
1295
+ def ==(other)
1296
+ other.is_a?(UntypedFunction) && other.return_type == return_type
1297
+ end
1298
+
1299
+ alias eql? ==
1300
+
1301
+ def hash
1302
+ self.class.hash ^ return_type.hash
1303
+ end
1304
+
1305
+ end
1306
+
1307
+ class Block
1308
+ attr_reader :type
1309
+ attr_reader :required
1310
+ attr_reader :self_type
1311
+
1312
+ def initialize(type:, required:, self_type: nil)
1313
+ @type = type
1314
+ @required = required ? true : false
1315
+ @self_type = self_type
1316
+ end
1317
+
1318
+ def ==(other)
1319
+ other.is_a?(Block) &&
1320
+ other.type == type &&
1321
+ other.required == required &&
1322
+ other.self_type == self_type
1323
+ end
1324
+
1325
+ def to_json(state = _ = nil)
1326
+ {
1327
+ type: type,
1328
+ required: required,
1329
+ self_type: self_type
1330
+ }.to_json(state)
1331
+ end
1332
+
1333
+ def sub(s)
1334
+ self.class.new(
1335
+ type: type.sub(s),
1336
+ required: required,
1337
+ self_type: self_type&.sub(s)
1338
+ )
1339
+ end
1340
+
1341
+ def map_type(&block)
1342
+ Block.new(
1343
+ required: required,
1344
+ type: type.map_type(&block),
1345
+ self_type: self_type ? yield(self_type) : nil
1346
+ )
1347
+ end
1348
+ end
1349
+
1350
+ module SelfTypeBindingHelper
1351
+ module_function
1352
+
1353
+ def self_type_binding_to_s(t)
1354
+ if t
1355
+ "[self: #{t}] "
1356
+ else
1357
+ ""
1358
+ end
1359
+ end
1360
+ end
1361
+
1362
+ class Proc
1363
+ attr_reader :type
1364
+ attr_reader :block
1365
+ attr_reader :self_type
1366
+ attr_reader :location
1367
+
1368
+ def initialize(location:, type:, block:, self_type: nil)
1369
+ @type = type
1370
+ @block = block
1371
+ @location = location
1372
+ @self_type = self_type
1373
+ end
1374
+
1375
+ def ==(other)
1376
+ other.is_a?(Proc) && other.type == type && other.block == block && other.self_type == self_type
1377
+ end
1378
+
1379
+ alias eql? ==
1380
+
1381
+ def hash
1382
+ self.class.hash ^ type.hash ^ block.hash ^ self_type.hash
1383
+ end
1384
+
1385
+ def free_variables(set = Set[])
1386
+ type.free_variables(set)
1387
+ block&.type&.free_variables(set)
1388
+ self_type&.free_variables(set)
1389
+ set
1390
+ end
1391
+
1392
+ def to_json(state = _ = nil)
1393
+ {
1394
+ class: :proc,
1395
+ type: type,
1396
+ block: block,
1397
+ location: location,
1398
+ self_type: self_type
1399
+ }.to_json(state)
1400
+ end
1401
+
1402
+ def sub(s)
1403
+ self.class.new(
1404
+ type: type.sub(s),
1405
+ block: block&.sub(s),
1406
+ self_type: self_type&.sub(s),
1407
+ location: location
1408
+ )
1409
+ end
1410
+
1411
+ def to_s(level = 0)
1412
+ self_binding = SelfTypeBindingHelper.self_type_binding_to_s(self_type)
1413
+ block_self_binding = SelfTypeBindingHelper.self_type_binding_to_s(block&.self_type)
1414
+
1415
+ case
1416
+ when b = block
1417
+ if b.required
1418
+ "^(#{type.param_to_s}) #{self_binding}{ (#{b.type.param_to_s}) #{block_self_binding}-> #{b.type.return_to_s} } -> #{type.return_to_s}"
1419
+ else
1420
+ "^(#{type.param_to_s}) #{self_binding}?{ (#{b.type.param_to_s}) #{block_self_binding}-> #{b.type.return_to_s} } -> #{type.return_to_s}"
1421
+ end
1422
+ else
1423
+ "^(#{type.param_to_s}) #{self_binding}-> #{type.return_to_s}"
1424
+ end
1425
+ end
1426
+
1427
+ def each_type(&block)
1428
+ if block
1429
+ type.each_type(&block)
1430
+ yield self_type if self_type
1431
+ self.block&.type&.each_type(&block)
1432
+ if self_type = self.block&.self_type
1433
+ yield self_type
1434
+ end
1435
+ else
1436
+ enum_for :each_type
1437
+ end
1438
+ end
1439
+
1440
+ def map_type_name(&block)
1441
+ Proc.new(
1442
+ type: type.map_type_name(&block),
1443
+ block: self.block&.map_type {|type| type.map_type_name(&block) },
1444
+ self_type: self_type&.map_type_name(&block),
1445
+ location: location
1446
+ )
1447
+ end
1448
+
1449
+ def map_type(&block)
1450
+ if block
1451
+ Proc.new(
1452
+ type: type.map_type(&block),
1453
+ block: self.block&.map_type(&block),
1454
+ self_type: self_type ? yield(self_type) : nil,
1455
+ location: location
1456
+ )
1457
+ else
1458
+ enum_for :map_type
1459
+ end
1460
+ end
1461
+
1462
+ def has_self_type?
1463
+ each_type.any? {|type| type.has_self_type? }
1464
+ end
1465
+
1466
+ def has_classish_type?
1467
+ each_type.any? {|type| type.has_classish_type? }
1468
+ end
1469
+
1470
+ def with_nonreturn_void?
1471
+ if type.with_nonreturn_void? || self_type&.with_nonreturn_void?
1472
+ true
1473
+ else
1474
+ if block = block()
1475
+ block.type.with_nonreturn_void? || block.self_type&.with_nonreturn_void? || false
1476
+ else
1477
+ false
1478
+ end
1479
+ end
1480
+ end
1481
+ end
1482
+
1483
+ class Literal
1484
+ attr_reader :literal
1485
+ attr_reader :location
1486
+
1487
+ def initialize(literal:, location:)
1488
+ @literal = literal
1489
+ @location = location
1490
+ end
1491
+
1492
+ def ==(other)
1493
+ other.is_a?(Literal) && other.literal == literal
1494
+ end
1495
+
1496
+ alias eql? ==
1497
+
1498
+ def hash
1499
+ self.class.hash ^ literal.hash
1500
+ end
1501
+
1502
+ include NoFreeVariables
1503
+ include NoSubst
1504
+ include EmptyEachType
1505
+ include NoTypeName
1506
+
1507
+ def to_json(state = _ = nil)
1508
+ { class: :literal, literal: literal.inspect, location: location }.to_json(state)
1509
+ end
1510
+
1511
+ def to_s(level = 0)
1512
+ literal.inspect
1513
+ end
1514
+
1515
+ def has_self_type?
1516
+ false
1517
+ end
1518
+
1519
+ def has_classish_type?
1520
+ false
1521
+ end
1522
+
1523
+ def with_nonreturn_void?
1524
+ false
1525
+ end
1526
+
1527
+ TABLE = {
1528
+ "\\a" => "\a",
1529
+ "\\b" => "\b",
1530
+ "\\e" => "\033",
1531
+ "\\f" => "\f",
1532
+ "\\n" => "\n",
1533
+ "\\r" => "\r",
1534
+ "\\s" => " ",
1535
+ "\\t" => "\t",
1536
+ "\\v" => "\v",
1537
+ "\\\"" => "\"",
1538
+ "\\\'" => "'",
1539
+ "\\\\" => "\\",
1540
+ "\\" => ""
1541
+ }
1542
+
1543
+ def self.unescape_string(string, is_double_quote)
1544
+ if is_double_quote
1545
+ string.gsub!(/\\([0-9]{1,3})/) { ($1 || "").to_i(8).chr }
1546
+ string.gsub!(/\\x([0-9a-f]{1,2})/) { ($1 || "").to_i(16).chr }
1547
+ string.gsub!(/\\u([0-9a-fA-F]{4})/) { ($1 || "").to_i(16).chr(Encoding::UTF_8) }
1548
+ string.gsub!(/\\[abefnrstv"'\\]?/, TABLE)
1549
+ string
1550
+ else
1551
+ string.gsub!(/\\['\\]/, TABLE)
1552
+ string
1553
+ end
1554
+ end
1555
+ end
1556
+ end
1557
+ end