File tree 1 file changed +2
-11
lines changed
1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -617,8 +617,7 @@ def on_args_new
617
617
end
618
618
619
619
# :call-seq:
620
- # on_array: ((nil | Args | Array [ TStringContent ]) contents) ->
621
- # ArrayLiteral | Symbols
620
+ # on_array: ((nil | Args | ArrayLilteral) contents) -> ArrayLiteral
622
621
def on_array ( contents )
623
622
if !contents || contents . is_a? ( Args )
624
623
lbracket = consume_token ( LBracket )
@@ -629,22 +628,14 @@ def on_array(contents)
629
628
contents : contents ,
630
629
location : lbracket . location . to ( rbracket . location )
631
630
)
632
- elsif contents . is_a? ( ArrayLiteral )
631
+ else
633
632
tstring_end = consume_tstring_end ( contents . lbracket . location )
634
633
635
634
ArrayLiteral . new (
636
635
lbracket : contents . lbracket ,
637
636
contents : contents . contents ,
638
637
location : contents . location . to ( tstring_end . location )
639
638
)
640
- else
641
- tstring_end = consume_tstring_end ( contents . beginning . location )
642
-
643
- contents . class . new (
644
- beginning : contents . beginning ,
645
- elements : contents . elements ,
646
- location : contents . location . to ( tstring_end . location )
647
- )
648
639
end
649
640
end
650
641
You can’t perform that action at this time.
0 commit comments