ldsch_minima.go 1.59 KB
Newer Older
Eric Myhre's avatar
Eric Myhre committed
1 2
package schemadmt

tavit ohanian's avatar
tavit ohanian committed
3
// Code generated by go-ld-prime gengo.  DO NOT EDIT.
Eric Myhre's avatar
Eric Myhre committed
4 5 6 7

import (
	"fmt"

tavit ohanian's avatar
tavit ohanian committed
8 9
	"gitlab.dms3.io/ld/go-ld-prime"
	"gitlab.dms3.io/ld/go-ld-prime/schema"
Eric Myhre's avatar
Eric Myhre committed
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
)

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
}

tavit ohanian's avatar
tavit ohanian committed
39 40 41 42 43 44 45 46 47 48 49
func (ea _ErrorThunkAssembler) BeginMap(_ int64) (ld.MapAssembler, error)   { return nil, ea.e }
func (ea _ErrorThunkAssembler) BeginList(_ int64) (ld.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(int64) 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(ld.Link) error                    { return ea.e }
func (ea _ErrorThunkAssembler) AssignNode(ld.Node) error                    { return ea.e }
func (ea _ErrorThunkAssembler) Prototype() ld.NodePrototype {
Eric Myhre's avatar
Eric Myhre committed
50 51
	panic(fmt.Errorf("cannot get prototype from error-carrying assembler: already derailed with error: %w", ea.e))
}