HEX
Server: Apache
System: Linux webd004.cluster130.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User: frenchy (106757)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/frenchy/www/french-american.org/current/node_modules/postcss-syntax/stringify.js
"use strict";

function stringify (document) {
	let stringify;
	if (document instanceof require("./document")) {
		stringify = docStringify;
	} else {
		stringify = document.source.syntax.stringify;
	}
	return stringify.apply(this, arguments);
}

function docStringify (document, builder) {
	document.nodes.forEach((root, i) => {
		builder(root.raws.beforeStart, root, "beforeStart");
		root.source.syntax && root.source.syntax.stringify(root, builder);
	});
	builder(document.raws.afterEnd, document, "afterEnd");
}
module.exports = stringify;