Skip to content

Commit

Permalink
Fix reverting map in syntax_tools
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
rolkar committed May 9, 2014
1 parent 266a12e commit c8695cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/syntax_tools/src/erl_syntax.erl
Expand Up @@ -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.


Expand Down Expand Up @@ -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.


Expand Down

0 comments on commit c8695cd

Please sign in to comment.