Reach.Evidence.AST (Reach v2.8.1)

Copy Markdown View Source

Shared AST helpers for evidence providers.

Summary

Functions

call?(node, arg)

call_descriptor(arg1)

collect(ast, collector)

contains?(ast, predicate)

contains_call?(ast, target)

count(ast, predicate)

count_calls(ast, targets)

erlang_call?(arg1, module, function)

local_call?(arg1, function)

parse_file(file)

@spec parse_file(Path.t()) :: {:ok, Macro.t()} | {:error, term()}

Parses one source file with line and column metadata without loading it.

reduce(ast, initial, reducer)

references?(ast, expected)

remote_call?(arg1, module, function)

same_ast?(left, right)