aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorRoland Karlsson <[email protected]>2014-04-21 13:50:32 +0200
committerRoland Karlsson <[email protected]>2014-05-09 12:14:31 +0200
commitc8695cd2b0fcd95f0af5c67bf049d19dbba5ec82 (patch)
tree0e7ef9d5e85107e8644df8068e744e6943dc08db /lib
parent266a12e70626d1d6119308c884c79f930bdd5bec (diff)
downloadotp-c8695cd2b0fcd95f0af5c67bf049d19dbba5ec82.tar.gz
otp-c8695cd2b0fcd95f0af5c67bf049d19dbba5ec82.tar.bz2
otp-c8695cd2b0fcd95f0af5c67bf049d19dbba5ec82.zip
Fix reverting map in syntax_tools
There was a copy-paste bug in erl_syntax when running e.g. erl_syntax:revert_forms, affecting maps. Instead of getting Key/Value you got Key/Key in the resulting abstract form.
Diffstat (limited to 'lib')
-rw-r--r--lib/syntax_tools/src/erl_syntax.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/syntax_tools/src/erl_syntax.erl b/lib/syntax_tools/src/erl_syntax.erl
index c9996c954e..46a5ca48df 100644
--- a/lib/syntax_tools/src/erl_syntax.erl
+++ b/lib/syntax_tools/src/erl_syntax.erl
@@ -2071,7 +2071,7 @@ map_field_assoc_value(Node) ->
{map_field_assoc, _, _, Value} ->
Value;
_ ->
- (data(Node))#map_field_assoc.name
+ (data(Node))#map_field_assoc.value
end.
@@ -2129,7 +2129,7 @@ map_field_exact_value(Node) ->
{map_field_exact, _, _, Value} ->
Value;
_ ->
- (data(Node))#map_field_exact.name
+ (data(Node))#map_field_exact.value
end.