Skip to content

Commit

Permalink
Fix a typecheck-found issue in the RubyVM parser
Browse files Browse the repository at this point in the history
  • Loading branch information
apiology committed Feb 22, 2025
1 parent ab6ea7d commit 61b18f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/solargraph/parser/rubyvm/node_chainer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def generate_links n
result.push Chain::Hash.new('::Hash', hash_is_splatted?(n))
elsif n.type == :ARRAY
chained_children = n.children[0..-2].map { |c| NodeChainer.chain(c) }
result.push Source::Chain::Array.new(lit, chained_children)
result.push Source::Chain::Array.new(chained_children)
else
lit = infer_literal_node_type(n)
if lit
Expand Down

0 comments on commit 61b18f1

Please sign in to comment.