diff options
author | Björn Gustavsson <[email protected]> | 2017-03-14 08:29:23 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2017-03-14 09:47:40 +0100 |
commit | e145beaa7102858c95315ec48ad04d0b57b6f018 (patch) | |
tree | e79b08aff8e317af3f2e3f7424bc992e61f2de66 /lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl | |
parent | 4b51ea6aa2c4542ca83008cd4abb22169e481620 (diff) | |
download | otp-e145beaa7102858c95315ec48ad04d0b57b6f018.tar.gz otp-e145beaa7102858c95315ec48ad04d0b57b6f018.tar.bz2 otp-e145beaa7102858c95315ec48ad04d0b57b6f018.zip |
Clean up use of asn1ct_gen:emit/1
Stop up using asn1ct_gen:emit/1 with a tuple instead of a list.
Also remove the remaining uses of asn1ct_gen:demit/1.
Diffstat (limited to 'lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl')
-rw-r--r-- | lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl b/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl index f13668e27d..e94f25af5f 100644 --- a/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl +++ b/lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl @@ -1462,6 +1462,9 @@ print_attribute_comment(InnerType,Pos,Cname,Prop) -> case InnerType of #'Externaltypereference'{module=XModule,type=Name} -> emit([nl,"%% attribute ",Cname,"(",Pos,") External ",XModule,":",Name]); + _ when is_tuple(InnerType) -> + emit([nl,"%% attribute ",Cname,"(",Pos,") with type "| + tuple_to_list(InnerType)]); _ -> emit([nl,"%% attribute ",Cname,"(",Pos,") with type ",InnerType]) end, |