parseman 0.29.0 → 0.31.0

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.
@@ -230,7 +230,7 @@ function cstBuildHost(typeOrOptions, children, _fields, span, rawChildren, trivi
230
230
  return buildCstNode(typeOrOptions, children ?? [], _fields, span ?? { start: 0, end: 0 }, rawChildren, triviaLog, state);
231
231
  }
232
232
  const collapse = normalizeCstCollapse(typeOrOptions?.collapse);
233
- const host = (type, children2, fields, span2, rawChildren2, triviaLog2, state2) => buildCstNode(type, children2, fields, span2, rawChildren2, triviaLog2, state2);
233
+ const host = (type, children2, fields, span2, rawChildren2, triviaLog2, state2) => buildCstNode(type, children2 ?? [], fields, span2, rawChildren2, triviaLog2, state2);
234
234
  host._parsemanCstOutput = true;
235
235
  if (collapse) host._parsemanCstCollapse = collapse;
236
236
  return host;