Skip to content

Commit

Permalink
fix: rename ast helpers function
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacervello committed Apr 2, 2024
1 parent bd230ac commit f68d626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/next_ls/helpers/ast_helpers.ex
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ defmodule NextLS.ASTHelpers do
defmodule Function do
@moduledoc false

def find_aliased_function_call_within(ast, {line, column}) do
def find_remote_function_call_within(ast, {line, column}) do
position = [line: line, column: column]

result =
Expand Down
2 changes: 1 addition & 1 deletion lib/next_ls/signature_help.ex
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule NextLS.SignatureHelp do
{:ok, ast} -> ast
{:error, ast, _} -> ast
end),
{:ok, result} <- ASTHelpers.Function.find_aliased_function_call_within(ast, position) do
{:ok, result} <- ASTHelpers.Function.find_remote_function_call_within(ast, position) do
case result do
{{:., _, [{:__aliases__, _, modules}, name]}, _, _} -> {:ok, {Module.concat(modules), name}}
end
Expand Down

0 comments on commit f68d626

Please sign in to comment.