Utility functions for IR node inspection and traversal.
Summary
Functions
Builds a child-node id to direct-parent index.
Returns whether a node belongs to a function-clause pattern.
Functions
@spec direct_parent_index(%{optional(term()) => Reach.IR.Node.t()}) :: %{ optional(term()) => Reach.IR.Node.t() }
Builds a child-node id to direct-parent index.
@spec function_pattern?(Reach.IR.Node.t(), map(), map()) :: boolean()
Returns whether a node belongs to a function-clause pattern.