Matcha.Rewrite (Matcha v0.1.1) View Source
About rewrites.
Link to this section Summary
Link to this section Types
Specs
t() :: %Matcha.Rewrite{ bindings: %{ vars: %{required(var_ref()) => var_binding()}, count: non_neg_integer() }, context: Matcha.Context.t(), env: Macro.Env.t(), source: Macro.t(), type: Matcha.Source.type() }
Specs
Specs
Specs
var_ref() :: atom()
Link to this section Functions
Specs
binding(t(), var_ref()) :: var_binding()
Specs
Specs
default_test_target(Matcha.Source.type()) :: Matcha.Source.test_target()
Specs
Specs
Specs
pattern_to_test_spec(Matcha.Pattern.t()) :: {:ok, Matcha.Spec.t()}
Specs
problem({type, description}) :: Matcha.Error.problem() when type: :error | :warning, description: charlist() | String.t()
Specs
problems(problems) :: Matcha.Error.problems() when problems: [{type, description}], type: :error | :warning, description: charlist() | String.t()
Specs
Specs
Specs
Specs
Specs
spec_to_pattern(Matcha.Spec.t()) :: {:ok, Matcha.Pattern.t()} | {:error, Matcha.Error.problems()}
Specs
spec_to_pattern!(Matcha.Spec.t()) :: Matcha.Pattern.t() | no_return()