// Code generated by godown. Extracted from go1.26.5 reflect. DO NOT EDIT.

package reflect

import (
	"iter"
	"reflect"
)

func TypeFields(t reflect.Type) iter.Seq[reflect.StructField] {
	if t.Kind() != reflect.Struct {
		panic("reflect: Fields of non-struct type " + t.String())
	}
	return func(yield func(reflect.StructField) bool) {
		for i := range t.NumField() {
			if !yield(t.Field(i)) {
				return
			}
		}
	}
}
