Macro.unique_var
You're seeing just the function
unique_var
, go back to Macro module for more information.
Specs
unique_var(var, context) :: {var, [{:counter, integer()}], context} when var: atom(), context: atom()
Generates an AST node representing a unique variable
given by the atoms var
and context
.
Examples
iex> {:foo, [counter: c], __MODULE__} = Macro.unique_var(:foo, __MODULE__)
iex> is_integer(c)
true