(index int)
| 78 | } |
| 79 | |
| 80 | func (t *TypeEnum) Symbol(index int) (string, error) { |
| 81 | if index < 0 || index >= len(t.Symbols) { |
| 82 | return "", ErrEnumIndex |
| 83 | } |
| 84 | return t.Symbols[index], nil |
| 85 | } |
| 86 | |
| 87 | func (t *TypeEnum) Lookup(symbol string) int { |
| 88 | for k, s := range t.Symbols { |
no outgoing calls
no test coverage detected