Surface.Directive behaviour (surface v0.7.0) View Source

Link to this section Summary

Link to this section Callbacks

Specs

extract(node :: any(), meta :: Surface.AST.Meta.t()) ::
  [Surface.AST.Directive.t()] | Surface.AST.Directive.t()
Link to this callback

process(directive, node)

View Source (optional)

Specs

process(directive :: Surface.AST.Directive.t(), node :: Surface.AST.t()) ::
  Surface.AST.t()