aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen/src
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2014-02-09 15:02:13 +0100
committerAnthony Ramine <[email protected]>2014-02-12 02:59:47 +0100
commitad8020b105026e388a5266d530977fc14052b036 (patch)
tree0693cadeaeb36fb6ee0254f1ae1cd058cbc3d88c /lib/erl_docgen/src
parent8d71ab498974b5f0623eac50c4f94f62fc229a94 (diff)
downloadotp-ad8020b105026e388a5266d530977fc14052b036.tar.gz
otp-ad8020b105026e388a5266d530977fc14052b036.tar.bz2
otp-ad8020b105026e388a5266d530977fc14052b036.zip
Handle nonempty list types in docgen_edoc_xml_cb
Diffstat (limited to 'lib/erl_docgen/src')
-rw-r--r--lib/erl_docgen/src/docgen_edoc_xml_cb.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/erl_docgen/src/docgen_edoc_xml_cb.erl b/lib/erl_docgen/src/docgen_edoc_xml_cb.erl
index e3cc354206..c77d739731 100644
--- a/lib/erl_docgen/src/docgen_edoc_xml_cb.erl
+++ b/lib/erl_docgen/src/docgen_edoc_xml_cb.erl
@@ -1014,6 +1014,8 @@ t_type([#xmlElement{name = nil}]) ->
t_nil();
t_type([#xmlElement{name = list, content = Es}]) ->
t_list(Es);
+t_type([#xmlElement{name = nonempty_list, content = Es}]) ->
+ t_nonempty_list(Es);
t_type([#xmlElement{name = tuple, content = Es}]) ->
t_tuple(Es);
t_type([#xmlElement{name = 'fun', content = Es}]) ->
@@ -1046,6 +1048,9 @@ t_nil() ->
t_list(Es) ->
["["] ++ t_utype(get_elem(type, Es)) ++ ["]"].
+t_nonempty_list(Es) ->
+ ["["] ++ t_utype(get_elem(type, Es)) ++ [", ...]"].
+
t_tuple(Es) ->
["{"] ++ seq(fun t_utype_elem/1, Es, ["}"]).