Skip to content
Browse files

distes_ie missing support for list comprehensions in expression evalu…

…ator
  • Loading branch information...
1 parent 6eae524 commit ecc85817e7c021d9e8507213809a3a6a7eb61a11 mats cronqvist committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 src/distel_ie.erl
View
11 src/distel_ie.erl
@@ -198,6 +198,17 @@ add_remote_call_info({integer, L, Value}, _Defs) ->
{integer, L, Value} ;
add_remote_call_info({string, L, String}, _Defs) ->
{string, L, String} ;
+
+add_remote_call_info([{lc, L, Body, Gen}|Rs], Defs) ->
+ Bd = add_remote_call_info(Body, Defs),
+ Gn = add_remote_call_info(Gen, Defs),
+ [{lc, L, Bd, Gn}|add_remote_call_info(Rs,Defs)];
+add_remote_call_info([{generate, L, Var, Gen}|Gs], Defs) ->
+ Gn = add_remote_call_info(Gen, Defs),
+ [{generate, L, Var, Gn}|add_remote_call_info(Gs, Defs)];
+add_remote_call_info({call, L, {atom, L2, Name}, Body}, Defs) ->
+ hd(add_remote_call_info([{call, L, {atom, L2, Name}, Body}], Defs));
+
add_remote_call_info([{call, L, {atom, L2, Name}, Body} | Rs], Defs) ->
B = add_remote_call_info(Body, Defs),
IsBuiltin = erlang:is_builtin(erlang, Name, length(B)),

0 comments on commit ecc8581

Please sign in to comment.
Something went wrong with that request. Please try again.