(n *Node, u Unmarshaler)
| 363 | } |
| 364 | |
| 365 | func (d *decoder) callUnmarshaler(n *Node, u Unmarshaler) (good bool) { |
| 366 | err := u.UnmarshalYAML(n) |
| 367 | if e, ok := err.(*TypeError); ok { |
| 368 | d.terrors = append(d.terrors, e.Errors...) |
| 369 | return false |
| 370 | } |
| 371 | if err != nil { |
| 372 | fail(err) |
| 373 | } |
| 374 | return true |
| 375 | } |
| 376 | |
| 377 | func (d *decoder) callObsoleteUnmarshaler(n *Node, u obsoleteUnmarshaler) (good bool) { |
| 378 | terrlen := len(d.terrors) |
no test coverage detected