MCPcopy
hub / github.com/web-infra-dev/garfish / document

Method document

packages/css-scope/src/cssStringify.ts:115–123  ·  view source on GitHub ↗
(node: DocumentNode)

Source from the content-addressed store, hash-verified

113 }
114
115 document(node: DocumentNode) {
116 const doc = `@${node.vendor || ''}document ${node.document}`;
117 return (
118 this.emit(doc, node.position) +
119 this.emit(` {\n${this.indent(1)}`) +
120 this.mapVisit(node.rules, '\n\n') +
121 this.emit(`${this.indent(-1)}\n}`)
122 );
123 }
124
125 supports(node: SupportsNode) {
126 return (

Callers

nothing calls this directly

Calls 3

emitMethod · 0.95
indentMethod · 0.95
mapVisitMethod · 0.95

Tested by

no test coverage detected