Skip to content

Commit

Permalink
:BEGIN node in Rubyvm::NodeChainer
Browse files Browse the repository at this point in the history
  • Loading branch information
castwide committed Jan 11, 2025
1 parent 9665c7e commit d9a0a89
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 @@ -98,7 +98,7 @@ def generate_links n
result.concat generate_links(n.children.last)
elsif n.type == :OR
result.push Chain::Or.new([NodeChainer.chain(n.children[0], @filename), NodeChainer.chain(n.children[1], @filename)])
elsif n.type == :begin
elsif n.type == :BEGIN
result.concat generate_links(n.children[0])
elsif n.type == :BLOCK_PASS
result.push Chain::BlockVariable.new("&#{n.children[1].children[0].to_s}")
Expand Down

0 comments on commit d9a0a89

Please sign in to comment.