From d9a0a89308a3337e2ae4d343a46b96e859b99245 Mon Sep 17 00:00:00 2001 From: Fred Snyder Date: Sat, 11 Jan 2025 12:08:35 -0500 Subject: [PATCH] :BEGIN node in Rubyvm::NodeChainer --- lib/solargraph/parser/rubyvm/node_chainer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/solargraph/parser/rubyvm/node_chainer.rb b/lib/solargraph/parser/rubyvm/node_chainer.rb index d17f1eb6d..d3f57e758 100644 --- a/lib/solargraph/parser/rubyvm/node_chainer.rb +++ b/lib/solargraph/parser/rubyvm/node_chainer.rb @@ -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}")