Skip to content

Commit

Permalink
fix macro signature
Browse files Browse the repository at this point in the history
  • Loading branch information
plux committed Apr 22, 2024
1 parent 921732c commit 4f378db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/els_lsp/src/els_docs.erl
Original file line number Diff line number Diff line change
Expand Up @@ -541,9 +541,9 @@ format_edoc(Desc) when is_map(Desc) ->
FormattedDoc = els_utils:to_list(docsh_edoc:format_edoc(Doc, #{})),
[{text, FormattedDoc}].

-spec macro_signature(els_poi:poi_id(), [{integer(), string()}]) -> unicode:charlist().
-spec macro_signature(els_poi:poi_id(), els_parser:args()) -> unicode:charlist().
macro_signature({Name, _Arity}, Args) ->
[atom_to_list(Name), "(", lists:join(", ", [A || {_N, #{name := A}} <- Args]), ")"];
[atom_to_list(Name), "(", lists:join(", ", [els_arg:name(A) || A <- Args]), ")"];
macro_signature(Name, none) ->
atom_to_list(Name).

Expand Down

0 comments on commit 4f378db

Please sign in to comment.