Skip to content

Commit

Permalink
dialyzer
Browse files Browse the repository at this point in the history
  • Loading branch information
plux committed Apr 19, 2024
1 parent f517689 commit 6c4cd5c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 4 additions & 1 deletion apps/els_lsp/src/els_arg.erl
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
-module(els_arg).
-export([name/1]).
-export_type([arg/0]).

-type arg() :: els_parser:arg().
-type arg() :: {pos_integer(),
#{name := string() | undefined,
pos => els_poi:poi_range()}}.

-spec name(arg()) -> string().
name(Arg) ->
Expand Down
5 changes: 2 additions & 3 deletions apps/els_lsp/src/els_parser.erl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@

-export_type([args/0]).

-type args() :: [els_arg:arg()].

%%==============================================================================
%% Includes
%%==============================================================================
Expand All @@ -28,9 +30,6 @@

-type deep_list(T) :: [T | deep_list(T)].

-type arg() :: #{name := string() | undefined, pos => els_poi:poi_range()}.
-type args() :: [{Index :: pos_integer(), arg()}].

%%==============================================================================
%% Dialyzer
%%==============================================================================
Expand Down

0 comments on commit 6c4cd5c

Please sign in to comment.