diff options
author | Lukas Larsson <[email protected]> | 2015-07-03 16:13:52 +0200 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2016-01-26 10:31:13 +0100 |
commit | f4f0d3641264b75f2d4c465ed93e2d06e0961e4c (patch) | |
tree | a3a6183ba5717aa8fb56b6cfd5d588934ef6e77a /lib/erl_docgen/src/docgen_otp_specs.erl | |
parent | 448978562afbf77202034b018bf56775212f1ae6 (diff) | |
download | otp-f4f0d3641264b75f2d4c465ed93e2d06e0961e4c.tar.gz otp-f4f0d3641264b75f2d4c465ed93e2d06e0961e4c.tar.bz2 otp-f4f0d3641264b75f2d4c465ed93e2d06e0961e4c.zip |
erl_docgen: Fix spec anno's for maps
OTP-12955
Diffstat (limited to 'lib/erl_docgen/src/docgen_otp_specs.erl')
-rw-r--r-- | lib/erl_docgen/src/docgen_otp_specs.erl | 4 |
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(_) -> []. |