MCPcopy
hub / github.com/postcss/postcss / customStringifier

Function customStringifier

test/processor.test.ts:604–618  ·  view source on GitHub ↗
(doc, builder)

Source from the content-addressed store, hash-verified

602 }
603
604 let customStringifier: Stringifier = (doc, builder) => {
605 if (doc.type === 'document') {
606 for (let root of doc.nodes) {
607 if (root.raws.codeBefore) {
608 builder(root.raws.codeBefore, root)
609 }
610
611 builder(root.toString(), root)
612
613 if (root.raws.codeAfter) {
614 builder(root.raws.codeAfter, root)
615 }
616 }
617 }
618 }
619
620 let processor = new Processor([() => {}])
621 let result = await processor.process('a{}', {

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…