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
Raw Normal View History

defmodule Temple.Ast.Default do
2021-01-02 18:21:48 +00:00
@moduledoc false
@behaviour Temple.Parser
use TypedStruct
2021-04-09 03:04:26 +00:00
typedstruct do
field :elixir_ast, Macro.t()
end
@impl true
2021-03-25 03:01:13 +00:00
def applicable?(_ast), do: true
@impl true
2021-03-25 03:01:13 +00:00
def run(ast) do
Temple.Ast.new(__MODULE__, elixir_ast: ast)
2021-03-25 03:01:13 +00:00
end
end