Shared helpers for working with Elixir AST.
Summary
Functions
Returns the module, function, and arguments represented by an Elixir call AST node.
Returns the name and arity represented by a function head.
Returns whether keyword AST contains a key.
Fetches a value from ordinary or Sourceror-wrapped keyword AST.
Returns a value from ordinary or Sourceror-wrapped keyword AST.
Returns a static module name represented by alias AST.
Returns real defmodule AST nodes from a quoted source tree.
Functions
Returns the module, function, and arguments represented by an Elixir call AST node.
@spec function_identity(Macro.t()) :: {:ok, atom(), non_neg_integer()} | :error
Returns the name and arity represented by a function head.
Returns whether keyword AST contains a key.
Fetches a value from ordinary or Sourceror-wrapped keyword AST.
Returns a value from ordinary or Sourceror-wrapped keyword AST.
Returns a static module name represented by alias AST.
Returns real defmodule AST nodes from a quoted source tree.