Sourceror.postwalk
You're seeing just the function
postwalk
, go back to Sourceror module for more information.
Specs
postwalk(Macro.t(), traversal_function()) :: Macro.t()
Performs a depth-first post-order traversal of a quoted expression.
See postwalk/3
for more information.
Specs
postwalk(Macro.t(), term(), traversal_function()) :: {Macro.t(), term()}
Performs a depth-first post-order traversal of a quoted expression with an accumulator.
fun
is a function that will receive the current node as a first argument and
the traversal state as the second one. It must return a {quoted, state}
,
in the same way it would return {quoted, acc}
when using Macro.postwalk/3
.
The state is a map with the following keys:
:acc
- The accumulator. Defaults tonil
if none is given.