(b scode.Bytes)
| 80 | } |
| 81 | |
| 82 | func (d *DotExpr) evalTypeOfType(b scode.Bytes) super.Value { |
| 83 | typ, _ := d.sctx.DecodeTypeValue(b) |
| 84 | if typ, ok := super.TypeUnder(typ).(*super.TypeRecord); ok { |
| 85 | if typ, ok := typ.TypeOfField(d.field); ok { |
| 86 | return d.sctx.LookupTypeValue(typ) |
| 87 | } |
| 88 | } |
| 89 | return d.sctx.Missing() |
| 90 | } |
| 91 | |
| 92 | // DotExprToString returns text for the Evaluator assuming it's a field expr. |
| 93 | func DotExprToString(e Evaluator) (string, error) { |
no test coverage detected