test

package
v3.3.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

func Branch(nodes ...interface{}) *cst.Branch

func Fragment

func Fragment(tok string) cst.Fragment

func Leaf

func Leaf(v string) cst.Node

func Node

func Node(prefix interface{}, v interface{}, suffix interface{}) cst.Node

func Peek

func Peek(r *parse.Reader, value string) bool

func Separator

func Separator(list ...interface{}) cst.Separator

func Token

func Token(value string) cst.Token

func Value

func Value(v interface{}) interface{}

func VerifyFragmentTokens

func VerifyFragmentTokens(ctx context.Context, f cst.Fragment, next *int)

func VerifyNodeTokens

func VerifyNodeTokens(ctx context.Context, n cst.Node, next *int)

func VerifyTokens

func VerifyTokens(ctx context.Context, got cst.Node)

Types

type ArrayNode

type ArrayNode ListNode

func Array

func Array(values ...interface{}) *ArrayNode

func (*ArrayNode) Parser

func (n *ArrayNode) Parser(p *parse.Parser) parse.BranchParser

type CallNode

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

func Call

func Call(name string, values ...interface{}) *CallNode

func (*CallNode) Parser

func (n *CallNode) Parser(p *parse.Parser) parse.BranchParser

type ListNode

type ListNode []interface{}

func List

func List(values ...interface{}) *ListNode

func (*ListNode) Parser

func (n *ListNode) Parser(p *parse.Parser) parse.BranchParser

type NumberNode

type NumberNode uint64

func (*NumberNode) Consumer

func (n *NumberNode) Consumer(p *parse.Parser) parse.LeafParser

type ValueNode

type ValueNode string

func (*ValueNode) Consumer

func (n *ValueNode) Consumer(p *parse.Parser) parse.LeafParser

func (*ValueNode) Parse

func (n *ValueNode) Parse(p *parse.Parser) func(l *cst.Leaf)

Jump to

Keyboard shortcuts

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