We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
has_unquotes/2
1 parent 116f8f4 commit 9a9135eCopy full SHA for 9a9135e
1 file changed
lib/elixir/src/elixir_quote.erl
@@ -55,7 +55,7 @@ end;
55
has_unquotes({{'.', _, [_, unquote]}, _, [_]}, _) -> true;
56
has_unquotes({Var, _, Ctx}, _) when is_atom(Var), is_atom(Ctx) -> false;
57
has_unquotes({Name, _, Args}, QuoteLevel) when is_list(Args) ->
58
- has_unquotes(Name) orelse lists:any(fun(Child) -> has_unquotes(Child, QuoteLevel) end, Args);
+ has_unquotes(Name, QuoteLevel) orelse lists:any(fun(Child) -> has_unquotes(Child, QuoteLevel) end, Args);
59
has_unquotes({Left, Right}, QuoteLevel) ->
60
has_unquotes(Left, QuoteLevel) orelse has_unquotes(Right, QuoteLevel);
61
has_unquotes(List, QuoteLevel) when is_list(List) ->
0 commit comments