Surface.Directive behaviour (Surface v0.12.3)

Copy Markdown View Source

Summary

Callbacks

extract(node, meta)

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

process(directive, node)

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