Skip to content

Commit 71bf717

Browse files
committed
Fix surrounding method call sites
1 parent 57a2144 commit 71bf717

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/ruby_lsp/listeners/definition.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ def handle_super_node_definition
249249
return unless surrounding_method
250250

251251
handle_method_definition(
252-
surrounding_method,
252+
surrounding_method.name,
253253
@type_inferrer.infer_receiver_type(@node_context),
254254
inherited_only: true,
255255
)

lib/ruby_lsp/listeners/hover.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ def handle_super_node_hover(keyword_location)
446446
# we still push those
447447
unless @sorbet_level.true_or_higher?
448448
surrounding_method = @node_context.surrounding_method
449-
handle_method_hover(surrounding_method, inherited_only: true) if surrounding_method
449+
handle_method_hover(surrounding_method.name, inherited_only: true) if surrounding_method
450450
end
451451

452452
handle_keyword_at_location(keyword_location)

0 commit comments

Comments
 (0)