ipldsch_minima.go 1.59 KB
Newer Older
Rod Vagg's avatar
Rod Vagg committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
package dagpb

// Code generated by go-ipld-prime gengo.  DO NOT EDIT.

import (
	"fmt"

	"github.com/ipld/go-ipld-prime"
	"github.com/ipld/go-ipld-prime/schema"
)

const (
	midvalue  = schema.Maybe(4)
	allowNull = schema.Maybe(5)
)

type maState uint8

const (
	maState_initial maState = iota
	maState_midKey
	maState_expectValue
	maState_midValue
	maState_finished
)

type laState uint8

const (
	laState_initial laState = iota
	laState_midValue
	laState_finished
)

type _ErrorThunkAssembler struct {
	e error
}

func (ea _ErrorThunkAssembler) BeginMap(_ int) (ipld.MapAssembler, error)   { return nil, ea.e }
func (ea _ErrorThunkAssembler) BeginList(_ int) (ipld.ListAssembler, error) { return nil, ea.e }
func (ea _ErrorThunkAssembler) AssignNull() error                           { return ea.e }
func (ea _ErrorThunkAssembler) AssignBool(bool) error                       { return ea.e }
func (ea _ErrorThunkAssembler) AssignInt(int) error                         { return ea.e }
func (ea _ErrorThunkAssembler) AssignFloat(float64) error                   { return ea.e }
func (ea _ErrorThunkAssembler) AssignString(string) error                   { return ea.e }
func (ea _ErrorThunkAssembler) AssignBytes([]byte) error                    { return ea.e }
func (ea _ErrorThunkAssembler) AssignLink(ipld.Link) error                  { return ea.e }
func (ea _ErrorThunkAssembler) AssignNode(ipld.Node) error                  { return ea.e }
func (ea _ErrorThunkAssembler) Prototype() ipld.NodePrototype {
	panic(fmt.Errorf("cannot get prototype from error-carrying assembler: already derailed with error: %w", ea.e))
}