Pathex.Common (Pathex v1.0.1) View Source

Util functions for working with AST

Link to this section Summary

Link to this section Functions

Link to this function

detect_variables(ast, context \\ nil)

View Source

Specs

detect_variables(Macro.t(), context()) :: [{atom(), list(), context()}]
Link to this function

list_match(index, inner \\ {:x, [], Elixir})

View Source

Specs

list_match(non_neg_integer(), Macro.t()) :: Macro.t()

Specs

pin(Macro.t()) :: Macro.t()

Specs

to_case([Macro.t()]) :: Macro.t()
Link to this function

update_variables(ast, func, context \\ nil)

View Source

Specs

update_variables(Macro.t(), (Macro.t() -> Macro.t()), context()) :: Macro.t()