@openrewrite/rewrite 8.102.0 → 8.103.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -417,9 +417,13 @@ class YamlCstReader {
417
417
  let pendingPrefix = "";
418
418
 
419
419
  for (const item of cst.items) {
420
- const result = this.convertSequenceEntry(item, true, pendingPrefix);
421
- entries.push(result.entry);
422
- pendingPrefix = result.trailingContent;
420
+ if (item.value !== undefined || (item.start || []).some(t => t.type === 'seq-item-ind')) {
421
+ const result = this.convertSequenceEntry(item, true, pendingPrefix);
422
+ entries.push(result.entry);
423
+ pendingPrefix = result.trailingContent;
424
+ } else {
425
+ pendingPrefix += this.concatenateSources(item.start || []);
426
+ }
423
427
  }
424
428
 
425
429
  return {