MCPcopy
hub / github.com/postcss/postcss / root

Method root

lib/node.js:375–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

373 }
374
375 root() {
376 let result = this
377 while (result.parent && result.parent.type !== 'document') {
378 result = result.parent
379 }
380 return result
381 }
382
383 toJSON(_, inputs) {
384 let fixed = {}

Callers 7

getMethod · 0.45
getMethod · 0.45
map.test.tsFile · 0.45
postcss.test.tsFile · 0.45
DeclarationFunction · 0.45
visitor.test.tsFile · 0.45
node.test.tsFile · 0.45

Calls

no outgoing calls

Tested by 1

DeclarationFunction · 0.36