variable

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2022 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	// contains filtered or unexported fields
}

Node is a function node

func NewNode

func NewNode(blockIDNode, paramNameNode *conflow.IDNode) *Node

NewNode creates a new variable node

func (*Node) ID

func (n *Node) ID() conflow.ID

ID returns with the variable identifier as "<block id>.<parameter name>"

func (*Node) ParamName

func (n *Node) ParamName() conflow.ID

ParamName returns with the parameter's name

func (*Node) ParentID

func (n *Node) ParentID() conflow.ID

BlockID returns with the block's id

func (*Node) Pos

func (n *Node) Pos() parsley.Pos

Pos returns with the node's position

func (*Node) ReaderPos

func (n *Node) ReaderPos() parsley.Pos

ReaderPos returns with the reader's position

func (*Node) Schema

func (n *Node) Schema() interface{}

Schema returns the schema for the node's value

func (*Node) SetReaderPos

func (n *Node) SetReaderPos(f func(parsley.Pos) parsley.Pos)

SetReaderPos amends the reader position using the given function

func (*Node) StaticCheck

func (n *Node) StaticCheck(ctx interface{}) parsley.Error

StaticCheck runs static analysis on the node

func (*Node) String

func (n *Node) String() string

func (*Node) Token

func (n *Node) Token() string

Token returns with the node's token

func (*Node) Value

func (n *Node) Value(ctx interface{}) (interface{}, parsley.Error)

Value returns with the result of the function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL