(types []Type)
| 11 | } |
| 12 | |
| 13 | func (t *TypeVectorTable) Lookup(types []Type) int { |
| 14 | for k, typ := range t.types { |
| 15 | if typ.equal(types) { |
| 16 | return k |
| 17 | } |
| 18 | } |
| 19 | k := len(t.types) |
| 20 | t.types = append(t.types, newTypeVector(types)) |
| 21 | return k |
| 22 | } |
| 23 | |
| 24 | func (t *TypeVectorTable) LookupByValues(vals []Value) int { |
| 25 | for k, typ := range t.types { |
nothing calls this directly
no test coverage detected