@ai-ecoverse/wasix-ruby 3.4.11-2 → 3.4.11-20

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 (725) hide show
  1. package/PRESTAGE.md +53 -16
  2. package/README.md +156 -0
  3. package/THIRD-PARTY-NOTICES.md +727 -0
  4. package/bin/bundle +1 -1
  5. package/bin/bundler +1 -1
  6. package/bin/erb +1 -1
  7. package/bin/gem +1 -1
  8. package/bin/irb +1 -1
  9. package/bin/rake +1 -1
  10. package/bin/{ruby.wasm → ruby} +0 -0
  11. package/lib/ruby/3.4.0/io/console/size.rb +23 -0
  12. package/lib/ruby/3.4.0/socket.rb +1790 -0
  13. package/lib/ruby/3.4.0/wasm32-wasi/rbconfig.rb +38 -34
  14. package/lib/ruby/gems/3.4.0/cache/abbrev-0.1.2.gem +0 -0
  15. package/lib/ruby/gems/3.4.0/cache/base64-0.2.0.gem +0 -0
  16. package/lib/ruby/gems/3.4.0/cache/csv-3.3.2.gem +0 -0
  17. package/lib/ruby/gems/3.4.0/cache/drb-2.2.1.gem +0 -0
  18. package/lib/ruby/gems/3.4.0/cache/getoptlong-0.2.1.gem +0 -0
  19. package/lib/ruby/gems/3.4.0/cache/matrix-0.4.2.gem +0 -0
  20. package/lib/ruby/gems/3.4.0/cache/minitest-5.25.4.gem +0 -0
  21. package/lib/ruby/gems/3.4.0/cache/mutex_m-0.3.0.gem +0 -0
  22. package/lib/ruby/gems/3.4.0/cache/net-ftp-0.3.8.gem +0 -0
  23. package/lib/ruby/gems/3.4.0/cache/net-imap-0.5.15.gem +0 -0
  24. package/lib/ruby/gems/3.4.0/cache/net-pop-0.1.2.gem +0 -0
  25. package/lib/ruby/gems/3.4.0/cache/net-smtp-0.5.1.gem +0 -0
  26. package/lib/ruby/gems/3.4.0/cache/observer-0.1.2.gem +0 -0
  27. package/lib/ruby/gems/3.4.0/cache/power_assert-2.0.5.gem +0 -0
  28. package/lib/ruby/gems/3.4.0/cache/prime-0.1.3.gem +0 -0
  29. package/lib/ruby/gems/3.4.0/cache/rake-13.2.1.gem +0 -0
  30. package/lib/ruby/gems/3.4.0/cache/repl_type_completor-0.1.9.gem +0 -0
  31. package/lib/ruby/gems/3.4.0/cache/resolv-replace-0.1.1.gem +0 -0
  32. package/lib/ruby/gems/3.4.0/cache/rexml-3.4.4.gem +0 -0
  33. package/lib/ruby/gems/3.4.0/cache/rinda-0.2.0.gem +0 -0
  34. package/lib/ruby/gems/3.4.0/cache/rss-0.3.1.gem +0 -0
  35. package/lib/ruby/gems/3.4.0/cache/test-unit-3.6.7.gem +0 -0
  36. package/lib/ruby/gems/3.4.0/cache/typeprof-0.30.1.gem +0 -0
  37. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/console +0 -0
  38. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/bin/setup +0 -0
  39. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundle +29 -0
  40. package/lib/ruby/gems/3.4.0/gems/bundler-2.6.9/exe/bundler +4 -0
  41. package/lib/ruby/gems/3.4.0/gems/erb-4.0.4.1/libexec/erb +164 -0
  42. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/console +0 -0
  43. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/bin/setup +0 -0
  44. package/lib/ruby/gems/3.4.0/gems/irb-1.14.3/exe/irb +9 -0
  45. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/console +0 -0
  46. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/bin/setup +0 -0
  47. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/rdoc +43 -0
  48. package/lib/ruby/gems/3.4.0/gems/rdoc-6.14.0/exe/ri +12 -0
  49. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/console +0 -0
  50. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/bin/setup +0 -0
  51. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/console +0 -0
  52. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/bin/setup +0 -0
  53. package/lib/ruby/gems/3.4.0/gems/syntax_suggest-2.0.3/exe/syntax_suggest +7 -0
  54. package/lib/ruby/gems/3.4.0/specifications/abbrev-0.1.2.gemspec +5 -4
  55. package/lib/ruby/gems/3.4.0/specifications/base64-0.2.0.gemspec +4 -3
  56. package/lib/ruby/gems/3.4.0/specifications/csv-3.3.2.gemspec +5 -3
  57. package/lib/ruby/gems/3.4.0/specifications/default/benchmark-0.4.0.gemspec +22 -0
  58. package/lib/ruby/gems/3.4.0/specifications/default/bundler-2.6.9.gemspec +23 -0
  59. package/lib/ruby/gems/3.4.0/specifications/default/cgi-0.4.2.gemspec +23 -0
  60. package/lib/ruby/gems/3.4.0/specifications/default/date-3.4.1.gemspec +23 -0
  61. package/lib/ruby/gems/3.4.0/specifications/default/delegate-0.4.0.gemspec +21 -0
  62. package/lib/ruby/gems/3.4.0/specifications/default/did_you_mean-2.0.0.gemspec +20 -0
  63. package/lib/ruby/gems/3.4.0/specifications/default/digest-3.2.0.gemspec +22 -0
  64. package/lib/ruby/gems/3.4.0/specifications/default/english-0.8.0.gemspec +21 -0
  65. package/lib/ruby/gems/3.4.0/specifications/default/erb-4.0.4.1.gemspec +29 -0
  66. package/lib/ruby/gems/3.4.0/specifications/default/error_highlight-0.7.0.gemspec +20 -0
  67. package/lib/ruby/gems/3.4.0/specifications/default/etc-1.4.6.gemspec +25 -0
  68. package/lib/ruby/gems/3.4.0/specifications/default/fcntl-1.2.0.gemspec +24 -0
  69. package/lib/ruby/gems/3.4.0/specifications/default/fileutils-1.7.3.gemspec +21 -0
  70. package/lib/ruby/gems/3.4.0/specifications/default/find-0.2.0.gemspec +21 -0
  71. package/lib/ruby/gems/3.4.0/specifications/default/forwardable-1.3.3.gemspec +21 -0
  72. package/lib/ruby/gems/3.4.0/specifications/default/io-console-0.8.1.gemspec +23 -0
  73. package/lib/ruby/gems/3.4.0/specifications/default/io-nonblock-0.3.2.gemspec +23 -0
  74. package/lib/ruby/gems/3.4.0/specifications/default/io-wait-0.3.2.gemspec +24 -0
  75. package/lib/ruby/gems/3.4.0/specifications/default/ipaddr-1.2.7.gemspec +20 -0
  76. package/lib/ruby/gems/3.4.0/specifications/default/irb-1.14.3.gemspec +28 -0
  77. package/lib/ruby/gems/3.4.0/specifications/default/json-2.9.1.gemspec +23 -0
  78. package/lib/ruby/gems/3.4.0/specifications/default/logger-1.6.4.gemspec +20 -0
  79. package/lib/ruby/gems/3.4.0/specifications/default/net-http-0.6.0.gemspec +26 -0
  80. package/lib/ruby/gems/3.4.0/specifications/default/net-protocol-0.2.2.gemspec +25 -0
  81. package/lib/ruby/gems/3.4.0/specifications/default/open-uri-0.5.0.gemspec +27 -0
  82. package/lib/ruby/gems/3.4.0/specifications/default/open3-0.2.1.gemspec +22 -0
  83. package/lib/ruby/gems/3.4.0/specifications/default/openssl-3.3.3.gemspec +24 -0
  84. package/lib/ruby/gems/3.4.0/specifications/default/optparse-0.6.0.gemspec +23 -0
  85. package/lib/ruby/gems/3.4.0/specifications/default/ostruct-0.6.1.gemspec +20 -0
  86. package/lib/ruby/gems/3.4.0/specifications/default/pathname-0.4.0.gemspec +24 -0
  87. package/lib/ruby/gems/3.4.0/specifications/default/pp-0.6.2.gemspec +26 -0
  88. package/lib/ruby/gems/3.4.0/specifications/default/prettyprint-0.2.0.gemspec +22 -0
  89. package/lib/ruby/gems/3.4.0/specifications/default/prism-1.5.3.gemspec +22 -0
  90. package/lib/ruby/gems/3.4.0/specifications/default/pstore-0.2.1.gemspec +21 -0
  91. package/lib/ruby/gems/3.4.0/specifications/default/psych-5.2.2.gemspec +30 -0
  92. package/lib/ruby/gems/3.4.0/specifications/default/rdoc-6.14.0.gemspec +30 -0
  93. package/lib/ruby/gems/3.4.0/specifications/default/readline-0.0.4.gemspec +23 -0
  94. package/lib/ruby/gems/3.4.0/specifications/default/reline-0.6.0.gemspec +25 -0
  95. package/lib/ruby/gems/3.4.0/specifications/default/resolv-0.7.2.gemspec +24 -0
  96. package/lib/ruby/gems/3.4.0/specifications/default/ruby2_keywords-0.0.5.gemspec +20 -0
  97. package/lib/ruby/gems/3.4.0/specifications/default/securerandom-0.4.1.gemspec +22 -0
  98. package/lib/ruby/gems/3.4.0/specifications/default/set-1.1.1.gemspec +21 -0
  99. package/lib/ruby/gems/3.4.0/specifications/default/shellwords-0.2.2.gemspec +22 -0
  100. package/lib/ruby/gems/3.4.0/specifications/default/singleton-0.3.0.gemspec +21 -0
  101. package/lib/ruby/gems/3.4.0/specifications/default/stringio-3.1.2.gemspec +23 -0
  102. package/lib/ruby/gems/3.4.0/specifications/default/strscan-3.1.2.gemspec +24 -0
  103. package/lib/ruby/gems/3.4.0/specifications/default/syntax_suggest-2.0.3.gemspec +23 -0
  104. package/lib/ruby/gems/3.4.0/specifications/default/tempfile-0.3.1.gemspec +21 -0
  105. package/lib/ruby/gems/3.4.0/specifications/default/time-0.4.1.gemspec +26 -0
  106. package/lib/ruby/gems/3.4.0/specifications/default/timeout-0.4.3.gemspec +21 -0
  107. package/lib/ruby/gems/3.4.0/specifications/default/tmpdir-0.3.1.gemspec +26 -0
  108. package/lib/ruby/gems/3.4.0/specifications/default/tsort-0.2.0.gemspec +22 -0
  109. package/lib/ruby/gems/3.4.0/specifications/default/un-0.3.0.gemspec +22 -0
  110. package/lib/ruby/gems/3.4.0/specifications/default/uri-1.0.4.gemspec +22 -0
  111. package/lib/ruby/gems/3.4.0/specifications/default/weakref-0.1.3.gemspec +25 -0
  112. package/lib/ruby/gems/3.4.0/specifications/default/yaml-0.4.0.gemspec +21 -0
  113. package/lib/ruby/gems/3.4.0/specifications/default/zlib-3.2.3.gemspec +23 -0
  114. package/lib/ruby/gems/3.4.0/specifications/drb-2.2.1.gemspec +5 -4
  115. package/lib/ruby/gems/3.4.0/specifications/getoptlong-0.2.1.gemspec +5 -4
  116. package/lib/ruby/gems/3.4.0/specifications/matrix-0.4.2.gemspec +5 -4
  117. package/lib/ruby/gems/3.4.0/specifications/minitest-5.25.4.gemspec +7 -5
  118. package/lib/ruby/gems/3.4.0/specifications/mutex_m-0.3.0.gemspec +4 -3
  119. package/lib/ruby/gems/3.4.0/specifications/net-ftp-0.3.8.gemspec +10 -4
  120. package/lib/ruby/gems/3.4.0/specifications/net-imap-0.5.15.gemspec +7 -5
  121. package/lib/ruby/gems/3.4.0/specifications/net-pop-0.1.2.gemspec +9 -4
  122. package/lib/ruby/gems/3.4.0/specifications/net-smtp-0.5.1.gemspec +9 -4
  123. package/lib/ruby/gems/3.4.0/specifications/observer-0.1.2.gemspec +5 -4
  124. package/lib/ruby/gems/3.4.0/specifications/power_assert-2.0.5.gemspec +6 -4
  125. package/lib/ruby/gems/3.4.0/specifications/prime-0.1.3.gemspec +10 -4
  126. package/lib/ruby/gems/3.4.0/specifications/rake-13.2.1.gemspec +6 -4
  127. package/lib/ruby/gems/3.4.0/specifications/repl_type_completor-0.1.9.gemspec +6 -5
  128. package/lib/ruby/gems/3.4.0/specifications/resolv-replace-0.1.1.gemspec +6 -5
  129. package/lib/ruby/gems/3.4.0/specifications/rexml-3.4.4.gemspec +5 -3
  130. package/lib/ruby/gems/3.4.0/specifications/rinda-0.2.0.gemspec +8 -5
  131. package/lib/ruby/gems/3.4.0/specifications/rss-0.3.1.gemspec +5 -4
  132. package/lib/ruby/gems/3.4.0/specifications/test-unit-3.6.7.gemspec +5 -4
  133. package/lib/ruby/gems/3.4.0/specifications/typeprof-0.30.1.gemspec +7 -5
  134. package/package.json +60 -21
  135. package/lib/ruby/3.4.0/expect.rb +0 -71
  136. package/lib/ruby/gems/3.4.0/gems/abbrev-0.1.2/abbrev.gemspec +0 -29
  137. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/.bundled.bigdecimal-3.1.8.gemspec +0 -23
  138. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/LICENSE +0 -56
  139. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal-3.1.8.gemspec +0 -23
  140. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/bigdecimal.gemspec +0 -50
  141. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/jacobian.rb +0 -90
  142. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/ludcmp.rb +0 -89
  143. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/math.rb +0 -232
  144. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/newton.rb +0 -80
  145. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal/util.rb +0 -185
  146. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/lib/bigdecimal.rb +0 -5
  147. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/linear.rb +0 -74
  148. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/nlsolve.rb +0 -40
  149. package/lib/ruby/gems/3.4.0/gems/bigdecimal-3.1.8/sample/pi.rb +0 -21
  150. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/.bundled.debug-1.11.0.gemspec +0 -25
  151. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/CONTRIBUTING.md +0 -573
  152. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Gemfile +0 -10
  153. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/LICENSE.txt +0 -22
  154. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/README.md +0 -996
  155. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/Rakefile +0 -57
  156. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/TODO.md +0 -23
  157. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug-1.11.0.gemspec +0 -30
  158. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/debug.gemspec +0 -33
  159. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/exe/rdbg +0 -53
  160. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/abbrev_command.rb +0 -77
  161. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/breakpoint.rb +0 -556
  162. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/client.rb +0 -263
  163. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/color.rb +0 -123
  164. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/config.rb +0 -592
  165. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/console.rb +0 -224
  166. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/dap_custom/traceInspector.rb +0 -336
  167. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/frame_info.rb +0 -190
  168. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/irb_integration.rb +0 -37
  169. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/local.rb +0 -115
  170. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open.rb +0 -13
  171. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/open_nonstop.rb +0 -15
  172. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/prelude.rb +0 -50
  173. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server.rb +0 -534
  174. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_cdp.rb +0 -1348
  175. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/server_dap.rb +0 -1108
  176. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/session.rb +0 -2667
  177. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/source_repository.rb +0 -150
  178. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/start.rb +0 -5
  179. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/thread_client.rb +0 -1457
  180. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/tracer.rb +0 -241
  181. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug/version.rb +0 -5
  182. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/lib/debug.rb +0 -9
  183. package/lib/ruby/gems/3.4.0/gems/debug-1.11.0/misc/README.md.erb +0 -660
  184. package/lib/ruby/gems/3.4.0/gems/drb-2.2.1/drb.gemspec +0 -41
  185. package/lib/ruby/gems/3.4.0/gems/getoptlong-0.2.1/getoptlong.gemspec +0 -30
  186. package/lib/ruby/gems/3.4.0/gems/matrix-0.4.2/matrix.gemspec +0 -26
  187. package/lib/ruby/gems/3.4.0/gems/minitest-5.25.4/.autotest +0 -34
  188. package/lib/ruby/gems/3.4.0/gems/net-ftp-0.3.8/net-ftp.gemspec +0 -34
  189. package/lib/ruby/gems/3.4.0/gems/net-imap-0.5.15/net-imap.gemspec +0 -38
  190. package/lib/ruby/gems/3.4.0/gems/net-pop-0.1.2/net-pop.gemspec +0 -32
  191. package/lib/ruby/gems/3.4.0/gems/net-smtp-0.5.1/net-smtp.gemspec +0 -31
  192. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/.bundled.nkf-0.2.0.gemspec +0 -24
  193. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Gemfile +0 -5
  194. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/LICENSE.txt +0 -22
  195. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/README.md +0 -38
  196. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/Rakefile +0 -24
  197. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/console +0 -14
  198. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/bin/setup +0 -8
  199. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/kconv.rb +0 -283
  200. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/lib/nkf.rb +0 -6
  201. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf-0.2.0.gemspec +0 -24
  202. package/lib/ruby/gems/3.4.0/gems/nkf-0.2.0/nkf.gemspec +0 -43
  203. package/lib/ruby/gems/3.4.0/gems/observer-0.1.2/observer.gemspec +0 -32
  204. package/lib/ruby/gems/3.4.0/gems/power_assert-2.0.5/power_assert.gemspec +0 -24
  205. package/lib/ruby/gems/3.4.0/gems/prime-0.1.3/prime.gemspec +0 -28
  206. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/.bundled.racc-1.8.1.gemspec +0 -26
  207. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/BSDL +0 -22
  208. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/COPYING +0 -56
  209. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/ChangeLog +0 -846
  210. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
  211. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/README.rdoc +0 -60
  212. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/TODO +0 -5
  213. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/bin/racc +0 -320
  214. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar.en.rdoc +0 -218
  215. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/en/grammar2.en.rdoc +0 -219
  216. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/command.ja.html +0 -99
  217. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/debug.ja.rdoc +0 -36
  218. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/grammar.ja.rdoc +0 -348
  219. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/index.ja.html +0 -10
  220. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/parser.ja.rdoc +0 -125
  221. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/doc/ja/usage.ja.html +0 -414
  222. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
  223. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
  224. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
  225. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
  226. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
  227. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
  228. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
  229. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
  230. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
  231. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
  232. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
  233. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
  234. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
  235. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
  236. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
  237. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/lib/racc.rb +0 -6
  238. package/lib/ruby/gems/3.4.0/gems/racc-1.8.1/racc-1.8.1.gemspec +0 -26
  239. package/lib/ruby/gems/3.4.0/gems/rake-13.2.1/rake.gemspec +0 -101
  240. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.bundled.rbs-3.8.0.gemspec +0 -25
  241. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/.rubocop.yml +0 -53
  242. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/BSDL +0 -22
  243. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/CHANGELOG.md +0 -1854
  244. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/COPYING +0 -56
  245. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/README.md +0 -203
  246. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Rakefile +0 -415
  247. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/Steepfile +0 -44
  248. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/config.yml +0 -311
  249. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/array.rbs +0 -4062
  250. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/basic_object.rbs +0 -375
  251. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/binding.rbs +0 -150
  252. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/builtin.rbs +0 -277
  253. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/class.rbs +0 -220
  254. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/comparable.rbs +0 -171
  255. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/complex.rbs +0 -786
  256. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/constants.rbs +0 -96
  257. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/data.rbs +0 -415
  258. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/dir.rbs +0 -981
  259. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/encoding.rbs +0 -1371
  260. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerable.rbs +0 -2405
  261. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator/product.rbs +0 -92
  262. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/enumerator.rbs +0 -630
  263. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/env.rbs +0 -6
  264. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errno.rbs +0 -673
  265. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/errors.rbs +0 -760
  266. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/exception.rbs +0 -376
  267. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/false_class.rbs +0 -82
  268. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber.rbs +0 -550
  269. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/fiber_error.rbs +0 -11
  270. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file.rbs +0 -2936
  271. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/file_test.rbs +0 -331
  272. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/float.rbs +0 -1151
  273. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/gc.rbs +0 -644
  274. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/global_variables.rbs +0 -184
  275. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/hash.rbs +0 -1861
  276. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/integer.rbs +0 -1413
  277. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/buffer.rbs +0 -984
  278. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io/wait.rbs +0 -70
  279. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/io.rbs +0 -3402
  280. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/kernel.rbs +0 -3054
  281. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/marshal.rbs +0 -207
  282. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/match_data.rbs +0 -635
  283. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/math.rbs +0 -729
  284. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/method.rbs +0 -386
  285. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/module.rbs +0 -1704
  286. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/nil_class.rbs +0 -209
  287. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/numeric.rbs +0 -818
  288. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object.rbs +0 -110
  289. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space/weak_key_map.rbs +0 -166
  290. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/object_space.rbs +0 -190
  291. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/proc.rbs +0 -868
  292. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/process.rbs +0 -2296
  293. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ractor.rbs +0 -1065
  294. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/random.rbs +0 -237
  295. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/range.rbs +0 -1107
  296. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rational.rbs +0 -531
  297. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rb_config.rbs +0 -88
  298. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/argf.rbs +0 -1229
  299. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/env_class.rbs +0 -1209
  300. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rbs/unnamed/random.rbs +0 -293
  301. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/refinement.rbs +0 -59
  302. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/regexp.rbs +0 -1928
  303. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/ruby_vm.rbs +0 -765
  304. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/basic_specification.rbs +0 -6
  305. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/config_file.rbs +0 -38
  306. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/dependency_installer.rbs +0 -6
  307. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/errors.rbs +0 -176
  308. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/installer.rbs +0 -15
  309. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/path_support.rbs +0 -6
  310. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/platform.rbs +0 -7
  311. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/request_set.rbs +0 -49
  312. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/requirement.rbs +0 -148
  313. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/rubygems.rbs +0 -1171
  314. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/source_list.rbs +0 -15
  315. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/specification.rbs +0 -23
  316. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/stream_ui.rbs +0 -5
  317. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/uninstaller.rbs +0 -10
  318. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/rubygems/version.rbs +0 -294
  319. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/set.rbs +0 -621
  320. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/signal.rbs +0 -100
  321. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/string.rbs +0 -3583
  322. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/struct.rbs +0 -667
  323. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/symbol.rbs +0 -475
  324. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread.rbs +0 -1765
  325. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/thread_group.rbs +0 -79
  326. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/time.rbs +0 -1762
  327. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/trace_point.rbs +0 -477
  328. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/true_class.rbs +0 -98
  329. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/unbound_method.rbs +0 -329
  330. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/core/warning.rbs +0 -87
  331. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/CONTRIBUTING.md +0 -106
  332. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/architecture.md +0 -110
  333. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/collection.md +0 -192
  334. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/data_and_struct.md +0 -86
  335. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/gem.md +0 -57
  336. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/rbs_by_example.md +0 -309
  337. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/repo.md +0 -125
  338. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/sigs.md +0 -167
  339. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/stdlib.md +0 -147
  340. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/syntax.md +0 -905
  341. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/docs/tools.md +0 -17
  342. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/exe/rbs +0 -7
  343. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/goodcheck.yml +0 -91
  344. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/constants.h +0 -82
  345. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs/ruby_objs.h +0 -72
  346. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/include/rbs.h +0 -7
  347. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ancestor_graph.rb +0 -92
  348. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/annotations.rb +0 -199
  349. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/formatter.rb +0 -92
  350. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_annotator.rb +0 -400
  351. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate/rdoc_source.rb +0 -131
  352. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/annotate.rb +0 -8
  353. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/annotation.rb +0 -29
  354. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/comment.rb +0 -29
  355. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/declarations.rb +0 -467
  356. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/directives.rb +0 -39
  357. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/members.rb +0 -449
  358. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/type_param.rb +0 -225
  359. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/ast/visitor.rb +0 -137
  360. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/buffer.rb +0 -67
  361. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/builtin_names.rb +0 -58
  362. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/colored_io.rb +0 -48
  363. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/diff.rb +0 -83
  364. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli/validate.rb +0 -356
  365. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/cli.rb +0 -1223
  366. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/cleaner.rb +0 -38
  367. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile.rb +0 -92
  368. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config/lockfile_generator.rb +0 -223
  369. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/config.rb +0 -81
  370. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/installer.rb +0 -32
  371. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/base.rb +0 -14
  372. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/git.rb +0 -258
  373. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/local.rb +0 -81
  374. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/rubygems.rb +0 -48
  375. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources/stdlib.rb +0 -50
  376. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection/sources.rb +0 -38
  377. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/collection.rb +0 -16
  378. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/constant.rb +0 -28
  379. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition.rb +0 -395
  380. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/ancestor_builder.rb +0 -620
  381. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder/method_builder.rb +0 -254
  382. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/definition_builder.rb +0 -841
  383. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/diff.rb +0 -125
  384. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment/use_map.rb +0 -77
  385. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment.rb +0 -818
  386. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_loader.rb +0 -173
  387. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/environment_walker.rb +0 -155
  388. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/errors.rb +0 -600
  389. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/factory.rb +0 -18
  390. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/file_finder.rb +0 -28
  391. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/location_aux.rb +0 -138
  392. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/locator.rb +0 -241
  393. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/method_type.rb +0 -141
  394. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/namespace.rb +0 -125
  395. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/lex_result.rb +0 -15
  396. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser/token.rb +0 -23
  397. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/parser_aux.rb +0 -77
  398. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/helpers.rb +0 -140
  399. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/node_usage.rb +0 -99
  400. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rb.rb +0 -840
  401. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/rbi.rb +0 -641
  402. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/helpers.rb +0 -59
  403. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/reflection.rb +0 -19
  404. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime/value_object_generator.rb +0 -279
  405. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/prototype/runtime.rb +0 -667
  406. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/repository.rb +0 -127
  407. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/constant_resolver.rb +0 -219
  408. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/resolver/type_name_resolver.rb +0 -91
  409. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/sorter.rb +0 -198
  410. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/substitution.rb +0 -83
  411. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/subtractor.rb +0 -201
  412. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/errors.rb +0 -80
  413. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/guaranteed.rb +0 -30
  414. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/hook.rb +0 -212
  415. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/observer.rb +0 -19
  416. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup.rb +0 -84
  417. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/setup_helper.rb +0 -50
  418. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/tester.rb +0 -167
  419. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test/type_check.rb +0 -433
  420. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/test.rb +0 -112
  421. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_dependency.rb +0 -100
  422. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_alias_regularity.rb +0 -126
  423. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/type_name.rb +0 -109
  424. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/types.rb +0 -1557
  425. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/convertibles.rb +0 -176
  426. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/spy.rb +0 -136
  427. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/type_assertions.rb +0 -341
  428. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test/with_aliases.rb +0 -143
  429. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/unit_test.rb +0 -6
  430. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/validator.rb +0 -182
  431. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/variance_calculator.rb +0 -189
  432. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/vendorer.rb +0 -71
  433. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/version.rb +0 -5
  434. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs/writer.rb +0 -419
  435. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rbs.rb +0 -93
  436. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc/discover.rb +0 -20
  437. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/lib/rdoc_plugin/parser.rb +0 -163
  438. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs-3.8.0.gemspec +0 -29
  439. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/rbs.gemspec +0 -49
  440. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/annotation.json +0 -14
  441. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/comment.json +0 -26
  442. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/decls.json +0 -326
  443. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/function.json +0 -87
  444. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/location.json +0 -56
  445. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/members.json +0 -266
  446. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/methodType.json +0 -50
  447. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/typeParam.json +0 -36
  448. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/schema/types.json +0 -317
  449. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_builder.rbs +0 -163
  450. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/ancestor_graph.rbs +0 -60
  451. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/annotations.rbs +0 -102
  452. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/formatter.rbs +0 -24
  453. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_annotater.rbs +0 -82
  454. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotate/rdoc_source.rbs +0 -30
  455. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/annotation.rbs +0 -27
  456. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/buffer.rbs +0 -32
  457. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/builtin_names.rbs +0 -44
  458. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/colored_io.rbs +0 -15
  459. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/diff.rbs +0 -21
  460. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli/validate.rbs +0 -43
  461. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/cli.rbs +0 -87
  462. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/cleaner.rbs +0 -13
  463. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile.rbs +0 -74
  464. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config/lockfile_generator.rbs +0 -66
  465. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/config.rbs +0 -46
  466. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/installer.rbs +0 -17
  467. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection/sources.rbs +0 -214
  468. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/collection.rbs +0 -4
  469. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/comment.rbs +0 -26
  470. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/constant.rbs +0 -21
  471. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/declarations.rbs +0 -267
  472. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition.rbs +0 -173
  473. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/definition_builder.rbs +0 -165
  474. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/diff.rbs +0 -28
  475. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/directives.rbs +0 -61
  476. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment.rbs +0 -277
  477. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_loader.rbs +0 -111
  478. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/environment_walker.rbs +0 -65
  479. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/errors.rbs +0 -383
  480. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/factory.rbs +0 -5
  481. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/file_finder.rbs +0 -28
  482. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/location.rbs +0 -110
  483. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/locator.rbs +0 -58
  484. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/manifest.yaml +0 -7
  485. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/members.rbs +0 -258
  486. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_builder.rbs +0 -84
  487. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/method_types.rbs +0 -58
  488. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/namespace.rbs +0 -146
  489. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/parser.rbs +0 -96
  490. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/helpers.rbs +0 -27
  491. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/node_usage.rbs +0 -20
  492. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rb.rbs +0 -96
  493. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/rbi.rbs +0 -75
  494. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/prototype/runtime.rbs +0 -182
  495. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rbs.rbs +0 -21
  496. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/rdoc/rbs.rbs +0 -67
  497. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/repository.rbs +0 -85
  498. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/constant_resolver.rbs +0 -92
  499. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/context.rbs +0 -34
  500. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/resolver/type_name_resolver.rbs +0 -35
  501. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/bundler.rbs +0 -38
  502. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/enumerable.rbs +0 -5
  503. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/shims/rubygems.rbs +0 -19
  504. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/sorter.rbs +0 -41
  505. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/substitution.rbs +0 -48
  506. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/subtractor.rbs +0 -37
  507. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/errors.rbs +0 -52
  508. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/guranteed.rbs +0 -9
  509. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test/type_check.rbs +0 -19
  510. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/test.rbs +0 -82
  511. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_dependency.rbs +0 -53
  512. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_alias_regularity.rbs +0 -98
  513. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/type_param.rbs +0 -110
  514. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/typename.rbs +0 -79
  515. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/types.rbs +0 -576
  516. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/convertibles.rbs +0 -154
  517. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/spy.rbs +0 -28
  518. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/type_assertions.rbs +0 -194
  519. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/unit_test/with_aliases.rbs +0 -136
  520. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/use_map.rbs +0 -35
  521. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/util.rbs +0 -9
  522. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/validator.rbs +0 -59
  523. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/variance_calculator.rbs +0 -87
  524. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/vendorer.rbs +0 -51
  525. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/version.rbs +0 -3
  526. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/visitor.rbs +0 -47
  527. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/sig/writer.rbs +0 -127
  528. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/constants.c +0 -153
  529. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/src/ruby_objs.c +0 -793
  530. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/abbrev.rbs +0 -66
  531. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/abbrev/0/array.rbs +0 -26
  532. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/base64/0/base64.rbs +0 -355
  533. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/benchmark/0/benchmark.rbs +0 -452
  534. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal/0/big_decimal.rbs +0 -1629
  535. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/big_math.rbs +0 -119
  536. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/bigdecimal-math/0/manifest.yaml +0 -2
  537. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/core.rbs +0 -1285
  538. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/cgi/0/manifest.yaml +0 -3
  539. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/coverage/0/coverage.rbs +0 -263
  540. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/csv.rbs +0 -3776
  541. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/csv/0/manifest.yaml +0 -3
  542. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date.rbs +0 -1585
  543. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/date_time.rbs +0 -616
  544. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/date/0/time.rbs +0 -26
  545. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/dbm/0/dbm.rbs +0 -421
  546. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/delegator.rbs +0 -184
  547. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/kernel.rbs +0 -47
  548. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/delegate/0/simple_delegator.rbs +0 -96
  549. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/did_you_mean/0/did_you_mean.rbs +0 -343
  550. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/digest/0/digest.rbs +0 -577
  551. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/erb/0/erb.rbs +0 -532
  552. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/etc/0/etc.rbs +0 -865
  553. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/fileutils/0/fileutils.rbs +0 -1734
  554. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/find/0/find.rbs +0 -49
  555. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/forwardable/0/forwardable.rbs +0 -268
  556. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/io-console/0/io-console.rbs +0 -414
  557. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ipaddr/0/ipaddr.rbs +0 -428
  558. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/json/0/json.rbs +0 -1914
  559. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/kconv/0/kconv.rbs +0 -166
  560. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/formatter.rbs +0 -45
  561. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/log_device.rbs +0 -100
  562. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/logger.rbs +0 -796
  563. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/manifest.yaml +0 -2
  564. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/period.rbs +0 -17
  565. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/logger/0/severity.rbs +0 -34
  566. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/kernel.rbs +0 -42
  567. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/abstract_reporter.rbs +0 -52
  568. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertion.rbs +0 -17
  569. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/assertions.rbs +0 -590
  570. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/backtrace_filter.rbs +0 -23
  571. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/bench_spec.rbs +0 -102
  572. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/benchmark.rbs +0 -259
  573. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/composite_reporter.rbs +0 -25
  574. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/compress.rbs +0 -13
  575. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/error_on_warning.rbs +0 -3
  576. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectation.rbs +0 -2
  577. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/expectations.rbs +0 -21
  578. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/guard.rbs +0 -64
  579. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/mock.rbs +0 -64
  580. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/executor.rbs +0 -46
  581. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test/class_methods.rbs +0 -5
  582. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel/test.rbs +0 -3
  583. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/parallel.rbs +0 -2
  584. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_io.rbs +0 -62
  585. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/pride_lol.rbs +0 -19
  586. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/progress_reporter.rbs +0 -11
  587. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reportable.rbs +0 -53
  588. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/reporter.rbs +0 -5
  589. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/result.rbs +0 -28
  590. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/runnable.rbs +0 -163
  591. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/skip.rbs +0 -6
  592. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl/instance_methods.rbs +0 -48
  593. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec/dsl.rbs +0 -129
  594. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/spec.rbs +0 -11
  595. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/statistics_reporter.rbs +0 -81
  596. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/summary_reporter.rbs +0 -18
  597. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test/lifecycle_hooks.rbs +0 -92
  598. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/test.rbs +0 -69
  599. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_error.rbs +0 -12
  600. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unexpected_warning.rbs +0 -6
  601. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit/test_case.rbs +0 -3
  602. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest/unit.rbs +0 -4
  603. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/minitest/0/minitest.rbs +0 -115
  604. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/monitor/0/monitor.rbs +0 -354
  605. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/mutex_m/0/mutex_m.rbs +0 -104
  606. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/manifest.yaml +0 -3
  607. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-http/0/net-http.rbs +0 -5552
  608. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/manifest.yaml +0 -2
  609. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-protocol/0/net-protocol.rbs +0 -56
  610. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/manifest.yaml +0 -2
  611. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/net-smtp/0/net-smtp.rbs +0 -55
  612. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/nkf/0/nkf.rbs +0 -402
  613. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/objspace/0/objspace.rbs +0 -487
  614. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/observable/0/observable.rbs +0 -217
  615. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/manifest.yaml +0 -4
  616. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open-uri/0/open-uri.rbs +0 -393
  617. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/open3/0/open3.rbs +0 -147
  618. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/manifest.yaml +0 -3
  619. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/openssl/0/openssl.rbs +0 -12113
  620. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/optparse/0/optparse.rbs +0 -1725
  621. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pathname/0/pathname.rbs +0 -1406
  622. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/manifest.yaml +0 -2
  623. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pp/0/pp.rbs +0 -300
  624. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/prettyprint/0/prettyprint.rbs +0 -383
  625. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pstore/0/pstore.rbs +0 -603
  626. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/core_ext.rbs +0 -12
  627. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/dbm.rbs +0 -237
  628. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/manifest.yaml +0 -3
  629. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/psych.rbs +0 -402
  630. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/psych/0/store.rbs +0 -59
  631. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/pty/0/pty.rbs +0 -237
  632. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/code_object.rbs +0 -51
  633. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/comment.rbs +0 -59
  634. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/context.rbs +0 -153
  635. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/markup.rbs +0 -117
  636. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/parser.rbs +0 -56
  637. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/rdoc.rbs +0 -391
  638. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/ri.rbs +0 -17
  639. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/store.rbs +0 -48
  640. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/rdoc/0/top_level.rbs +0 -97
  641. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/manifest.yaml +0 -3
  642. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/resolv/0/resolv.rbs +0 -1830
  643. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/ripper/0/ripper.rbs +0 -1648
  644. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/securerandom/0/securerandom.rbs +0 -62
  645. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/shellwords/0/shellwords.rbs +0 -229
  646. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/singleton/0/singleton.rbs +0 -131
  647. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/addrinfo.rbs +0 -666
  648. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/basic_socket.rbs +0 -590
  649. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/constants.rbs +0 -2295
  650. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/ip_socket.rbs +0 -92
  651. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket.rbs +0 -4157
  652. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/socket_error.rbs +0 -5
  653. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_server.rbs +0 -192
  654. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/tcp_socket.rbs +0 -79
  655. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/udp_socket.rbs +0 -133
  656. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_server.rbs +0 -169
  657. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/socket/0/unix_socket.rbs +0 -170
  658. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/stringio/0/stringio.rbs +0 -567
  659. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/strscan/0/string_scanner.rbs +0 -1627
  660. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tempfile/0/tempfile.rbs +0 -479
  661. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/time/0/time.rbs +0 -432
  662. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/timeout/0/timeout.rbs +0 -81
  663. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tmpdir/0/tmpdir.rbs +0 -69
  664. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/cyclic.rbs +0 -5
  665. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/interfaces.rbs +0 -20
  666. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/tsort/0/tsort.rbs +0 -409
  667. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/common.rbs +0 -582
  668. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/file.rbs +0 -118
  669. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ftp.rbs +0 -13
  670. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/generic.rbs +0 -1108
  671. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/http.rbs +0 -104
  672. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/https.rbs +0 -14
  673. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldap.rbs +0 -230
  674. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ldaps.rbs +0 -14
  675. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/mailto.rbs +0 -92
  676. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc2396_parser.rbs +0 -189
  677. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/rfc3986_parser.rbs +0 -2
  678. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/ws.rbs +0 -13
  679. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/uri/0/wss.rbs +0 -9
  680. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/manifest.yaml +0 -2
  681. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/yaml/0/yaml.rbs +0 -1
  682. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/buf_error.rbs +0 -10
  683. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/data_error.rbs +0 -10
  684. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/deflate.rbs +0 -210
  685. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/error.rbs +0 -20
  686. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/crc_error.rbs +0 -12
  687. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/error.rbs +0 -23
  688. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/length_error.rbs +0 -12
  689. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file/no_footer.rbs +0 -11
  690. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_file.rbs +0 -156
  691. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_reader.rbs +0 -293
  692. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/gzip_writer.rbs +0 -166
  693. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/inflate.rbs +0 -180
  694. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/mem_error.rbs +0 -10
  695. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/need_dict.rbs +0 -13
  696. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_end.rbs +0 -11
  697. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/stream_error.rbs +0 -11
  698. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/version_error.rbs +0 -11
  699. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zlib.rbs +0 -449
  700. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/stdlib/zlib/0/zstream.rbs +0 -200
  701. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/constants.h.erb +0 -20
  702. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/include/rbs/ruby_objs.h.erb +0 -10
  703. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/constants.c.erb +0 -36
  704. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/src/ruby_objs.c.erb +0 -27
  705. package/lib/ruby/gems/3.4.0/gems/rbs-3.8.0/templates/template.rb +0 -122
  706. package/lib/ruby/gems/3.4.0/gems/resolv-replace-0.1.1/resolv-replace.gemspec +0 -22
  707. package/lib/ruby/gems/3.4.0/gems/rinda-0.2.0/rinda.gemspec +0 -35
  708. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/.bundled.syslog-0.2.0.gemspec +0 -23
  709. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Gemfile +0 -5
  710. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/LICENSE.txt +0 -22
  711. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/README.md +0 -41
  712. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/Rakefile +0 -20
  713. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/console +0 -14
  714. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/bin/setup +0 -8
  715. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog/logger.rb +0 -209
  716. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/lib/syslog.rb +0 -10
  717. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog-0.2.0.gemspec +0 -23
  718. package/lib/ruby/gems/3.4.0/gems/syslog-0.2.0/syslog.gemspec +0 -26
  719. package/lib/ruby/gems/3.4.0/gems/typeprof-0.30.1/typeprof.gemspec +0 -32
  720. package/lib/ruby/gems/3.4.0/specifications/bigdecimal-3.1.8.gemspec +0 -50
  721. package/lib/ruby/gems/3.4.0/specifications/debug-1.11.0.gemspec +0 -33
  722. package/lib/ruby/gems/3.4.0/specifications/nkf-0.2.0.gemspec +0 -43
  723. package/lib/ruby/gems/3.4.0/specifications/racc-1.8.1.gemspec +0 -26
  724. package/lib/ruby/gems/3.4.0/specifications/rbs-3.8.0.gemspec +0 -49
  725. package/lib/ruby/gems/3.4.0/specifications/syslog-0.2.0.gemspec +0 -26
@@ -1,1557 +0,0 @@
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