Skip to content

Commit 3a48040

Browse files
committed
Put array lit location on contents
Signed-off-by: Alexandre Terrasa <[email protected]>
1 parent 94670fd commit 3a48040

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: lib/syntax_tree/parser.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -629,12 +629,10 @@ def on_array(contents)
629629
location: lbracket.location.to(rbracket.location)
630630
)
631631
else
632-
tstring_end = consume_tstring_end(contents.lbracket.location)
633-
634632
ArrayLiteral.new(
635633
lbracket: contents.lbracket,
636634
contents: contents.contents,
637-
location: contents.location.to(tstring_end.location)
635+
location: contents.location
638636
)
639637
end
640638
end

0 commit comments

Comments
 (0)