View Source Surface.AST.Directive (surface v0.11.5)

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

Summary

Types

@type t() :: %Surface.AST.Directive{
  meta: Surface.AST.Meta.t(),
  module: atom(),
  name: atom(),
  value: Surface.AST.AttributeExpr.t() | Surface.AST.Literal.t() | nil
}