@appthreat/atom-parsetools 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. package/README.md +111 -14
  2. package/package.json +2 -1
  3. package/plugins/composer/installed.php +6 -6
  4. package/plugins/rubyastgen/Gemfile +6 -4
  5. package/plugins/rubyastgen/Gemfile.lock +5 -8
  6. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-4ac84327b3af/Gemfile +11 -0
  7. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-4ac84327b3af/exe/ruby_ast_gen +55 -0
  8. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-4ac84327b3af/lib/ruby_ast_gen/cli.rb +133 -0
  9. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-4ac84327b3af/lib/ruby_ast_gen/node_handling.rb +449 -0
  10. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/{ruby_ast_gen-cc312ebf06b4 → ruby_ast_gen-4ac84327b3af}/lib/ruby_ast_gen/version.rb +1 -1
  11. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-4ac84327b3af/lib/ruby_ast_gen.rb +888 -0
  12. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-4ac84327b3af/ruby_ast_gen.gemspec +25 -0
  13. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/current.rb +1 -1
  14. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/version.rb +1 -1
  15. package/plugins/rubyastgen/bundle/ruby/4.0.0/specifications/ast-2.4.3.gemspec +29 -0
  16. package/plugins/rubyastgen/bundle/ruby/4.0.0/specifications/bundler-2.6.9.gemspec +25 -0
  17. package/plugins/rubyastgen/bundle/ruby/4.0.0/specifications/ostruct-0.6.3.gemspec +22 -0
  18. package/plugins/rubyastgen/bundle/ruby/4.0.0/specifications/parser-3.3.12.0.gemspec +37 -0
  19. package/rbastgen.js +102 -13
  20. package/scalasem.js +11 -2
  21. package/plugins/bin/bundler +0 -14
  22. package/plugins/bin/ruby_ast_gen +0 -14
  23. package/plugins/rubyastgen/bundle/bundler/setup.rb +0 -44
  24. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-cc312ebf06b4/exe/ruby_ast_gen +0 -63
  25. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-cc312ebf06b4/lib/ruby_ast_gen/node_handling.rb +0 -269
  26. package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/ruby_ast_gen-cc312ebf06b4/lib/ruby_ast_gen.rb +0 -218
  27. package/plugins/rubyastgen/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/prism-1.9.0/gem.build_complete +0 -0
  28. package/plugins/rubyastgen/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/prism-1.9.0/gem_make.out +0 -44
  29. package/plugins/rubyastgen/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/prism-1.9.0/mkmf.log +0 -74
  30. package/plugins/rubyastgen/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/prism-1.9.0/prism/prism.so +0 -0
  31. package/plugins/rubyastgen/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/racc-1.8.1/gem.build_complete +0 -0
  32. package/plugins/rubyastgen/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/racc-1.8.1/gem_make.out +0 -18
  33. package/plugins/rubyastgen/bundle/ruby/4.0.0/extensions/x86_64-linux/4.0.0/racc-1.8.1/racc/cparse.so +0 -0
  34. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/BSDmakefile +0 -58
  35. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/Makefile +0 -116
  36. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/Makefile +0 -273
  37. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/api_node.c +0 -6945
  38. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/api_pack.c +0 -276
  39. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/extconf.rb +0 -127
  40. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/extension.c +0 -1427
  41. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism/extension.h +0 -19
  42. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/ast.h +0 -8254
  43. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/defines.h +0 -260
  44. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/diagnostic.h +0 -458
  45. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/encoding.h +0 -283
  46. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/node.h +0 -129
  47. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/options.h +0 -488
  48. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/pack.h +0 -163
  49. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/parser.h +0 -936
  50. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/prettyprint.h +0 -34
  51. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/regexp.h +0 -43
  52. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/static_literals.h +0 -121
  53. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_buffer.h +0 -236
  54. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_char.h +0 -204
  55. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_constant_pool.h +0 -218
  56. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_integer.h +0 -130
  57. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_list.h +0 -103
  58. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_memchr.h +0 -29
  59. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_newline_list.h +0 -113
  60. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_string.h +0 -200
  61. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_strncasecmp.h +0 -32
  62. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/util/pm_strpbrk.h +0 -46
  63. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism/version.h +0 -29
  64. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include/prism.h +0 -408
  65. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/compiler.rb +0 -801
  66. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/desugar_compiler.rb +0 -392
  67. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/dispatcher.rb +0 -2210
  68. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/dot_visitor.rb +0 -4767
  69. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/dsl.rb +0 -1003
  70. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/ffi.rb +0 -578
  71. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/inspect_visitor.rb +0 -2393
  72. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/lex_compat.rb +0 -911
  73. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/mutation_compiler.rb +0 -772
  74. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/node.rb +0 -19966
  75. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/node_ext.rb +0 -511
  76. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/pack.rb +0 -230
  77. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/parse_result/comments.rb +0 -188
  78. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/parse_result/errors.rb +0 -66
  79. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/parse_result/newlines.rb +0 -155
  80. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/parse_result.rb +0 -907
  81. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/pattern.rb +0 -269
  82. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/polyfill/append_as_bytes.rb +0 -15
  83. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/polyfill/byteindex.rb +0 -13
  84. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/polyfill/scan_byte.rb +0 -14
  85. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/polyfill/unpack1.rb +0 -14
  86. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/polyfill/warn.rb +0 -36
  87. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/prism.so +0 -0
  88. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/reflection.rb +0 -416
  89. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/relocation.rb +0 -505
  90. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/serialize.rb +0 -2400
  91. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/string_query.rb +0 -31
  92. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/parser/builder.rb +0 -62
  93. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/parser/compiler.rb +0 -2234
  94. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/parser/lexer.rb +0 -820
  95. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/parser.rb +0 -376
  96. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/parser_current.rb +0 -26
  97. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/parser_versions.rb +0 -36
  98. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/ripper/filter.rb +0 -53
  99. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/ripper/lexer.rb +0 -135
  100. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/ripper/sexp.rb +0 -126
  101. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/ripper/shim.rb +0 -5
  102. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/ripper.rb +0 -3520
  103. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation/ruby_parser.rb +0 -1964
  104. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/translation.rb +0 -18
  105. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism/visitor.rb +0 -813
  106. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/lib/prism.rb +0 -98
  107. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/compiler.rbi +0 -12
  108. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/dsl.rbi +0 -524
  109. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/inspect_visitor.rbi +0 -12
  110. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/node.rbi +0 -8750
  111. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/node_ext.rbi +0 -107
  112. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/parse_result.rbi +0 -404
  113. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/reflection.rbi +0 -58
  114. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/string_query.rbi +0 -12
  115. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/translation/parser.rbi +0 -11
  116. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/translation/parser_versions.rbi +0 -23
  117. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/translation/ripper.rbi +0 -15
  118. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism/visitor.rbi +0 -473
  119. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/rbi/prism.rbi +0 -63
  120. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/compiler.rbs +0 -9
  121. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/dispatcher.rbs +0 -19
  122. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/dot_visitor.rbs +0 -6
  123. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/dsl.rbs +0 -351
  124. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/inspect_visitor.rbs +0 -22
  125. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/lex_compat.rbs +0 -10
  126. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/mutation_compiler.rbs +0 -159
  127. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/node.rbs +0 -4042
  128. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/node_ext.rbs +0 -149
  129. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/pack.rbs +0 -43
  130. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/parse_result/comments.rbs +0 -38
  131. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/parse_result.rbs +0 -197
  132. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/pattern.rbs +0 -13
  133. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/reflection.rbs +0 -50
  134. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/relocation.rbs +0 -185
  135. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/serialize.rbs +0 -8
  136. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/string_query.rbs +0 -11
  137. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism/visitor.rbs +0 -169
  138. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/sig/prism.rbs +0 -272
  139. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/diagnostic.c +0 -854
  140. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/encoding.c +0 -5340
  141. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/node.c +0 -8685
  142. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/options.c +0 -338
  143. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/pack.c +0 -509
  144. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/prettyprint.c +0 -8957
  145. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/prism.c +0 -22679
  146. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/regexp.c +0 -790
  147. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/serialize.c +0 -2274
  148. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/static_literals.c +0 -617
  149. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/token_type.c +0 -703
  150. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_buffer.c +0 -357
  151. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_char.c +0 -318
  152. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_constant_pool.c +0 -342
  153. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_integer.c +0 -670
  154. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_list.c +0 -49
  155. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_memchr.c +0 -35
  156. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_newline_list.c +0 -125
  157. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_string.c +0 -381
  158. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_strncasecmp.c +0 -36
  159. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/src/util/pm_strpbrk.c +0 -206
  160. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/BSDL +0 -22
  161. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/COPYING +0 -56
  162. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ChangeLog +0 -846
  163. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/README.ja.rdoc +0 -58
  164. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/README.rdoc +0 -60
  165. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/TODO +0 -5
  166. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/bin/racc +0 -320
  167. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse/Makefile +0 -273
  168. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse/cparse.c +0 -840
  169. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse/extconf.rb +0 -8
  170. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/compat.rb +0 -33
  171. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/cparse.so +0 -0
  172. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/debugflags.rb +0 -60
  173. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/exception.rb +0 -16
  174. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/grammar.rb +0 -1191
  175. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/grammarfileparser.rb +0 -667
  176. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/info.rb +0 -18
  177. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/iset.rb +0 -92
  178. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/logfilegenerator.rb +0 -212
  179. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/parser-text.rb +0 -644
  180. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/parser.rb +0 -630
  181. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/parserfilegenerator.rb +0 -473
  182. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/sourcetext.rb +0 -35
  183. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/state.rb +0 -976
  184. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/statetransitiontable.rb +0 -311
  185. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc/static.rb +0 -5
  186. package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/lib/racc.rb +0 -6
  187. /package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/{ruby_ast_gen-cc312ebf06b4 → ruby_ast_gen-4ac84327b3af}/.rspec +0 -0
  188. /package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/{ruby_ast_gen-cc312ebf06b4 → ruby_ast_gen-4ac84327b3af}/bin/console +0 -0
  189. /package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/{ruby_ast_gen-cc312ebf06b4 → ruby_ast_gen-4ac84327b3af}/bin/setup +0 -0
  190. /package/plugins/rubyastgen/bundle/ruby/4.0.0/bundler/gems/{ruby_ast_gen-cc312ebf06b4 → ruby_ast_gen-4ac84327b3af}/update_version.rb +0 -0
  191. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/bin/ruby-parse +0 -0
  192. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/bin/ruby-rewrite +0 -0
  193. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/gauntlet_parser.rb +0 -0
  194. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/all.rb +0 -0
  195. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ast/node.rb +0 -0
  196. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ast/processor.rb +0 -0
  197. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/base.rb +0 -0
  198. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/builders/default.rb +0 -0
  199. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/clobbering_error.rb +0 -0
  200. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/color.rb +0 -0
  201. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/context.rb +0 -0
  202. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/current_arg_stack.rb +0 -0
  203. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/deprecation.rb +0 -0
  204. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/diagnostic/engine.rb +0 -0
  205. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/diagnostic.rb +0 -0
  206. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/dedenter.rb +0 -0
  207. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/explanation.rb +0 -0
  208. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/literal.rb +0 -0
  209. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer/stack_state.rb +0 -0
  210. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer-F0.rb +0 -0
  211. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer-F1.rb +0 -0
  212. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/lexer-strings.rb +0 -0
  213. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/macruby.rb +0 -0
  214. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/max_numparam_stack.rb +0 -0
  215. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/messages.rb +0 -0
  216. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/meta.rb +0 -0
  217. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/rewriter.rb +0 -0
  218. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby18.rb +0 -0
  219. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby19.rb +0 -0
  220. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby20.rb +0 -0
  221. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby21.rb +0 -0
  222. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby22.rb +0 -0
  223. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby23.rb +0 -0
  224. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby24.rb +0 -0
  225. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby25.rb +0 -0
  226. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby26.rb +0 -0
  227. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby27.rb +0 -0
  228. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby30.rb +0 -0
  229. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby31.rb +0 -0
  230. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby32.rb +0 -0
  231. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby33.rb +0 -0
  232. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/ruby34.rb +0 -0
  233. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/rubymotion.rb +0 -0
  234. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/runner/ruby_parse.rb +0 -0
  235. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/runner/ruby_rewrite.rb +0 -0
  236. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/runner.rb +0 -0
  237. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/buffer.rb +0 -0
  238. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/comment/associator.rb +0 -0
  239. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/comment.rb +0 -0
  240. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/collection.rb +0 -0
  241. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/condition.rb +0 -0
  242. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/constant.rb +0 -0
  243. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/definition.rb +0 -0
  244. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/for.rb +0 -0
  245. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/heredoc.rb +0 -0
  246. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/index.rb +0 -0
  247. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/keyword.rb +0 -0
  248. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/method_definition.rb +0 -0
  249. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/objc_kwarg.rb +0 -0
  250. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/operator.rb +0 -0
  251. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/rescue_body.rb +0 -0
  252. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/send.rb +0 -0
  253. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/ternary.rb +0 -0
  254. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map/variable.rb +0 -0
  255. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/map.rb +0 -0
  256. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/range.rb +0 -0
  257. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/rewriter/action.rb +0 -0
  258. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/rewriter.rb +0 -0
  259. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/tree_rewriter/action.rb +0 -0
  260. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/source/tree_rewriter.rb +0 -0
  261. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/static_environment.rb +0 -0
  262. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/syntax_error.rb +0 -0
  263. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/tree_rewriter.rb +0 -0
  264. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/unknown_encoding_in_magic_comment_error.rb +0 -0
  265. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser/variables_stack.rb +0 -0
  266. /package/plugins/rubyastgen/bundle/ruby/4.0.0/gems/{parser-3.3.11.1 → parser-3.3.12.0}/lib/parser.rb +0 -0
