(unmarshal func(interface{}) error)
| 270 | } |
| 271 | |
| 272 | func (l *LegacyOverrides) UnmarshalYAML(unmarshal func(interface{}) error) error { |
| 273 | type plain LegacyOverrides |
| 274 | if err := unmarshal((*plain)(l)); err != nil { |
| 275 | return err |
| 276 | } |
| 277 | // Convert registered extension flat keys to typed instances, matching Overrides.Extensions. |
| 278 | return processLegacyExtensions(l) |
| 279 | } |
| 280 | |
| 281 | func (l LegacyOverrides) MarshalYAML() (interface{}, error) { |
| 282 | type plain LegacyOverrides |
nothing calls this directly
no test coverage detected