Loppers.Walk (loppers v1.0.0)
Link to this section Summary
Functions
Helper to check if a function is imported in a given module.
Walk callback for collecting metadata like aliases and imports.
Walk callback for collecting metadata like aliases and imports.
Recursing into the AST. Difference to walk() is that the accumulator will only be changed for current branch.
Helper to call walker callback for each args.
Walking a given ast filling the accumulator using a walker-function.
Link to this section Functions
function_imported?(arg, function, arity)
Helper to check if a function is imported in a given module.
gen_meta(ast, acc)
Walk callback for collecting metadata like aliases and imports.
module_functions(module, current_functions)
Walk callback for collecting metadata like aliases and imports.
recurse(ast, acc, callback)
Recursing into the AST. Difference to walk() is that the accumulator will only be changed for current branch.
reduce_args(args, acc, walker)
Helper to call walker callback for each args.
track_parent_modules(ast, acc)
walk(ast, acc, walker)
Walking a given ast filling the accumulator using a walker-function.
Walker signature needs to be walker.(ast, acc)