Surface.AST.Directive (surface v0.6.1) View Source
An AST node representing a directive
Properties
* `:module` - the module which implements logic for this directive (e.g. `Surface.Directive.Let`)
* `:name` - the name of the directive (e.g. `:let`)
* `:value` - the code/configuration for this directive. typically a quoted expression
* `:meta` - compilation meta data
Link to this section Summary
Link to this section Types
Specs
t() :: %Surface.AST.Directive{
meta: Surface.AST.Meta.t(),
module: atom(),
name: atom(),
value: Surface.AST.AttributeExpr.t() | Surface.AST.Literal.t() | nil
}