github.com/urso/go-structform@v0.0.2/gotype/unfold_ignore.generated.go (about)

     1  // This file has been generated from 'unfold_ignore.yml', do not edit
     2  package gotype
     3  
     4  import (
     5  	"reflect"
     6  	"unsafe"
     7  
     8  	structform "github.com/urso/go-structform"
     9  )
    10  
    11  type unfoldIgnoreValue struct{}
    12  type unfoldIgnorePtr struct{}
    13  type unfolderIgnore struct {
    14  	unfolderErrUnknown
    15  }
    16  
    17  var (
    18  	_singletonUnfoldIgnoreValue = &unfoldIgnoreValue{}
    19  	_singletonUnfoldIgnorePtr   = &unfoldIgnorePtr{}
    20  	_singletonunfolderIgnore    = &unfolderIgnore{}
    21  )
    22  
    23  func (*unfoldIgnoreValue) initState(ctx *unfoldCtx, _ reflect.Value) {
    24  	ctx.unfolder.push(_singletonunfolderIgnore)
    25  }
    26  
    27  func (*unfoldIgnorePtr) initState(ctx *unfoldCtx, _ unsafe.Pointer) {
    28  	ctx.unfolder.push(_singletonunfolderIgnore)
    29  }
    30  
    31  func (u *unfolderIgnore) OnNil(ctx *unfoldCtx) error                { return u.onValue(ctx) }
    32  func (u *unfolderIgnore) OnBool(ctx *unfoldCtx, _ bool) error       { return u.onValue(ctx) }
    33  func (u *unfolderIgnore) OnString(ctx *unfoldCtx, _ string) error   { return u.onValue(ctx) }
    34  func (u *unfolderIgnore) OnInt8(ctx *unfoldCtx, _ int8) error       { return u.onValue(ctx) }
    35  func (u *unfolderIgnore) OnInt16(ctx *unfoldCtx, _ int16) error     { return u.onValue(ctx) }
    36  func (u *unfolderIgnore) OnInt32(ctx *unfoldCtx, _ int32) error     { return u.onValue(ctx) }
    37  func (u *unfolderIgnore) OnInt64(ctx *unfoldCtx, _ int64) error     { return u.onValue(ctx) }
    38  func (u *unfolderIgnore) OnInt(ctx *unfoldCtx, _ int) error         { return u.onValue(ctx) }
    39  func (u *unfolderIgnore) OnByte(ctx *unfoldCtx, _ byte) error       { return u.onValue(ctx) }
    40  func (u *unfolderIgnore) OnUint8(ctx *unfoldCtx, _ uint8) error     { return u.onValue(ctx) }
    41  func (u *unfolderIgnore) OnUint16(ctx *unfoldCtx, _ uint16) error   { return u.onValue(ctx) }
    42  func (u *unfolderIgnore) OnUint32(ctx *unfoldCtx, _ uint32) error   { return u.onValue(ctx) }
    43  func (u *unfolderIgnore) OnUint64(ctx *unfoldCtx, _ uint64) error   { return u.onValue(ctx) }
    44  func (u *unfolderIgnore) OnUint(ctx *unfoldCtx, _ uint) error       { return u.onValue(ctx) }
    45  func (u *unfolderIgnore) OnFloat32(ctx *unfoldCtx, _ float32) error { return u.onValue(ctx) }
    46  func (u *unfolderIgnore) OnFloat64(ctx *unfoldCtx, _ float64) error { return u.onValue(ctx) }
    47  
    48  func (u *unfolderIgnore) OnArrayStart(ctx *unfoldCtx, _ int, _ structform.BaseType) error {
    49  	_singletonUnfoldIgnoreArrPtr.initState(ctx, nil)
    50  	return nil
    51  }
    52  
    53  func (u *unfolderIgnore) OnChildArrayDone(ctx *unfoldCtx) error {
    54  	return u.onValue(ctx)
    55  }
    56  
    57  func (u *unfolderIgnore) OnObjectStart(ctx *unfoldCtx, _ int, _ structform.BaseType) error {
    58  	_singletonUnfoldIgnoreObjPtr.initState(ctx, nil)
    59  	return nil
    60  }
    61  
    62  func (u *unfolderIgnore) OnChildObjectDone(ctx *unfoldCtx) error {
    63  	return u.onValue(ctx)
    64  }
    65  
    66  func (*unfolderIgnore) onValue(ctx *unfoldCtx) error {
    67  	ctx.unfolder.pop()
    68  	return nil
    69  }
    70  
    71  type unfoldIgnoreArrValue struct{}
    72  type unfoldIgnoreArrPtr struct{}
    73  type unfolderIgnoreArr struct {
    74  	unfolderErrUnknown
    75  }
    76  
    77  var (
    78  	_singletonUnfoldIgnoreArrValue = &unfoldIgnoreArrValue{}
    79  	_singletonUnfoldIgnoreArrPtr   = &unfoldIgnoreArrPtr{}
    80  	_singletonunfolderIgnoreArr    = &unfolderIgnoreArr{}
    81  )
    82  
    83  func (*unfoldIgnoreArrValue) initState(ctx *unfoldCtx, _ reflect.Value) {
    84  	ctx.unfolder.push(_singletonunfolderIgnoreArr)
    85  }
    86  
    87  func (*unfoldIgnoreArrPtr) initState(ctx *unfoldCtx, _ unsafe.Pointer) {
    88  	ctx.unfolder.push(_singletonunfolderIgnoreArr)
    89  }
    90  
    91  func (u *unfolderIgnoreArr) OnNil(ctx *unfoldCtx) error                { return u.onValue(ctx) }
    92  func (u *unfolderIgnoreArr) OnBool(ctx *unfoldCtx, _ bool) error       { return u.onValue(ctx) }
    93  func (u *unfolderIgnoreArr) OnString(ctx *unfoldCtx, _ string) error   { return u.onValue(ctx) }
    94  func (u *unfolderIgnoreArr) OnInt8(ctx *unfoldCtx, _ int8) error       { return u.onValue(ctx) }
    95  func (u *unfolderIgnoreArr) OnInt16(ctx *unfoldCtx, _ int16) error     { return u.onValue(ctx) }
    96  func (u *unfolderIgnoreArr) OnInt32(ctx *unfoldCtx, _ int32) error     { return u.onValue(ctx) }
    97  func (u *unfolderIgnoreArr) OnInt64(ctx *unfoldCtx, _ int64) error     { return u.onValue(ctx) }
    98  func (u *unfolderIgnoreArr) OnInt(ctx *unfoldCtx, _ int) error         { return u.onValue(ctx) }
    99  func (u *unfolderIgnoreArr) OnByte(ctx *unfoldCtx, _ byte) error       { return u.onValue(ctx) }
   100  func (u *unfolderIgnoreArr) OnUint8(ctx *unfoldCtx, _ uint8) error     { return u.onValue(ctx) }
   101  func (u *unfolderIgnoreArr) OnUint16(ctx *unfoldCtx, _ uint16) error   { return u.onValue(ctx) }
   102  func (u *unfolderIgnoreArr) OnUint32(ctx *unfoldCtx, _ uint32) error   { return u.onValue(ctx) }
   103  func (u *unfolderIgnoreArr) OnUint64(ctx *unfoldCtx, _ uint64) error   { return u.onValue(ctx) }
   104  func (u *unfolderIgnoreArr) OnUint(ctx *unfoldCtx, _ uint) error       { return u.onValue(ctx) }
   105  func (u *unfolderIgnoreArr) OnFloat32(ctx *unfoldCtx, _ float32) error { return u.onValue(ctx) }
   106  func (u *unfolderIgnoreArr) OnFloat64(ctx *unfoldCtx, _ float64) error { return u.onValue(ctx) }
   107  
   108  func (u *unfolderIgnoreArr) OnArrayStart(ctx *unfoldCtx, _ int, _ structform.BaseType) error {
   109  	_singletonUnfoldIgnoreArrPtr.initState(ctx, nil)
   110  	return nil
   111  }
   112  
   113  func (u *unfolderIgnoreArr) OnChildArrayDone(ctx *unfoldCtx) error {
   114  	return u.onValue(ctx)
   115  }
   116  
   117  func (u *unfolderIgnoreArr) OnObjectStart(ctx *unfoldCtx, _ int, _ structform.BaseType) error {
   118  	_singletonUnfoldIgnoreObjPtr.initState(ctx, nil)
   119  	return nil
   120  }
   121  
   122  func (u *unfolderIgnoreArr) OnChildObjectDone(ctx *unfoldCtx) error {
   123  	return u.onValue(ctx)
   124  }
   125  
   126  func (*unfolderIgnoreArr) onValue(ctx *unfoldCtx) error {
   127  	return nil
   128  }
   129  
   130  func (*unfolderIgnoreArr) OnArrayFinished(ctx *unfoldCtx) error {
   131  	ctx.unfolder.pop()
   132  	return nil
   133  }
   134  
   135  type unfoldIgnoreObjValue struct{}
   136  type unfoldIgnoreObjPtr struct{}
   137  type unfolderIgnoreObj struct {
   138  	unfolderErrUnknown
   139  }
   140  
   141  var (
   142  	_singletonUnfoldIgnoreObjValue = &unfoldIgnoreObjValue{}
   143  	_singletonUnfoldIgnoreObjPtr   = &unfoldIgnoreObjPtr{}
   144  	_singletonunfolderIgnoreObj    = &unfolderIgnoreObj{}
   145  )
   146  
   147  func (*unfoldIgnoreObjValue) initState(ctx *unfoldCtx, _ reflect.Value) {
   148  	ctx.unfolder.push(_singletonunfolderIgnoreObj)
   149  }
   150  
   151  func (*unfoldIgnoreObjPtr) initState(ctx *unfoldCtx, _ unsafe.Pointer) {
   152  	ctx.unfolder.push(_singletonunfolderIgnoreObj)
   153  }
   154  
   155  func (u *unfolderIgnoreObj) OnNil(ctx *unfoldCtx) error                { return u.onValue(ctx) }
   156  func (u *unfolderIgnoreObj) OnBool(ctx *unfoldCtx, _ bool) error       { return u.onValue(ctx) }
   157  func (u *unfolderIgnoreObj) OnString(ctx *unfoldCtx, _ string) error   { return u.onValue(ctx) }
   158  func (u *unfolderIgnoreObj) OnInt8(ctx *unfoldCtx, _ int8) error       { return u.onValue(ctx) }
   159  func (u *unfolderIgnoreObj) OnInt16(ctx *unfoldCtx, _ int16) error     { return u.onValue(ctx) }
   160  func (u *unfolderIgnoreObj) OnInt32(ctx *unfoldCtx, _ int32) error     { return u.onValue(ctx) }
   161  func (u *unfolderIgnoreObj) OnInt64(ctx *unfoldCtx, _ int64) error     { return u.onValue(ctx) }
   162  func (u *unfolderIgnoreObj) OnInt(ctx *unfoldCtx, _ int) error         { return u.onValue(ctx) }
   163  func (u *unfolderIgnoreObj) OnByte(ctx *unfoldCtx, _ byte) error       { return u.onValue(ctx) }
   164  func (u *unfolderIgnoreObj) OnUint8(ctx *unfoldCtx, _ uint8) error     { return u.onValue(ctx) }
   165  func (u *unfolderIgnoreObj) OnUint16(ctx *unfoldCtx, _ uint16) error   { return u.onValue(ctx) }
   166  func (u *unfolderIgnoreObj) OnUint32(ctx *unfoldCtx, _ uint32) error   { return u.onValue(ctx) }
   167  func (u *unfolderIgnoreObj) OnUint64(ctx *unfoldCtx, _ uint64) error   { return u.onValue(ctx) }
   168  func (u *unfolderIgnoreObj) OnUint(ctx *unfoldCtx, _ uint) error       { return u.onValue(ctx) }
   169  func (u *unfolderIgnoreObj) OnFloat32(ctx *unfoldCtx, _ float32) error { return u.onValue(ctx) }
   170  func (u *unfolderIgnoreObj) OnFloat64(ctx *unfoldCtx, _ float64) error { return u.onValue(ctx) }
   171  
   172  func (u *unfolderIgnoreObj) OnArrayStart(ctx *unfoldCtx, _ int, _ structform.BaseType) error {
   173  	_singletonUnfoldIgnoreArrPtr.initState(ctx, nil)
   174  	return nil
   175  }
   176  
   177  func (u *unfolderIgnoreObj) OnChildArrayDone(ctx *unfoldCtx) error {
   178  	return u.onValue(ctx)
   179  }
   180  
   181  func (u *unfolderIgnoreObj) OnObjectStart(ctx *unfoldCtx, _ int, _ structform.BaseType) error {
   182  	_singletonUnfoldIgnoreObjPtr.initState(ctx, nil)
   183  	return nil
   184  }
   185  
   186  func (u *unfolderIgnoreObj) OnChildObjectDone(ctx *unfoldCtx) error {
   187  	return u.onValue(ctx)
   188  }
   189  
   190  func (*unfolderIgnoreObj) onValue(ctx *unfoldCtx) error {
   191  	return nil
   192  }
   193  
   194  func (*unfolderIgnoreObj) OnObjectFinished(ctx *unfoldCtx) error {
   195  	ctx.unfolder.pop()
   196  	return nil
   197  }