Commit graph

15 commits

Author SHA1 Message Date
Kevin Newton
3c3be9c6b2 [ruby/prism] (ruby_parser) Match match3 nodes for regular expressions
47cb73ce69
2024-07-11 19:46:50 +00:00
Kevin Newton
4c696597b7 [ruby/prism] (ruby_parser) Reverse associativity of and and or nodes
073e8ba307
2024-07-11 19:46:49 +00:00
Kevin Newton
72452f4387 [ruby/prism] Tests overhaul
6f886be0a4
2024-05-30 15:18:20 -04:00
Kevin Newton
c7281e2d67 [ruby/prism] Fix up ruby_parser string concat
4b06eae0df
2024-05-24 19:27:44 +00:00
Kevin Newton
e575954887 [ruby/prism] Fix support for 'it' implicit local variable
53bbcfe513
2024-05-22 16:34:04 -04:00
Kevin Newton
b20adf90e3 [ruby/prism] Fix up ruby_parser interpolation concatenation
79cec4be22
2024-05-21 18:45:16 +00:00
Kevin Newton
b5e53e2f32 [ruby/prism] Rescue LoadError for ruby_parser as well
d4eb13e703
2024-05-13 16:31:55 +00:00
Kevin Newton
2e44664547 [ruby/prism] operator rename
b5e47f5c42
2024-05-10 11:47:48 -04:00
Kevin Newton
5758e45657 [ruby/prism] Change ConstantPathNode#child to ConstantPathNode#{name,name_loc}
This has been requested for a long time, and I'm finally doing it
now. Unfortunately this is a breaking change for all of the APIs.

I've added in a Ruby method for `#child` that is deprecated so that
existing usage doesn't break, but for everyone else this is going
to be a bit of a pain.

9cbe74464e
2024-05-03 11:11:57 -04:00
Kevin Newton
1d51e929b1 [ruby/prism] Assume eval context for ruby_parser and ripper
e4d6984892
2024-05-03 13:12:27 +00:00
Kevin Newton
c7255ca219 [ruby/prism] Fix up ruby_parser translation for dstr
b0fa4b7cd8
2024-04-19 18:05:07 +00:00
Justin Collins
f5a2f55aca [ruby/prism] Use Sexp#line_max not Sexp#max_line
for RubyParser translation

a37169621a
2024-03-25 12:13:52 +00:00
Kevin Newton
c45ad17fa1 [ruby/prism] Shareable constant nodes
473cfed6d0
2024-03-15 12:31:26 +00:00
Kevin Newton
532ddc1745 [ruby/prism] Fix up linting in ripper translation
5cf5f15ee7
2024-03-06 16:43:06 +00:00
Kevin Newton
94bc5ad30a [ruby/prism] ruby_parser translator
1925b970c7
2024-02-12 17:54:54 +00:00