forked from elixir-editors/emacs-elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide completions for protocol functions (elixir-editors#83)
* provide completions for protocol functions * make test not depend on std lib
- Loading branch information
1 parent
dfa8116
commit 9ad535f
Showing
4 changed files
with
65 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
apps/language_server/test/support/fixtures/example_protocol.ex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
defprotocol ElixirLS.LanguageServer.Fixtures.ExampleProtocol do | ||
@moduledoc """ | ||
ExampleProtocol protocol used in tests. | ||
""" | ||
|
||
@doc """ | ||
Does what `my_fun` does for `t` | ||
""" | ||
@spec my_fun(t, integer) :: binary | ||
def my_fun(example, arg) | ||
end |