aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src/erl_syntax_lib.erl
diff options
context:
space:
mode:
authorKostis Sagonas <[email protected]>2010-10-26 13:16:41 +0300
committerBjörn Gustavsson <[email protected]>2010-10-26 16:09:57 +0200
commit44eb815397d0fd34e0a596f32b18ff97358aada1 (patch)
tree00cd3fa0f99337b2c103dd07bf13a2760eb924ef /lib/syntax_tools/src/erl_syntax_lib.erl
parent251a255464b5563b10a1eaae5bc6eca1f5f39d26 (diff)
downloadotp-44eb815397d0fd34e0a596f32b18ff97358aada1.tar.gz
otp-44eb815397d0fd34e0a596f32b18ff97358aada1.tar.bz2
otp-44eb815397d0fd34e0a596f32b18ff97358aada1.zip
syntax_tools: Fix an erroneous type and strengthen some specs
The declaration of the stubDescriptop() type in 'igor' was erroneous, both in the -type and in the published documentation of the module. While fixing this some specs where strengthened and used a remote type to refer to ordsets:ordset(T). Consequently, this patch depends on the ordsets module exporting the ordset/1 type.
Diffstat (limited to 'lib/syntax_tools/src/erl_syntax_lib.erl')
-rw-r--r--lib/syntax_tools/src/erl_syntax_lib.erl6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/syntax_tools/src/erl_syntax_lib.erl b/lib/syntax_tools/src/erl_syntax_lib.erl
index daef74e874..97dfbfd7cd 100644
--- a/lib/syntax_tools/src/erl_syntax_lib.erl
+++ b/lib/syntax_tools/src/erl_syntax_lib.erl
@@ -49,10 +49,6 @@
-export_type([info_pair/0]).
%% =====================================================================
-
--type ordset(X) :: [X]. % XXX: TAKE ME OUT
-
-%% =====================================================================
%% @spec map(Function, Tree::syntaxTree()) -> syntaxTree()
%%
%% Function = (syntaxTree()) -> syntaxTree()
@@ -480,7 +476,7 @@ new_variable_names(0, Names, _, _, _) ->
%% @see annotate_bindings/1
%% @see //stdlib/ordsets
--spec annotate_bindings(erl_syntax:syntaxTree(), ordset(atom())) ->
+-spec annotate_bindings(erl_syntax:syntaxTree(), ordsets:ordset(atom())) ->
erl_syntax:syntaxTree().
annotate_bindings(Tree, Env) ->