Browse Source

Add support for parameterized modules to the parse transform

pull/4/head
Andrew Thompson 13 years ago
parent
commit
db725a90ba
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/lager_transform.erl

+ 4
- 0
src/lager_transform.erl View File

@ -33,6 +33,10 @@ parse_transform(AST, _Options) ->
walk_ast(Acc, []) -> walk_ast(Acc, []) ->
lists:reverse(Acc); lists:reverse(Acc);
walk_ast(Acc, [{attribute, _, module, {Module, _PmodArgs}}=H|T]) ->
%% A wild parameterized module appears!
put(module, Module),
walk_ast([H|Acc], T);
walk_ast(Acc, [{attribute, _, module, Module}=H|T]) -> walk_ast(Acc, [{attribute, _, module, Module}=H|T]) ->
put(module, Module), put(module, Module),
walk_ast([H|Acc], T); walk_ast([H|Acc], T);

Loading…
Cancel
Save