Source location metadata for DSL diagnostics.
Summary
Functions
Build and escape source metadata for injection into quoted code.
Build source location metadata from a macro caller environment.
Types
@type t() :: %DSL.Source{ column: pos_integer() | nil, file: String.t() | nil, line: pos_integer() | nil }
Functions
@spec escape_caller(Macro.Env.t()) :: Macro.t()
Build and escape source metadata for injection into quoted code.
@spec from_caller(Macro.Env.t()) :: t()
Build source location metadata from a macro caller environment.