Skip to content

Commit

Permalink
fixup! expand variables and module attributes on scope
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Aguiar committed Nov 10, 2023
1 parent da71836 commit d10bf14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/elixir_sense/core/source.ex
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ defmodule ElixirSense.Core.Source do
def get_mod_fun([atom, fun], _binding_env) when is_atom(atom), do: {{atom, false}, fun}
def get_mod_fun(_, _binding_env), do: nil

def get_mod([{name, _, nil} | _rest], binding_env) do
def get_mod([{name, _, nil} | _rest], binding_env) when is_atom(name) do
case Binding.expand(binding_env, {:variable, name}) do
{:atom, atom} ->
{atom, false}
Expand Down

0 comments on commit d10bf14

Please sign in to comment.