Surface.AST.Slot (surface v0.7.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
* `:for` - the slotable entry assigned for 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())], as: atom(), default: [Surface.AST.t()], directives: [Surface.AST.Directive.t()], for: any(), index: any(), meta: Surface.AST.Meta.t(), name: binary() }