MCPcopy
hub / github.com/postcss/postcss / rawEmptyBody

Method rawEmptyBody

lib/stringifier.js:293–302  ·  view source on GitHub ↗
(root)

Source from the content-addressed store, hash-verified

291 }
292
293 rawEmptyBody(root) {
294 let value
295 root.walk(i => {
296 if (i.nodes && i.nodes.length === 0) {
297 value = i.raws.after
298 if (typeof value !== 'undefined') return false
299 }
300 })
301 return value
302 }
303
304 rawIndent(root) {
305 if (root.raws.indent) return root.raws.indent

Callers

nothing calls this directly

Calls 1

walkMethod · 0.80

Tested by

no test coverage detected