INNER CODE UNIT · Go
func
rigdev/rig · cmd/rig-proto-gen/main.go:640
func (r repeatedType) validate() error {
c := 0
if r.builtIn != nil {
c++
}
if r.message != nil {
c++
}
if c != 1 {
return errors.New("repeatedType must have exactly one field set.")
}
return nil
}
func (r repeatedType) compile(b *strings.Builder, curPkg string) {
if r.builtIn != nil {