(vals []Value)
| 22 | } |
| 23 | |
| 24 | func (t *TypeVectorTable) LookupByValues(vals []Value) int { |
| 25 | for k, typ := range t.types { |
| 26 | if typ.equalToValues(vals) { |
| 27 | return k |
| 28 | } |
| 29 | } |
| 30 | k := len(t.types) |
| 31 | t.types = append(t.types, newTypeVectorFromValues(vals)) |
| 32 | return k |
| 33 | } |
| 34 | |
| 35 | func (t *TypeVectorTable) Types(id int) []Type { |
| 36 | return t.types[id] |
nothing calls this directly
no test coverage detected