erlfmt_scan returns erl_anno:location() in errors however erlfmt_parse mostly returns full erlfmt_scan:anno() maps. The errors from the parser also surface in the return value of erlfmt:read_nodes[_string]
I noticed this via dialyzer when calling erlfmt_parse directly.
erlfmt_scan
returnserl_anno:location()
in errors howevererlfmt_parse
mostly returns fullerlfmt_scan:anno()
maps. The errors from the parser also surface in the return value oferlfmt:read_nodes[_string]
I noticed this via dialyzer when calling erlfmt_parse directly.