MCPcopy
hub / github.com/postcss/postcss / walkSync

Method walkSync

lib/lazy-result.js:531–548  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

529 }
530
531 walkSync(node) {
532 node[isClean] = true
533 let events = getEvents(node)
534 for (let event of events) {
535 if (event === CHILDREN) {
536 if (node.nodes) {
537 node.each(child => {
538 if (!child[isClean]) this.walkSync(child)
539 })
540 }
541 } else {
542 let visitors = this.listeners[event]
543 if (visitors) {
544 if (this.visitSync(visitors, node.toProxy())) return
545 }
546 }
547 }
548 }
549
550 warnings() {
551 return this.sync().warnings()

Callers 1

syncMethod · 0.95

Calls 4

visitSyncMethod · 0.95
getEventsFunction · 0.85
eachMethod · 0.80
toProxyMethod · 0.80

Tested by

no test coverage detected