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:
José Valim
2017-10-25 00:33:05 +02:00
parent 171a849c8a
commit 47ca7004b6
8 changed files with 42 additions and 55 deletions
+1 -1
View File
@@ -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.