(val super.Value)
| 67 | } |
| 68 | |
| 69 | func (f *Formatter) FormatValue(val super.Value) string { |
| 70 | // We reset tyepdefs so named types are emitted with their |
| 71 | // definition at first use in each record according to the |
| 72 | // left-to-right DFS order. We could make this more efficient |
| 73 | // by putting a record number/nonce in the map but SUP |
| 74 | // is already intended to be the low performance path. |
| 75 | f.typedefs = make(map[string]*super.TypeNamed) |
| 76 | return f.Format(val) |
| 77 | } |
| 78 | |
| 79 | func FormatValue(val super.Value) string { |
| 80 | return NewFormatter(0, true, nil).Format(val) |
no test coverage detected