From bd3406cf88c43912f2c3d1219917452a92b9f3bd Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Tue, 7 Jul 2026 10:44:13 -0400 Subject: [PATCH] Use correct RBI::Loc type for RBI::Sig#loc during translation Found with https://github.com/Shopify/tapioca/pull/2667. Signed-off-by: Alexandre Terrasa --- lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb b/lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb index c6cc2c70..f7232957 100644 --- a/lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb +++ b/lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb @@ -180,7 +180,7 @@ def visit_sig(node) return unless sorbet_sig?(node) builder = RBI::Parser::SigBuilder.new(@ruby_contents, file: @file) - builder.current.loc = node.location + builder.current.loc = RBI::Loc.from_prism(@file, node.location) builder.visit_call_node(node) builder.current.comments = []