DSL.Scope (dsl v0.1.0)

Copy Markdown View Source

A single active DSL scope with state and source location metadata.

Summary

Types

location()

@type location() :: DSL.Source.t()

t()

@type t() :: %DSL.Scope{location: location() | nil, name: atom(), state: term()}

Functions

new(name, state, location \\ nil)

@spec new(atom(), term(), Macro.Env.t() | DSL.Source.t() | map() | nil) :: t()

Build a scope value.