Skip to content

Commit f13a8a2

Browse files
authored
Merge pull request #970 from Shopify/at-fix-sig-loc
Use correct type for `RBI::Sig#loc` during translation
2 parents e16f105 + bd3406c commit f13a8a2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/spoom/sorbet/translate/sorbet_sigs_to_rbs_comments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def visit_sig(node)
180180
return unless sorbet_sig?(node)
181181

182182
builder = RBI::Parser::SigBuilder.new(@ruby_contents, file: @file)
183-
builder.current.loc = node.location
183+
builder.current.loc = RBI::Loc.from_prism(@file, node.location)
184184
builder.visit_call_node(node)
185185
builder.current.comments = []
186186

0 commit comments

Comments
 (0)