WhatsApp / erlfmt

An automated code formatter for Erlang
Apache License 2.0
412 stars 52 forks source link

Improve error_info() type #352

Open gomoripeti opened 10 months ago

gomoripeti commented 10 months ago

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.