Merge pull request #71 from ukutaht/double_underscores

Use bare triple underscores instead of atoms
This commit is contained in:
Uku Taht
2016-04-20 15:40:52 +01:00
17 changed files with 155 additions and 160 deletions

View File

@@ -58,19 +58,6 @@ defmodule BlankAssertions do
end
defp contains_blank?(expr) do
{_, blank} = Macro.prewalk(expr, false, &blank?/2)
blank
end
defp blank?(node, true) do
{node, true}
end
defp blank?({expr, _, _} = node, _acc) do
{node, expr == :__}
end
defp blank?(expr, _acc) do
{expr, expr == :__}
Blanks.count(expr) > 0
end
end