aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_docgen
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2016-01-26 10:32:12 +0100
committerLukas Larsson <[email protected]>2016-01-26 10:32:12 +0100
commit55ba47ec1511ea4ed5728c4c8ce15f339227e4a5 (patch)
tree0a9d569694e9f9f497d8479710b9543696f2fe62 /lib/erl_docgen
parentfa89f452f528321114593e0c79efba87fc4478d7 (diff)
parent42d798aef0f435d0027c836949a26cc699e7e9ae (diff)
downloadotp-55ba47ec1511ea4ed5728c4c8ce15f339227e4a5.tar.gz
otp-55ba47ec1511ea4ed5728c4c8ce15f339227e4a5.tar.bz2
otp-55ba47ec1511ea4ed5728c4c8ce15f339227e4a5.zip
Merge branch 'maint'
* maint: erl_docgen: Fix spec anno's for maps
Diffstat (limited to 'lib/erl_docgen')
-rw-r--r--lib/erl_docgen/src/docgen_otp_specs.erl4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/erl_docgen/src/docgen_otp_specs.erl b/lib/erl_docgen/src/docgen_otp_specs.erl
index 37baa7c2f9..e154323f07 100644
--- a/lib/erl_docgen/src/docgen_otp_specs.erl
+++ b/lib/erl_docgen/src/docgen_otp_specs.erl
@@ -729,5 +729,9 @@ annos_type([E=#xmlElement{name = typevar}]) ->
annos_elem(E);
annos_type([#xmlElement{name = paren, content = Es}]) ->
annos(get_elem(type, Es));
+annos_type([#xmlElement{name = map, content = Es}]) ->
+ lists:flatmap(fun(E) -> annos_type([E]) end, Es);
+annos_type([#xmlElement{name = map_field, content = Es}]) ->
+ lists:flatmap(fun annos_elem/1, get_elem(type,Es));
annos_type(_) ->
[].