Surface.AST.Slot (surface v0.6.0) View Source

An AST node representing a <#slot /> element

Properties

* `:name` - the slot name
* `:index` - the index of the slotable entry assigned to this slot
* `:default` - a list of AST nodes representing the default content for this slot
* `:args` - either an atom or a quoted expression representing arguments for this slot
* `:meta` - compilation meta data
* `:directives` - directives associated with this slot

Link to this section Summary

Link to this section Types

Specs

t() :: %Surface.AST.Slot{
  args: [Keyword.t(any())],
  default: [Surface.AST.t()],
  directives: [Surface.AST.Directive.t()],
  index: any(),
  meta: Surface.AST.Meta.t(),
  name: binary()
}