aboutsummaryrefslogtreecommitdiffstats
path: root/lib/syntax_tools/src
diff options
context:
space:
mode:
authorHans Bolinder <[email protected]>2018-05-30 12:52:42 +0200
committerHans Bolinder <[email protected]>2018-06-14 12:50:18 +0200
commit1f7f0b9d4c1607fb4e27f6508a46b8794408f86c (patch)
treeb3ba53d1182e670ed39136b7d35fa74a4f7a0b03 /lib/syntax_tools/src
parentdb6059a9217767a6e42e93cec05089c0ec977d20 (diff)
downloadotp-1f7f0b9d4c1607fb4e27f6508a46b8794408f86c.tar.gz
otp-1f7f0b9d4c1607fb4e27f6508a46b8794408f86c.tar.bz2
otp-1f7f0b9d4c1607fb4e27f6508a46b8794408f86c.zip
syntax_tools: Fix a bug regarding reverting map types.
Diffstat (limited to 'lib/syntax_tools/src')
-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 9b2b503762..5bd67b3806 100644
--- a/lib/syntax_tools/src/erl_syntax.erl
+++ b/lib/syntax_tools/src/erl_syntax.erl
@@ -5324,7 +5324,7 @@ revert_map_type_assoc(Node) ->
Pos = get_pos(Node),
Name = map_type_assoc_name(Node),
Value = map_type_assoc_value(Node),
- {type, Pos, map_type_assoc, [Name, Value]}.
+ {type, Pos, map_field_assoc, [Name, Value]}.
%% =====================================================================
@@ -5382,7 +5382,7 @@ revert_map_type_exact(Node) ->
Pos = get_pos(Node),
Name = map_type_exact_name(Node),
Value = map_type_exact_value(Node),
- {type, Pos, map_type_exact, [Name, Value]}.
+ {type, Pos, map_field_exact, [Name, Value]}.
%% =====================================================================