(val Any, slot uint32)
| 48 | } |
| 49 | |
| 50 | func TypeValueValue(val Any, slot uint32) []byte { |
| 51 | switch val := val.(type) { |
| 52 | case *TypeValue: |
| 53 | return val.Value(slot) |
| 54 | case *Const: |
| 55 | return TypeValueValue(val.Any, 0) |
| 56 | case *Dict: |
| 57 | slot = uint32(val.Index[slot]) |
| 58 | return val.Any.(*TypeValue).Value(slot) |
| 59 | case *View: |
| 60 | slot = val.Index[slot] |
| 61 | return TypeValueValue(val.Any, slot) |
| 62 | } |
| 63 | panic(val) |
| 64 | } |
no test coverage detected