ExExample.Analyze (ExExample v0.1.2)
View SourceI contain functionality to analyze ASTs.
I have functionality to extract modules on which an AST depends, function calls it makes, and definitions from a module AST.
Summary
Functions
Given the path of a source file, I extract the definitions of the functions.
Functions
@spec extract_defs(String.t(), Macro.Env.t()) :: [{atom(), non_neg_integer()}]
Given the path of a source file, I extract the definitions of the functions.
@spec extract_function_calls(tuple(), Macro.Env.t()) :: [ {{atom(), atom()}, non_neg_integer()} ]