This repository has been archived on 2023-08-07. You can view files and clone it, but cannot push or open issues or pull requests.
temple/lib/temple/ast/default.ex

19 lines
292 B
Elixir

defmodule Temple.Ast.Default do
@moduledoc false
@behaviour Temple.Parser
use TypedStruct
typedstruct do
field :elixir_ast, Macro.t()
end
@impl true
def applicable?(_ast), do: true
@impl true
def run(ast) do
Temple.Ast.new(__MODULE__, elixir_ast: ast)
end
end