Skip to content

Commit 5f1fb3b

Browse files
authored
Annotate more private calls found with PrivCheck (#198)
* Annotate more private calls found with PrivCheck https://github.com/axelson/priv_check * ElixirSense.Providers.Definition.Location should be public That will be changed in ElixirSense
1 parent 6020c1c commit 5f1fb3b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

apps/elixir_ls_utils/lib/launch.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ defmodule ElixirLS.Utils.Launch do
2626
end
2727

2828
defp load_dot_config do
29+
# FIXME: Private API
2930
path = Path.join(Mix.Utils.mix_home(), "config.exs")
3031

3132
if File.regular?(path) do

apps/language_server/lib/language_server/providers/code_lens.ex

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,17 @@ defmodule ElixirLS.LanguageServer.Providers.CodeLens do
1717

1818
defmodule ContractTranslator do
1919
def translate_contract(fun, contract, is_macro) do
20+
# FIXME: Private module
2021
{[%ExSpec{specs: [spec]} | _], _} =
2122
"-spec foo#{contract}."
23+
# FIXME: Private module
2224
|> Parse.string()
2325
|> hd()
2426
|> elem(0)
27+
# FIXME: Private module
2528
|> ErlForms.conv_form(%Context{
2629
in_type_expr: true,
30+
# FIXME: Private module
2731
module_data: %ModuleData{}
2832
})
2933

0 commit comments

Comments
 (0)