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.
- package/dist/combinators/attempt.d.ts.map +1 -1
- package/dist/combinators/choice.d.ts +11 -0
- package/dist/combinators/choice.d.ts.map +1 -1
- package/dist/combinators/expect.d.ts.map +1 -1
- package/dist/combinators/first-set.d.ts +7 -0
- package/dist/combinators/first-set.d.ts.map +1 -1
- package/dist/combinators/node.d.ts.map +1 -1
- package/dist/combinators/repeat.d.ts.map +1 -1
- package/dist/compiler/codegen.d.ts +1 -0
- package/dist/compiler/codegen.d.ts.map +1 -1
- package/dist/compiler/linker.d.ts.map +1 -1
- package/dist/index.cjs +153 -19
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +153 -19
- package/dist/index.js.map +2 -2
- package/dist/language-service/index.cjs +1 -1
- package/dist/language-service/index.cjs.map +2 -2
- package/dist/language-service/index.js +1 -1
- package/dist/language-service/index.js.map +2 -2
- package/dist/plugin/index.cjs +153 -19
- package/dist/plugin/index.cjs.map +3 -3
- package/dist/plugin/index.js +153 -19
- package/dist/plugin/index.js.map +3 -3
- package/dist/types.d.ts +25 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -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;
|