We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6d85758 commit 999366eCopy full SHA for 999366e
src/merlin_bindings.erl
@@ -89,7 +89,7 @@
89
%% can be found.
90
%%
91
%% @see annotate/2
92
--spec annotate(merlin:ast()) -> merlin:ast().
+-spec annotate(merlin:ast() | [merlin:ast()]) -> merlin:ast() | [merlin:ast()].
93
annotate(Nodes) when is_list(Nodes) ->
94
lists:map(fun annotate/1, Nodes);
95
annotate(Node) ->
@@ -103,7 +103,7 @@ annotate(Node) ->
103
%% point.
104
105
%% @see erl_syntax_lib:annotate_bindings/2
106
--spec annotate(merlin:ast(), bindings()) -> merlin:ast().
+-spec annotate(merlin:ast() | [merlin:ast()], bindings()) -> merlin:ast() | [merlin:ast()].
107
annotate(Nodes, EnvBindings) when is_list(Nodes) ->
108
[annotate(Node, EnvBindings) || Node <- Nodes];
109
annotate(Node, EnvBindings) ->
0 commit comments