aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src/asn1ct_parser2.erl
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-08-18 15:59:21 +0200
committerBjörn Gustavsson <[email protected]>2014-09-01 14:37:14 +0200
commit5095efaac2920677510971f08908e97f379c7c3f (patch)
tree25adf22629051fca7a4ac20328ac88f97eeec73b /lib/asn1/src/asn1ct_parser2.erl
parent155156563429fbb8535ca35491d8057d78aa272c (diff)
downloadotp-5095efaac2920677510971f08908e97f379c7c3f.tar.gz
otp-5095efaac2920677510971f08908e97f379c7c3f.tar.bz2
otp-5095efaac2920677510971f08908e97f379c7c3f.zip
Add the module name to the #classdef{} record
If we want construct an #'Externaltypereference'{} from a #classdef{} record, we will need the module name.
Diffstat (limited to 'lib/asn1/src/asn1ct_parser2.erl')
-rw-r--r--lib/asn1/src/asn1ct_parser2.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/asn1/src/asn1ct_parser2.erl b/lib/asn1/src/asn1ct_parser2.erl
index f6374da52e..14b90e6748 100644
--- a/lib/asn1/src/asn1ct_parser2.erl
+++ b/lib/asn1/src/asn1ct_parser2.erl
@@ -1055,7 +1055,8 @@ parse_DefinedObjectClass(Tokens) ->
parse_ObjectClassAssignment([{typereference,L1,ObjClName},{'::=',_}|Rest]) ->
{Type,Rest2} = parse_ObjectClass(Rest),
- {#classdef{pos=L1,name=ObjClName,typespec=Type},Rest2};
+ {#classdef{pos=L1,name=ObjClName,module=resolve_module(Type),
+ typespec=Type},Rest2};
parse_ObjectClassAssignment(Tokens) ->
throw({asn1_assignment_error,{get_line(hd(Tokens)),get(asn1_module),
[got,get_token(hd(Tokens)),expected,