ExExample.Analyze (ExExample v0.1.2)

View Source

I 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

extract_defs(file, env)

@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.

extract_function_calls(ast, env)

@spec extract_function_calls(tuple(), Macro.Env.t()) :: [
  {{atom(), atom()}, non_neg_integer()}
]