Pathex v0.3.0 Pathex.Common 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
detect_variables(Macro.t(), context()) ::
  {Macro.t(), [{atom(), list(), context()}]}
Link to this function

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

View Source
list_match(non_neg_integer(), Macro.t()) :: Macro.t()
Link to this function

update_variables(ast, func, context \\ nil)

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