Diesel.Generator behaviour (diesel v0.5.0)

Generators produce actual Elixir code from DSLs.

Given a caller module and a dsl definition, a generator returns one or multiple quoted expressions.

Summary

Callbacks

Link to this callback

generate(target, definition)

@callback generate(target :: module(), definition :: term()) :: Macro.t() | [Macro.t()]