| 66 | } |
| 67 | |
| 68 | type EnumRanges struct { |
| 69 | List [][2]protoreflect.EnumNumber // start inclusive; end inclusive |
| 70 | once sync.Once |
| 71 | sorted [][2]protoreflect.EnumNumber // protected by once |
| 72 | } |
| 73 | |
| 74 | func (p *EnumRanges) Len() int { return len(p.List) } |
| 75 | func (p *EnumRanges) Get(i int) [2]protoreflect.EnumNumber { return p.List[i] } |
nothing calls this directly
no outgoing calls
no test coverage detected