DefaultSpec is a spec that wraps two specs, evaluating the primary first and then evaluating the default if the primary returns a null value. The two specifications must have the same implied result type for correct operation. If not, the result is undefined. Any requirements imposed by the "Defau
| 1437 | // the default spec _does_ describe a nested block then the result is |
| 1438 | // undefined. |
| 1439 | type DefaultSpec struct { |
| 1440 | Primary Spec |
| 1441 | Default Spec |
| 1442 | } |
| 1443 | |
| 1444 | func (s *DefaultSpec) visitSameBodyChildren(cb visitFunc) { |
| 1445 | cb(s.Primary) |
nothing calls this directly
no outgoing calls
no test coverage detected