Documentation
¶
Index ¶
- type Error
- type InterpreterRegistry
- type Node
- func (n *Node) ArgumentNodes() []parsley.Node
- func (n *Node) Children() []parsley.Node
- func (n *Node) Name() conflow.ID
- func (n *Node) Pos() parsley.Pos
- func (n *Node) ReaderPos() parsley.Pos
- func (n *Node) Schema() interface{}
- func (n *Node) SetReaderPos(f func(parsley.Pos) parsley.Pos)
- func (n *Node) StaticCheck(ctx interface{}) parsley.Error
- func (n *Node) String() string
- func (n *Node) Token() string
- func (n *Node) Value(ctx interface{}) (interface{}, parsley.Error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
Error is a function error which can contain an argument number
type InterpreterRegistry ¶
type InterpreterRegistry map[string]conflow.FunctionInterpreter
InterpreterRegistry contains a list of function interpreters and behaves as a node transformer registry
func (InterpreterRegistry) NodeTransformer ¶
func (i InterpreterRegistry) NodeTransformer(name string) (parsley.NodeTransformer, bool)
NodeTransformer returns with the named node transformer
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node is a function node
func (*Node) ArgumentNodes ¶
ArgumentNodes returns with the function argument nodes
func (*Node) Schema ¶
func (n *Node) Schema() interface{}
Schema returns the schema for the node's value
func (*Node) SetReaderPos ¶
SetReaderPos amends the reader position using the given function
func (*Node) StaticCheck ¶
StaticCheck runs static analysis on the node
Click to show internal directories.
Click to hide internal directories.