Skip to content

Commit af62234

Browse files
committed
fix dialyzer issues
1 parent ae45ce9 commit af62234

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

apps/language_server/lib/language_server/providers/completion/reducers/type_specs.ex

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,6 @@ defmodule ElixirLS.LanguageServer.Providers.Completion.Reducers.TypeSpecs do
8282
end
8383
end
8484

85-
defp expand({{:variable, _, _} = type, hint}, env, aliases) do
86-
# TODO Binding should return expanded aliases
87-
# TODO use Macro.Env
88-
case Binding.expand(env, type) do
89-
{:atom, module} -> {Introspection.expand_alias(module, aliases), hint}
90-
_ -> {nil, ""}
91-
end
92-
end
93-
9485
defp expand({type, hint}, _env, _aliases) do
9586
{type, hint}
9687
end

apps/language_server/lib/language_server/providers/completion/suggestion.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ defmodule ElixirLS.LanguageServer.Providers.Completion.Suggestion do
109109

110110
@add_opts_for [:populate_complete_engine]
111111

112-
@spec suggestions(String.t(), pos_integer, pos_integer, keyword()) :: [Suggestion.suggestion()]
112+
@spec suggestions(String.t(), pos_integer, pos_integer, keyword()) :: [suggestion()]
113113
def suggestions(code, line, column, options \\ []) do
114114
{prefix = hint, suffix} = Source.prefix_suffix(code, line, column)
115115

0 commit comments

Comments
 (0)