aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_imm.erl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-10-28 16:13:25 +0100
committerBjörn Gustavsson <[email protected]>2015-04-30 12:15:24 +0200
commitc09a581ea58eaa120c1e2a0765c4e183f5cb3721 (patch)
tree2f487c48fb4ca314c343f110d86820d5dc43b0c1 /lib/asn1/src/asn1ct_imm.erl
parent85f96e5193d3df2cae9a0511e4ac6a72ec9f02af (diff)
downloadotp-c09a581ea58eaa120c1e2a0765c4e183f5cb3721.tar.gz
otp-c09a581ea58eaa120c1e2a0765c4e183f5cb3721.tar.bz2
otp-c09a581ea58eaa120c1e2a0765c4e183f5cb3721.zip
asn1: Use module erl_anno
Diffstat (limited to 'lib/asn1/src/asn1ct_imm.erl')
-rw-r--r--lib/asn1/src/asn1ct_imm.erl5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/asn1/src/asn1ct_imm.erl b/lib/asn1/src/asn1ct_imm.erl
index 5bf69e9294..5297d5291c 100644
--- a/lib/asn1/src/asn1ct_imm.erl
+++ b/lib/asn1/src/asn1ct_imm.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2012-2013. All Rights Reserved.
+%% Copyright Ericsson AB 2012-2015. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -2439,7 +2439,8 @@ bit_string_name2pos_fun(NNL, Src) ->
gen_name2pos(Fd, Name, Names) ->
Cs0 = gen_name2pos_cs(Names, Name),
Cs = Cs0 ++ [bit_clause(Name),nil_clause(),invalid_clause()],
- F = {function,1,Name,1,Cs},
+ F0 = {function,1,Name,1,Cs},
+ F = erl_parse:new_anno(F0),
file:write(Fd, [erl_pp:function(F)]).
gen_name2pos_cs([{K,V}|T], Name) ->