erlang-ls / erlang_ls

The Erlang Language Server
https://erlang-ls.github.io/
Apache License 2.0
618 stars 136 forks source link

Extract argument names from specs #1517

Closed plux closed 1 month ago

plux commented 1 month ago

Description

Partial support for this was already added in the inlay hints PR.

Now we also support extracting argument names from specs of this format:

-spec member(Elem, List) -> boolean() when
      Elem :: T,
      List :: [T],
      T :: term().

Fixes #1362 .