()
| 129 | } |
| 130 | |
| 131 | func (mb mergedBodies) MissingItemRange() Range { |
| 132 | if len(mb) == 0 { |
| 133 | // Nothing useful to return here, so we'll return some garbage. |
| 134 | return Range{ |
| 135 | Filename: "<empty>", |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | // arbitrarily use the first body's missing item range |
| 140 | return mb[0].MissingItemRange() |
| 141 | } |
| 142 | |
| 143 | func (mb mergedBodies) mergedContent(schema *BodySchema, partial bool) (*BodyContent, Body, Diagnostics) { |
| 144 | // We need to produce a new schema with none of the attributes marked as |
nothing calls this directly
no test coverage detected