//#region ../../node_modules/chevrotain/lib/src/parse/cst/cst.js
function e(e, t) {
	isNaN(e.startOffset) === !0 ? (e.startOffset = t.startOffset, e.endOffset = t.endOffset) : e.endOffset < t.endOffset && (e.endOffset = t.endOffset);
}
function t(e, t) {
	isNaN(e.startOffset) === !0 ? (e.startOffset = t.startOffset, e.startColumn = t.startColumn, e.startLine = t.startLine, e.endOffset = t.endOffset, e.endColumn = t.endColumn, e.endLine = t.endLine) : e.endOffset < t.endOffset && (e.endOffset = t.endOffset, e.endColumn = t.endColumn, e.endLine = t.endLine);
}
function n(e, t, n) {
	e.children[n] === void 0 ? e.children[n] = [t] : e.children[n].push(t);
}
function r(e, t, n) {
	e.children[t] === void 0 ? e.children[t] = [n] : e.children[t].push(n);
}
//#endregion
export { r as addNoneTerminalToCst, n as addTerminalToCst, t as setNodeLocationFull, e as setNodeLocationOnlyOffset };
