Sha256: 6e07d076abf95f4b5b100611479b38520d421aa90247139a7e2755e549d0ceb2
Contents?: true
Size: 545 Bytes
Versions: 24
Compression:
Stored size: 545 Bytes
Contents
"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;
Version data entries
24 entries across 24 versions & 1 rubygems