Commit graph

14659 commits

Author SHA1 Message Date
Kevin Newton
1966b5c8c6 [ruby/prism] Only run ripper tests on 3.3+
f8b973e8cd
2024-03-06 16:43:05 +00:00
Kevin Newton
bafe897351 [ruby/prism] Emit bounds for heredocs and words_sep in ripper translation
e23eae8266
2024-03-06 16:43:05 +00:00
Kevin Newton
72f01bddb6 [ruby/prism] Better factoring for heredocs in ripper translation
5030917eb0
2024-03-06 16:43:04 +00:00
Kevin Newton
630ee38618 [ruby/prism] More closely mirror on_heredoc_dedent API for ripper translation
97a031e1d3
2024-03-06 16:43:04 +00:00
Kevin Newton
ab31cfad26 [ruby/prism] Stop relying on ripper entirely in ripper translation
7f7840d318
2024-03-06 16:43:04 +00:00
Kevin Newton
f6d9057b31 [ruby/prism] More closely match the ripper API for ripper translation
716ee0e91a
2024-03-06 16:43:03 +00:00
Kevin Newton
294fe8490b [ruby/prism] Simplify ripper tests in ripper translation
a66d066162
2024-03-06 16:43:03 +00:00
Kevin Newton
2574e783f4 [ruby/prism] Stop looking at generated tree in ripper translation
3f59d07388
2024-03-06 16:43:03 +00:00
Kevin Newton
507ffc9686 [ruby/prism] Better handle splats in MRHS in rescues in ripper translation
36a0b2e45a
2024-03-06 16:43:02 +00:00
Kevin Newton
8528e765b7 [ruby/prism] Handle single splat in rescue in ripper translation
76cf29e68d
2024-03-06 16:43:02 +00:00
Kevin Newton
d23ebdfa6d [ruby/prism] Support elsif in ripper translation
0c008fcf34
2024-03-06 16:43:02 +00:00
Kevin Newton
06d36f7d6d [ruby/prism] Correctly detect void stmts in classes and modules in ripper translation
1729e8aec0
2024-03-06 16:43:01 +00:00
Kevin Newton
8c04d7e33c [ruby/prism] Handle empty programs in ripper translation
b607e3a98d
2024-03-06 16:43:01 +00:00
Kevin Newton
fa1db73335 [ruby/prism] Fix up blocks for index nodes in ripper translation
a35eadce47
2024-03-06 16:43:01 +00:00
Kevin Newton
554ad9dc1c [ruby/prism] Allow rescue modifier after MRHS in ripper translation
37db4d8c2d
2024-03-06 16:43:00 +00:00
Kevin Newton
46e9f71a91 [ruby/prism] Handle empty parentheses in lambda in ripper translation
e0a836ebc2
2024-03-06 16:43:00 +00:00
Kevin Newton
059f28eaac [ruby/prism] Handle empty embedded expressions in ripper translation
99eca8b1d2
2024-03-06 16:43:00 +00:00
Kevin Newton
1dae34f1c6 [ruby/prism] Implement string concat for ripper translation
6019342278
2024-03-06 16:42:59 +00:00
Kevin Newton
3c95848770 [ruby/prism] Share argument logic with calls and keywords in ripper translation
240bb08c2c
2024-03-06 16:42:59 +00:00
Kevin Newton
f75aa767f7 [ruby/prism] Better handle splat in MRHS
8331874218
2024-03-06 16:42:59 +00:00
Kevin Newton
cdb47b1b3a [ruby/prism] Handle numbered parameters in ripper translation
cf21c08c0b
2024-03-06 16:42:58 +00:00
Kevin Newton
f96ce41ac8 [ruby/prism] Disallow keywords as method names in ripper translation
dc74428e2e
2024-03-06 16:42:58 +00:00
Kevin Newton
14877e737b [ruby/prism] Split up multi target visits for methods in ripper translation
4e7733491f
2024-03-06 16:42:58 +00:00
Kevin Newton
9018e46cc2 [ruby/prism] Better split between fcall and command for ripper translation
972fe60aea
2024-03-06 16:42:57 +00:00
Kevin Newton
409a49c832 [ruby/prism] Handle trailing commas in method calls for ripper translation
fe10b5f49f
2024-03-06 16:42:57 +00:00
Kevin Newton
dad21783ac [ruby/prism] Better handle hash pattern in ripper translation
4639803277
2024-03-06 16:42:57 +00:00
Kevin Newton
2a051b0140 [ruby/prism] Share argument handling in super nodes in ripper translation
f315bdb45d
2024-03-06 16:42:57 +00:00
Kevin Newton
4304f5b6fb [ruby/prism] Fix up method naming in ripper translation
06a89c3540
2024-03-06 16:42:56 +00:00
Kevin Newton
d38894c156 [ruby/prism] Fix up symbols that look like cvar/ivar/gvar in ripper translation
64e8190da0
2024-03-06 16:42:56 +00:00
Kevin Newton
7d3f3ac983 [ruby/prism] Handle MRHS in ripper translation
6088ca1152
2024-03-06 16:42:56 +00:00
Kevin Newton
ae3f385c5f [ruby/prism] Fix up block arguments node for ripper translation
81feef447a
2024-03-06 16:42:55 +00:00
Kevin Newton
be5d99f7a2 [ruby/prism] Fix up MLHS posts in ripper translation
1f16df1f9e
2024-03-06 16:42:55 +00:00
Kevin Newton
712e841a4e [ruby/prism] Better void stmt detection for comments in ripper translation
36bae94f06
2024-03-06 16:42:54 +00:00
Kevin Newton
c6299dda3d [ruby/prism] Fix up begin node clause semicolon detection in ripper translation
117c7418af
2024-03-06 16:42:54 +00:00
Kevin Newton
ff9df28955 [ruby/prism] Fix up case consequent in ripper translation
9c298f294d
2024-03-06 16:42:54 +00:00
Kevin Newton
f4d1a36ab3 [ruby/prism] Fix up void stmt generation in ripper translation
27a427bc22
2024-03-06 16:42:53 +00:00
Kevin Newton
66356577d9 [ruby/prism] Consolidate symbol key handling in ripper translation
f4f7f8fc87
2024-03-06 16:42:53 +00:00
Kevin Newton
6361e37f3f [ruby/prism] Tilde heredocs for ripper translation
de9e55dd43
2024-03-06 16:42:53 +00:00
Kevin Newton
75e24a74d9 [ruby/prism] Implement call shorthand for ripper translation
4d08736bd5
2024-03-06 16:42:52 +00:00
Kevin Newton
8b721fcd06 [ruby/prism] Fix up multi write parentheses in ripper translation
41c84df423
2024-03-06 16:42:52 +00:00
Kevin Newton
d8cce33f07 [ruby/prism] Fix up body semicolon finding in ripper translation
8fa476d9a1
2024-03-06 16:42:52 +00:00
Kevin Newton
434e7bc56e [ruby/prism] Fix up backtick events on ripper translation
87538f1a12
2024-03-06 16:42:51 +00:00
Kevin Newton
6539258dcc [ruby/prism] Implement ternaries in ripper translation
8b14a85a4c
2024-03-06 16:42:51 +00:00
Kevin Newton
debb5e01f1 [ruby/prism] Implement character literals for ripper translation
3c28994a24
2024-03-06 16:42:51 +00:00
Kevin Newton
782f49db5b [ruby/prism] Fix empty strings for ripper translation
836adb0aaa
2024-03-06 16:42:50 +00:00
Kevin Newton
6b76a765ab [ruby/prism] Fix up yield arguments in ripper translation
22b9f3ccd9
2024-03-06 16:42:50 +00:00
Kevin Newton
31ef2f43a7 [ruby/prism] Consolidate semicolon checking in ripper translation
798517da1a
2024-03-06 16:42:50 +00:00
Kevin Newton
de61074514 [ruby/prism] Fix up else in implicit begin for ripper translation
4344b70ed5
2024-03-06 16:42:49 +00:00
Kevin Newton
4ce0395d86 [ruby/prism] Fix up return node for ripper translation
c00902af23
2024-03-06 16:42:49 +00:00
Kevin Newton
7ee404a24a [ruby/prism] Implement special array literals for ripper translation
a5c3d634ef
2024-03-06 16:42:49 +00:00