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

Link to this function

function_imported?(arg, function, arity)

Helper to check if a function is imported in a given module.

Link to this function

gen_meta(ast, acc)

Walk callback for collecting metadata like aliases and imports.

Link to this function

module_functions(module, current_functions)

Walk callback for collecting metadata like aliases and imports.

Link to this function

recurse(ast, acc, callback)

Recursing into the AST. Difference to walk() is that the accumulator will only be changed for current branch.

Link to this function

reduce_args(args, acc, walker)

Helper to call walker callback for each args.

Link to this function

track_parent_modules(ast, acc)

Link to this function

walk(ast, acc, walker)

Walking a given ast filling the accumulator using a walker-function.

Walker signature needs to be walker.(ast, acc)