function recoveredWhitespaceNode(text, extra = {}) {
  if (!/^\s+$/.test(text)) {
    throw new Error("Recovered non-whitespace: " + text);
  }
  return {
    type: "whitespace",
    ...extra,
    text,
  };
}
// inserts whitespace tokens back into the syntax tree
inserts whitespace tokens back into the syntax tree
inserts whitespace tokens back into the syntax tree
function recoveredWhitespaceNode(text, extra = {}) {
  if (!/^\s+$/.test(text)) {
    throw new Error("Recovered non-whitespace: " + text);
  }
  return {
    type: "whitespace",
    ...extra,
    text,
  };
}
function recoveredWhitespaceNode ( text , extra = { } ) { if ( ! / ^\s+$ / . test ( text ) ) { throw new Error ( "Recovered non-whitespace: " + text ) ; } return { type : "whitespace" , ... extra , text , } ; }
inserts whitespace tokens back into the syntax tree
inserts whitespace tokens back into the syntax tree