Hello,
I’m trying to pattern match this part
{:@, [line: 2, column: 3],
[{:doc, [line: 2, column: 4], [" Adds 2 numbers\n"]}]},
{:def, [line: 5, column: 3],
from this:
just the :defmodule block without the :ok
I’m using this pattern match in the functions that receives the structure:
defp traverse(
{:@, _, _},
{:def, meta, [{name, _, args} | _]} = ast,
issues,
specs,
issue_meta
) do
also:
defp traverse(
[{:@, _, _},{:def, meta, _} | _] = ast,
issues,
specs,
issue_meta
) do
With no success, and I can’t find what’s wrong.
Any suggestion please? Thanks in advice!!!