Walk traverses a value in depth-first order, calling a Visitor on the way.
(rv Visitor)
| 313 | // Walk traverses a value in depth-first order, calling a |
| 314 | // Visitor on the way. |
| 315 | func (r Value) Walk(rv Visitor) error { |
| 316 | return Walk(r.Type(), r.Bytes(), rv) |
| 317 | } |
| 318 | |
| 319 | func (r Value) nth(n int) (scode.Bytes, bool, bool) { |
| 320 | if typ := TypeRecordOf(r.typ); typ != nil { |