Skip to content

Commit

Permalink
Also dispatch to local macros
Browse files Browse the repository at this point in the history
  • Loading branch information
José Valim committed Apr 16, 2013
1 parent 963efc4 commit fd29173
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/elixir/src/elixir_translator.erl
Original file line number Diff line number Diff line change
Expand Up @@ -544,13 +544,7 @@ translate_local(Meta, Name, Args, #elixir_scope{local=nil} = S) ->
{ { call, Line, { atom, Line, Name }, TArgs }, NS };

translate_local(Meta, Name, Args, S) ->
Line = ?line(Meta),
{ TArgs, NS } = translate_args(Args, S),
Remote = { remote, Line,
{ atom, Line, S#elixir_scope.local },
{ atom, Line, Name }
},
{ { call, Line, Remote, TArgs }, NS }.
translate_each({ { '.', Meta, [S#elixir_scope.local, Name] }, Meta, Args }, S).

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

0 comments on commit fd29173

Please sign in to comment.