Avoid conflicts with erl_anno in meta
We avoid using :file publicly as well as :location privately. We do still use :file privately but that's supposed to mirror the `-file` annotation in Erlang before function definitions.
This commit is contained in:
@@ -141,7 +141,7 @@ file_format(Line, File) ->
|
||||
io_lib:format("~ts:~w", [elixir_utils:relative_to_cwd(File), Line]).
|
||||
|
||||
meta_location(Meta, File) ->
|
||||
case elixir_utils:meta_location(Meta) of
|
||||
case elixir_utils:meta_keep(Meta) of
|
||||
{F, L} -> {F, L};
|
||||
nil -> {File, ?line(Meta)}
|
||||
end.
|
||||
|
||||
Reference in New Issue
Block a user