erl_syntax:set_pos/2 or erl_syntax:revert/1 is not works as expected #4668
Labels
bug
Issue is reported as a bug
help wanted
Issue not worked on by OTP; help wanted from the community
priority:low
team:VM
Assigned to OTP team VM
Describe the bug
erl_syntax:set_pos/2 or erl_syntax:revert/1 is not works as expected
assertEqual above fails.
Reason
erl_syntax use a wrapper to wrap erl_parse tree and erl_syntax:set_pos/2 only changes #wrapper.attr in wrapper record
while use erl_syntax:revert/1 #wrapper.attr is dropped, original pos in erl_parse tree is not changed
Affected versions
OTP 23 and higher
The text was updated successfully, but these errors were encountered: