Skip to content

Commit fd29173

Browse files
author
José Valim
committed
Also dispatch to local macros
1 parent 963efc4 commit fd29173

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/elixir/src/elixir_translator.erl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -544,13 +544,7 @@ translate_local(Meta, Name, Args, #elixir_scope{local=nil} = S) ->
544544
{ { call, Line, { atom, Line, Name }, TArgs }, NS };
545545

546546
translate_local(Meta, Name, Args, S) ->
547-
Line = ?line(Meta),
548-
{ TArgs, NS } = translate_args(Args, S),
549-
Remote = { remote, Line,
550-
{ atom, Line, S#elixir_scope.local },
551-
{ atom, Line, Name }
552-
},
553-
{ { call, Line, Remote, TArgs }, NS }.
547+
translate_each({ { '.', Meta, [S#elixir_scope.local, Name] }, Meta, Args }, S).
554548

555549
expand_var_context(_Meta, Atom, _Msg, _S) when is_atom(Atom) -> Atom;
556550
expand_var_context(Meta, Alias, Msg, S) ->

0 commit comments

Comments
 (0)