Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Aug 16, 2023
1 parent b537ca5 commit 768b8c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/ruby_lsp/event_emitter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@ def visit_call_node(node)

sig { override.params(node: YARP::ConstantPathWriteNode).void }
def visit_constant_path_write_node(node)
@listeners[:on_constant_path_write_node]&.each { |l| T.unsafe(l).on_constant_path_write_node(node) }
@listeners[:on_constant_path_write]&.each { |l| T.unsafe(l).on_constant_path_write(node) }
super
end

sig { override.params(node: YARP::ConstantWriteNode).void }
def visit_constant_write_node(node)
@listeners[:on_constant_write_node]&.each { |l| T.unsafe(l).on_constant_write_node(node) }
@listeners[:on_constant_write]&.each { |l| T.unsafe(l).on_constant_write(node) }
super
end

Expand Down
8 changes: 4 additions & 4 deletions lib/ruby_lsp/requests/document_symbol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ def initialize(emitter, message_queue)
:on_class,
:after_class,
:on_call,
:on_constant_path_write_node,
:on_constant_write_node,
:on_constant_path_write,
:on_constant_write,
:on_def,
:after_def,
:on_module,
Expand Down Expand Up @@ -143,7 +143,7 @@ def on_call(node)
end

sig { params(node: YARP::ConstantPathWriteNode).void }
def on_constant_path_write_node(node)
def on_constant_path_write(node)
create_document_symbol(
name: node.target.location.slice,
kind: :constant,
Expand All @@ -153,7 +153,7 @@ def on_constant_path_write_node(node)
end

sig { params(node: YARP::ConstantWriteNode).void }
def on_constant_write_node(node)
def on_constant_write(node)
create_document_symbol(
name: node.name,
kind: :constant,
Expand Down

0 comments on commit 768b8c6

Please sign in to comment.