lib/ruby_parser.yy in ruby_parser-3.18.0 vs lib/ruby_parser.yy in ruby_parser-3.18.1
- old
+ new
@@ -1360,18 +1360,24 @@
(_, line), = val
result = s(:return).line line
}
| kYIELD tLPAREN2 call_args rparen
{
- result = new_yield val[2]
+ (_, line), _, args, _ = val
+
+ result = new_yield(args).line line
}
| kYIELD tLPAREN2 rparen
{
- result = new_yield
+ (_, line), _, _ = val
+
+ result = new_yield.line line
}
| kYIELD
{
- result = new_yield
+ (_, line), = val
+
+ result = new_yield.line line
}
| kDEFINED opt_nl tLPAREN2 expr rparen
{
(_, line), _, _, arg, _ = val