()
| 220 | } |
| 221 | |
| 222 | func (b *body) MissingItemRange() hcl.Range { |
| 223 | switch tv := b.val.(type) { |
| 224 | case *objectVal: |
| 225 | return tv.CloseRange |
| 226 | case *arrayVal: |
| 227 | return tv.OpenRange |
| 228 | default: |
| 229 | // Should not happen in correct operation, but might show up if the |
| 230 | // input is invalid and we are producing partial results. |
| 231 | return tv.StartRange() |
| 232 | } |
| 233 | } |
| 234 | |
| 235 | func (b *body) unpackBlock(v node, typeName string, typeRange *hcl.Range, labelsLeft []string, labelsUsed []string, labelRanges []hcl.Range, blocks *hcl.Blocks) (diags hcl.Diagnostics) { |
| 236 | if len(labelsLeft) > 0 { |
no test coverage detected