@@ -1,269 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module NodeHandling
4
- MAX_NESTING_DEPTH = 100
5
-
6
- SINGLETONS = %i[nil true false].freeze
7
- LITERALS = %i[int float rational complex str sym __FILE__ __LINE__ __ENCODING__].freeze
8
- CALLS = %i[send csend].freeze
9
- DYNAMIC_LITERALS = %i[dsym dstr].freeze
10
- CONTROL_KW = %i[break next].freeze
11
- ARGUMENTS = %i[arg restarg blockarg kwrestarg shadowarg itarg].freeze
12
- KW_ARGUMENTS = %i[kwarg kwnilarg kwoptarg].freeze
13
- REFS = %i[nth_ref back_ref].freeze
14
- FORWARD_ARGUMENTS = %i[forward_args forwarded_args forward_arg forwarded_restarg
15
- forwarded_kwrestarg].freeze
16
- ASSIGNMENTS = %i[or_asgn and_asgn lvasgn ivasgn gvasgn cvasgn match_with_lvasgn match_write].freeze
17
- BIN_OP = %i[and or in_match match_pattern match_pattern_p].freeze
18
- ACCESS = %i[self ident lvar cvar gvar ivar splat kwsplat block_pass
19
- match_var].freeze
20
- QUAL_ACCESS = [:casgn].freeze
21
- COLLECTIONS = %i[args array hash mlhs hash_pattern array_pattern
22
- array_pattern_with_tail find_pattern kwargs undef procarg0].freeze
23
- SPECIAL_CMD = %i[yield super defined? xstr not].freeze
24
- RANGE_OP = %i[erange irange eflipflop iflipflop].freeze
25
-
26
- def self.fetch_member(loc, method)
27
- loc.public_send(method)
28
- rescue
29
- -1
30
- end
31
-
32
- def self.ast_to_json(node, code, current_depth: 0, file_path: nil)
33
- return unless node.is_a?(Parser::AST::Node)
34
-
35
- loc = node.location
36
- meta_data = {
37
- start_line: fetch_member(loc, :line),
38
- start_column: fetch_member(loc, :column),
39
- end_line: fetch_member(loc, :last_line),
40
- end_column: fetch_member(loc, :last_column),
41
- offset_start: loc&.expression&.begin_pos,
42
- offset_end: loc&.expression&.end_pos,
43
- code: extract_code_snippet(loc, code)
44
- }
45
- if current_depth >= MAX_NESTING_DEPTH
46
- RubyAstGen::Logger.warn "Reached max JSON depth on a #{node.type} node"
47
- return {type: node.type.to_s, meta_data: meta_data, nested: true}
48
- end
49
-
50
- base_hash = {
51
- type: node.type.to_s, # Node type (e.g., :send, :def, etc.)
52
- meta_data: meta_data,
53
- children: node.children.map do |child|
54
- if child.is_a?(Parser::AST::Node)
55
- ast_to_json(child, code, current_depth: current_depth + 1, file_path: file_path) # Recursively process child nodes
56
- else
57
- child # If it's not a node (e.g., literal), return as-is
58
- end
59
- end
60
- }
61
- add_node_properties(node.type, base_hash, file_path)
62
- base_hash
63
- end
64
-
65
- def self.trim_string(string)
66
- string.tr("\n", " ").gsub(/(\s)+/, " ")
67
- end
68
-
69
- def self.extract_code_snippet(location, source_code)
70
- return nil unless location
71
-
72
- range = location.expression || location
73
- return nil unless range.is_a?(Parser::Source::Range)
74
-
75
- snippet = source_code[range.begin_pos...range.end_pos]
76
- trim_string(snippet.strip)
77
- end
78
-
79
- def self.add_node_properties(node_type, base_map, file_path)
80
- children = base_map.delete(:children)
81
-
82
- case node_type
83
- when :def
84
- base_map[:name] = children[0]
85
- base_map[:arguments] = children[1]
86
- base_map[:body] = children[2]
87
- when :defs
88
- base_map[:base] = children[0]
89
- base_map[:name] = children[1]
90
- base_map[:arguments] = children[2]
91
- base_map[:body] = children[3]
92
-
93
- when :class
94
- base_map[:name] = children[0]
95
- base_map[:superclass] = children[1] if children[1]
96
- base_map[:body] = children[2]
97
- when :sclass
98
- base_map[:name] = children[0]
99
- base_map[:def] = children[1]
100
- base_map[:body] = children[2]
101
- when :module
102
- base_map[:name] = children[0]
103
- base_map[:body] = children[1]
104
-
105
- when :if
106
- base_map[:condition] = children[0]
107
- base_map[:then_branch] = children[1]
108
- base_map[:else_branch] = children[2] if children[2]
109
- when :while, :while_post
110
- base_map[:condition] = children[0]
111
- base_map[:body] = children[1]
112
- when :for, :for_post
113
- base_map[:variable] = children[0]
114
- base_map[:collection] = children[1]
115
- base_map[:body] = children[2]
116
- when :block
117
- base_map[:call_name] = children[0]
118
- base_map[:arguments] = children[1]
119
- base_map[:body] = children[2]
120
- when :begin
121
- base_map[:body] = children
122
- when :kwbegin
123
- base_map[:body] = children
124
- when :case
125
- base_map[:case_expression] = children[0]
126
- base_map[:when_clauses] = children[1..-2]
127
- base_map[:else_clause] = children[-1] if children[-1]
128
- when :when
129
- base_map[:conditions] = children[0..-2]
130
- base_map[:then_branch] = children[-1]
131
- when :unless
132
- base_map[:condition] = children[0]
133
- base_map[:then_branch] = children[1]
134
- when :until, :until_post
135
- base_map[:condition] = children[0]
136
- base_map[:body] = children[1]
137
- when :rescue, :case_match
138
- base_map[:statement] = children[0]
139
- base_map[:bodies] = children[1..-2]
140
- base_map[:else_clause] = children[-1] if children[-1]
141
- when :match_as
142
- base_map[:value] = children[0]
143
- base_map[:as] = children[1]
144
- when :in_pattern
145
- base_map[:pattern] = children[0]
146
- base_map[:guard] = children[1]
147
- base_map[:body] = children[2]
148
- when :const_pattern
149
- base_map[:const] = children[0]
150
- base_map[:pattern] = children[1]
151
- when :if_guard, :unless_guard
152
- base_map[:condition] = children[0]
153
- when :match_alt
154
- base_map[:left] = children[0]
155
- base_map[:right] = children[1]
156
- when :match_current_line
157
- base_map[:value] = children[0]
158
- when :match_with_trailing_comma
159
- base_map[:value] = children[0]
160
- when :resbody
161
- base_map[:exec_list] = children[0]
162
- base_map[:exec_var] = children[1]
163
- base_map[:body] = children[2]
164
- when :ensure
165
- base_map[:statement] = children[0]
166
- base_map[:body] = children[1]
167
- when :regopt, *REFS, :redo
168
- base_map[:value] = children[0] if children[0]
169
- when :return
170
- base_map[:values] = children if children[0]
171
- when *CONTROL_KW
172
- base_map[:arguments] = children[0] if children[0]
173
- when *FORWARD_ARGUMENTS, :empty_else, :lambda, :retry, :zsuper, :match_nil_pattern
174
- # refer to :type
175
- when *QUAL_ACCESS
176
- base_map[:base] = children[0]
177
- base_map[:lhs] = children[1]
178
- base_map[:rhs] = children[2]
179
- when :op_asgn
180
- base_map[:lhs] = children[0]
181
- base_map[:op] = children[1]
182
- base_map[:rhs] = children[2]
183
- when *ASSIGNMENTS
184
- base_map[:lhs] = children[0]
185
- base_map[:rhs] = children[1] if children[1]
186
- when *BIN_OP
187
- base_map[:lhs] = children[0]
188
- base_map[:rhs] = children[1]
189
- when *SINGLETONS
190
- base_map[:value] = node_type
191
- when *KW_ARGUMENTS
192
- base_map[:key] = children[0]
193
- base_map[:value] = children[1]
194
- when *LITERALS, *ARGUMENTS, *ACCESS, :arg_expr, :blockarg_expr, :match_rest,
195
- :numargs, :objc_restarg, :objc_varargs, :restarg_expr
196
- base_map[:value] = children[0]
197
- when :cbase
198
- base_map[:base] = children[0]
199
- base_map[:name] = children[1]
200
-
201
- when *CALLS
202
- base_map[:receiver] = children[0]
203
- base_map[:name] = children[1]
204
- base_map[:arguments] = children[2..] # Variable arguments
205
- when :index
206
- base_map[:receiver] = children[0]
207
- base_map[:arguments] = children[1..]
208
- when :indexasgn
209
- base_map[:receiver] = children[0]
210
- base_map[:arguments] = children[1...-1] || []
211
- base_map[:value] = children[-1]
212
- when *SPECIAL_CMD
213
- base_map[:arguments] = children
214
-
215
- when :pair, :optarg
216
- base_map[:key] = children[0]
217
- base_map[:value] = children[1]
218
- when :objc_kwarg
219
- base_map[:key] = children[0]
220
- base_map[:value] = children[1]
221
- when :const
222
- base_map[:base] = children[0]
223
- base_map[:name] = children[1]
224
- when :alias
225
- base_map[:alias] = children[0]
226
- base_map[:name] = children[1]
227
- when :regexp
228
- base_map[:value] = children[0]
229
- base_map[:opt] = children[1]
230
- when *RANGE_OP
231
- base_map[:start] = children[0]
232
- base_map[:end] = children[1]
233
- when :itblock
234
- base_map[:call] = children[0]
235
- base_map[:body] = children[1]
236
- when :numblock
237
- base_map[:call] = children[0]
238
- base_map[:param_idx] = children[1]
239
- base_map[:body] = children[2]
240
-
241
- when :masgn
242
- base_map[:lhs] = children[0]
243
- base_map[:rhs] = children[1]
244
-
245
- when :preexe, :postexe
246
- base_map[:body] = children[0]
247
-
248
- when :kwnilarg
249
- base_map[:call] = node_type.to_s
250
- base_map[:body] = false
251
- when :kwrestarg
252
- base_map[:name] = children[0]
253
- if children[1]
254
- base_map[:value] = children[1]
255
- end
256
-
257
- when :pin
258
- base_map[:value] = children[0]
259
-
260
- when *COLLECTIONS, *DYNAMIC_LITERALS, *REFS
261
- # put :children back
262
- base_map[:children] = children
263
-
264
- else
265
- RubyAstGen::Logger.warn "Unhandled AST node type: #{node_type} - #{file_path}"
266
- base_map[:children] = children
267
- end
268
- end
269
- end
@@ -1,218 +0,0 @@
1
- require 'fileutils'
2
- require 'json'
3
- require 'thread'
4
-
5
- require_relative 'ruby_ast_gen/version'
6
- require_relative 'ruby_ast_gen/node_handling'
7
-
8
- module RubyAstGen
9
-
10
- module Logger
11
-
12
- def self.debug(message)
13
- puts "[DEBUG] #{message}"
14
- end
15
-
16
- def self.info(message)
17
- puts "[INFO] #{message}"
18
- end
19
-
20
- def self.warn(message)
21
- puts "[WARN] #{message}"
22
- end
23
-
24
- def self.error(message)
25
- puts "[ERR] #{message}"
26
- end
27
- end
28
-
29
- # Main method to parse the input and generate the AST output
30
- def self.parse(opts)
31
- if opts[:debug]
32
- RubyAstGen::Logger::debug "CLI Arguments received: #{opts}"
33
- end
34
-
35
- input_path = opts[:input]
36
- output_dir = opts[:output]
37
- exclude_regex = Regexp.new(opts[:exclude])
38
-
39
- if opts[:debug]
40
- RubyAstGen::Logger::debug "Exclude Regex Received: #{exclude_regex}"
41
- end
42
-
43
- FileUtils.mkdir_p(output_dir)
44
-
45
- if File.file?(input_path)
46
- process_file(input_path, output_dir, exclude_regex, input_path)
47
- elsif File.directory?(input_path)
48
- process_directory(input_path, output_dir, exclude_regex)
49
- else
50
- RubyAstGen::Logger::info "#{input_path} is neither a file nor a directory."
51
- exit 1
52
- end
53
- end
54
-
55
- private
56
-
57
- # Process a single file and generate its AST
58
- def self.process_file(file_path, output_dir, exclude_regex, base_dir)
59
- # Get the relative path of the file to apply exclusion rules
60
- relative_path = file_path.sub(%r{^.*\/}, '')
61
- relative_input_path = file_path.sub("#{base_dir}/", '')
62
- # Skip if the file matches the exclusion regex
63
- if exclude_regex && exclude_regex.match?(relative_input_path)
64
- RubyAstGen::Logger::debug "Excluding: #{relative_input_path}"
65
- return
66
- end
67
-
68
- return unless ruby_file?(file_path) # Skip if it's not a Ruby-related file
69
-
70
- begin
71
- ast = parse_file(file_path, relative_input_path)
72
- return unless ast
73
-
74
- output_path = File.join(output_dir, "#{relative_path}.json")
75
-
76
- File.write(output_path, JSON.generate(ast))
77
- rescue StandardError => e
78
- RubyAstGen::Logger::info "'#{relative_input_path}' - #{e.message}"
79
- end
80
- end
81
-
82
- def self.process_directory(dir_path, output_dir, exclude_regex, max_threads = 10)
83
- threads = []
84
- queue = Queue.new
85
-
86
- Dir.glob("#{dir_path}/**/*").each do |path|
87
- next unless File.file?(path) && ruby_file?(path)
88
- relative_dir = path.sub("#{dir_path}/", '')
89
- next if exclude_regex.match?(relative_dir)
90
-
91
- queue << path
92
- end
93
-
94
- max_threads.times do
95
- threads << Thread.new do
96
- until queue.empty?
97
- begin
98
- path = queue.pop(true) rescue nil # Non-blocking pop
99
- next unless path
100
-
101
- relative_path = path.sub(dir_path, '')
102
- output_subdir = File.join(output_dir, File.dirname(relative_path))
103
- FileUtils.mkdir_p(output_subdir)
104
-
105
- process_file(path, output_subdir, exclude_regex, dir_path)
106
- rescue => e
107
- RubyAstGen::Logger::info "Error processing #{path}: #{e.message}"
108
- end
109
- end
110
- end
111
- end
112
-
113
- threads.each(&:join)
114
- end
115
-
116
- def self.parser_for_current_ruby(log: true)
117
- current_version = Gem::Version.new(RUBY_VERSION)
118
- prism_cutoff = Gem::Version.new("3.4.0")
119
-
120
- require 'parser/source/buffer'
121
-
122
- if current_version < prism_cutoff
123
- require 'parser/current'
124
- parser = ::Parser::CurrentRuby
125
- else
126
- begin
127
- require 'prism'
128
- require 'prism/translation'
129
- rescue LoadError
130
- require 'parser/current'
131
- parser = ::Parser::CurrentRuby
132
- else
133
- parser = prism_translation_parser_for(current_version)
134
- unless parser
135
- require 'parser/current'
136
- parser = ::Parser::CurrentRuby
137
- end
138
- end
139
- end
140
-
141
- RubyAstGen::Logger.debug "Using parser: #{parser}" if log
142
- parser
143
- end
144
-
145
- def self.parser_info
146
- parser = parser_for_current_ruby(log: false)
147
-
148
- {
149
- ruby_engine: defined?(RUBY_ENGINE) ? RUBY_ENGINE : "ruby",
150
- ruby_version: RUBY_VERSION,
151
- ruby_platform: RUBY_PLATFORM,
152
- parser_backend: parser.to_s,
153
- parser_gem_version: Gem.loaded_specs["parser"]&.version&.to_s,
154
- prism_gem_version: Gem.loaded_specs["prism"]&.version&.to_s,
155
- prism_translation_parsers: prism_translation_parser_names
156
- }
157
- end
158
-
159
- def self.parser_info_text
160
- info = parser_info
161
- [
162
- "Ruby engine: #{info[:ruby_engine]}",
163
- "Ruby version: #{info[:ruby_version]}",
164
- "Ruby platform: #{info[:ruby_platform]}",
165
- "Parser backend: #{info[:parser_backend]}",
166
- "Parser gem: #{info[:parser_gem_version] || 'unavailable'}",
167
- "Prism gem: #{info[:prism_gem_version] || 'unavailable'}",
168
- "Prism translation parsers: #{info[:prism_translation_parsers].empty? ? 'none' : info[:prism_translation_parsers].join(', ')}"
169
- ].join("\n")
170
- end
171
-
172
- def self.prism_translation_parser_for(version)
173
- major = version.segments[0]
174
- minor = version.segments[1]
175
- parser_class_name = "Parser#{major}#{minor}"
176
-
177
- if defined?(::Prism::Translation) && ::Prism::Translation.const_defined?(parser_class_name)
178
- return ::Prism::Translation.const_get(parser_class_name)
179
- end
180
-
181
- candidates = ::Prism::Translation.constants.filter_map do |const_name|
182
- match = const_name.to_s.match(/\AParser(\d)(\d+)\z/)
183
- next unless match
184
-
185
- [match[1].to_i, match[2].to_i, ::Prism::Translation.const_get(const_name)]
186
- end
187
- target = [major, minor]
188
- candidates.select { |candidate_major, candidate_minor, _parser| [candidate_major, candidate_minor] <= target }
189
- .max_by { |candidate_major, candidate_minor, _parser| [candidate_major, candidate_minor] }&.last ||
190
- candidates.max_by { |candidate_major, candidate_minor, _parser| [candidate_major, candidate_minor] }&.last
191
- end
192
-
193
- def self.prism_translation_parser_names
194
- return [] unless defined?(::Prism::Translation)
195
-
196
- ::Prism::Translation.constants.grep(/\AParser\d+\z/).map(&:to_s).sort
197
- end
198
-
199
- def self.parse_file(file_path, relative_input_path)
200
- parser = parser_for_current_ruby
201
- code = File.read(file_path)
202
- ast = parser.parse(code)
203
- return unless ast
204
- json_ast = NodeHandling::ast_to_json(ast, code, file_path: relative_input_path)
205
- json_ast[:file_path] = file_path
206
- json_ast[:rel_file_path] = relative_input_path
207
- json_ast
208
- rescue ::Parser::SyntaxError => e
209
- RubyAstGen::Logger.info "Failed to parse #{file_path}: #{e.message}"
210
- nil
211
- end
212
-
213
- def self.ruby_file?(file_path)
214
- ext = File.extname(file_path)
215
- %w[.rb .gemspec Rakefile .rake .ru].include?(ext) || file_path.end_with?('.rb')
216
- end
217
-
218
- end
@@ -1,44 +0,0 @@
1
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism
2
- /opt/hostedtoolcache/Ruby/4.0.1/x64/bin/ruby extconf.rb
3
- checking for prism.h in /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include... yes
4
- checking for prism/extension.h in /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext... yes
5
- checking for whether -fvisibility=hidden is accepted as CFLAGS... yes
6
- creating Makefile
7
-
8
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism
9
- make -j5 DESTDIR\= sitearchdir\=./.gem.20260807-2447-y3xzkz sitelibdir\=./.gem.20260807-2447-y3xzkz clean
10
-
11
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism
12
- make -j5 DESTDIR\= sitearchdir\=./.gem.20260807-2447-y3xzkz sitelibdir\=./.gem.20260807-2447-y3xzkz
13
- compiling api_node.c
14
- compiling api_pack.c
15
- compiling extension.c
16
- compiling ./../../src/diagnostic.c
17
- compiling ./../../src/encoding.c
18
- compiling ./../../src/node.c
19
- compiling ./../../src/options.c
20
- compiling ./../../src/pack.c
21
- compiling ./../../src/prettyprint.c
22
- compiling ./../../src/prism.c
23
- compiling ./../../src/regexp.c
24
- compiling ./../../src/serialize.c
25
- compiling ./../../src/static_literals.c
26
- compiling ./../../src/token_type.c
27
- compiling ./../../src/util/pm_buffer.c
28
- compiling ./../../src/util/pm_char.c
29
- compiling ./../../src/util/pm_constant_pool.c
30
- compiling ./../../src/util/pm_integer.c
31
- compiling ./../../src/util/pm_list.c
32
- compiling ./../../src/util/pm_memchr.c
33
- compiling ./../../src/util/pm_newline_list.c
34
- compiling ./../../src/util/pm_string.c
35
- compiling ./../../src/util/pm_strncasecmp.c
36
- compiling ./../../src/util/pm_strpbrk.c
37
- linking shared-object prism/prism.so
38
-
39
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism
40
- make -j5 DESTDIR\= sitearchdir\=./.gem.20260807-2447-y3xzkz sitelibdir\=./.gem.20260807-2447-y3xzkz install
41
- /usr/bin/install -c -m 0755 prism.so ./.gem.20260807-2447-y3xzkz/prism
42
-
43
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext/prism
44
- make DESTDIR\= sitearchdir\=./.gem.20260807-2447-y3xzkz sitelibdir\=./.gem.20260807-2447-y3xzkz clean
@@ -1,74 +0,0 @@
1
- find_header: checking for prism.h in /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include... -------------------- yes
2
-
3
- LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/4.0.1/x64/lib LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/ruby/backward -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0 -I. -DENABLE_PATH_CHECK=0 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/4.0.1/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/4.0.1/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed -Wl,-rpath,/opt/hostedtoolcache/Ruby/4.0.1/x64/lib -L/opt/hostedtoolcache/Ruby/4.0.1/x64/lib -lruby -lm -lpthread -lc"
4
- checked program was:
5
- /* begin */
6
- 1: #include "ruby.h"
7
- 2:
8
- 3: int main(int argc, char **argv)
9
- 4: {
10
- 5: return !!argv[argc];
11
- 6: }
12
- /* end */
13
-
14
- LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/4.0.1/x64/lib LSAN_OPTIONS=detect_leaks=0 "gcc -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/ruby/backward -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0 -I. -DENABLE_PATH_CHECK=0 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -c conftest.c"
15
- conftest.c:3:10: fatal error: prism.h: No such file or directory
16
- 3 | #include <prism.h>
17
- | ^~~~~~~~~
18
- compilation terminated.
19
- checked program was:
20
- /* begin */
21
- 1: #include "ruby.h"
22
- 2:
23
- 3: #include <prism.h>
24
- /* end */
25
-
26
- LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/4.0.1/x64/lib LSAN_OPTIONS=detect_leaks=0 "gcc -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/ruby/backward -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0 -I. -DENABLE_PATH_CHECK=0 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -I/home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include -c conftest.c"
27
- checked program was:
28
- /* begin */
29
- 1: #include "ruby.h"
30
- 2:
31
- 3: #include <prism.h>
32
- /* end */
33
-
34
- --------------------
35
-
36
- find_header: checking for prism/extension.h in /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext... -------------------- yes
37
-
38
- LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/4.0.1/x64/lib LSAN_OPTIONS=detect_leaks=0 "gcc -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/ruby/backward -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0 -I. -I/home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include -DENABLE_PATH_CHECK=0 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -c conftest.c"
39
- conftest.c:3:10: fatal error: prism/extension.h: No such file or directory
40
- 3 | #include <prism/extension.h>
41
- | ^~~~~~~~~~~~~~~~~~~
42
- compilation terminated.
43
- checked program was:
44
- /* begin */
45
- 1: #include "ruby.h"
46
- 2:
47
- 3: #include <prism/extension.h>
48
- /* end */
49
-
50
- LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/4.0.1/x64/lib LSAN_OPTIONS=detect_leaks=0 "gcc -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/ruby/backward -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0 -I. -I/home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include -DENABLE_PATH_CHECK=0 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -I/home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext -c conftest.c"
51
- checked program was:
52
- /* begin */
53
- 1: #include "ruby.h"
54
- 2:
55
- 3: #include <prism/extension.h>
56
- /* end */
57
-
58
- --------------------
59
-
60
- append_cflags: checking for whether -fvisibility=hidden is accepted as CFLAGS... -------------------- yes
61
-
62
- LD_LIBRARY_PATH=.:/opt/hostedtoolcache/Ruby/4.0.1/x64/lib LSAN_OPTIONS=detect_leaks=0 "gcc -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0/ruby/backward -I/opt/hostedtoolcache/Ruby/4.0.1/x64/include/ruby-4.0.0 -I. -I/home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/include -I/home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/prism-1.9.0/ext -DENABLE_PATH_CHECK=0 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef -fPIC -fvisibility=hidden -Werror -c conftest.c"
63
- checked program was:
64
- /* begin */
65
- 1: #include "ruby.h"
66
- 2:
67
- 3: int main(int argc, char **argv)
68
- 4: {
69
- 5: return !!argv[argc];
70
- 6: }
71
- /* end */
72
-
73
- --------------------
74
-
@@ -1,18 +0,0 @@
1
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
2
- /opt/hostedtoolcache/Ruby/4.0.1/x64/bin/ruby extconf.rb
3
- creating Makefile
4
-
5
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
6
- make -j5 DESTDIR\= sitearchdir\=./.gem.20260807-2447-krkev6 sitelibdir\=./.gem.20260807-2447-krkev6 clean
7
-
8
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
9
- make -j5 DESTDIR\= sitearchdir\=./.gem.20260807-2447-krkev6 sitelibdir\=./.gem.20260807-2447-krkev6
10
- compiling cparse.c
11
- linking shared-object racc/cparse.so
12
-
13
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
14
- make -j5 DESTDIR\= sitearchdir\=./.gem.20260807-2447-krkev6 sitelibdir\=./.gem.20260807-2447-krkev6 install
15
- /usr/bin/install -c -m 0755 cparse.so ./.gem.20260807-2447-krkev6/racc
16
-
17
- current directory: /home/runner/work/atom-parsetools/atom-parsetools/plugins/rubyastgen/bundle/ruby/4.0.0/gems/racc-1.8.1/ext/racc/cparse
18
- make DESTDIR\= sitearchdir\=./.gem.20260807-2447-krkev6 sitelibdir\=./.gem.20260807-2447-krkev6 clean