parseman 0.30.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.
@@ -256,7 +256,7 @@ function cstBuildHost(typeOrOptions, children, _fields, span, rawChildren, trivi
256
256
  return buildCstNode(typeOrOptions, children ?? [], _fields, span ?? { start: 0, end: 0 }, rawChildren, triviaLog, state);
257
257
  }
258
258
  const collapse = normalizeCstCollapse(typeOrOptions?.collapse);
259
- const host = (type, children2, fields, span2, rawChildren2, triviaLog2, state2) => buildCstNode(type, children2, fields, span2, rawChildren2, triviaLog2, state2);
259
+ const host = (type, children2, fields, span2, rawChildren2, triviaLog2, state2) => buildCstNode(type, children2 ?? [], fields, span2, rawChildren2, triviaLog2, state2);
260
260
  host._parsemanCstOutput = true;
261
261
  if (collapse) host._parsemanCstCollapse = collapse;
262
262
  return host;