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

An AST node representing a directive

properties

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

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