aboutsummaryrefslogtreecommitdiffstats
path: root/lib/stdlib/src/erl_parse.yrl
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2014-04-09 14:34:57 +0200
committerHans Bolinder <[email protected]>2014-04-29 09:17:01 +0200
commitd79cd97007ccc0e7051a8c45f6c164880bc77976 (patch)
tree3f7a480888e3af5d3c4655b9112b66188fab09e1 /lib/stdlib/src/erl_parse.yrl
parent8943276198034c6500ecbf4e513886ccf80fa056 (diff)
downloadotp-d79cd97007ccc0e7051a8c45f6c164880bc77976.tar.gz
otp-d79cd97007ccc0e7051a8c45f6c164880bc77976.tar.bz2
otp-d79cd97007ccc0e7051a8c45f6c164880bc77976.zip
Modify representation of the map type
Types are represented by quadruples {type, LINE, Name, Args}, but maps were represented by five-tuples {type, LINE, map_field_assoc, Dom, Range}. Note: this is *not* about the quadruples used for representing expressions, {map_field_assoc,L,K,V}.
Diffstat (limited to 'lib/stdlib/src/erl_parse.yrl')
-rw-r--r--lib/stdlib/src/erl_parse.yrl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stdlib/src/erl_parse.yrl b/lib/stdlib/src/erl_parse.yrl
index 8601c89d59..828870d492 100644
--- a/lib/stdlib/src/erl_parse.yrl
+++ b/lib/stdlib/src/erl_parse.yrl
@@ -180,7 +180,7 @@ fun_type -> '(' top_types ')' '->' top_type
map_pair_types -> map_pair_type : ['$1'].
map_pair_types -> map_pair_type ',' map_pair_types : ['$1'|'$3'].
-map_pair_type -> top_type '=>' top_type : {type, ?line('$2'), map_field_assoc,'$1','$3'}.
+map_pair_type -> top_type '=>' top_type : {type, ?line('$2'), map_field_assoc,['$1','$3']}.
field_types -> field_type : ['$1'].
field_types -> field_type ',' field_types : ['$1'|'$3'].