MCPcopy Index your code
hub / github.com/postcss/postcss / toStack

Function toStack

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

Source from the content-addressed store, hash-verified

77}
78
79function toStack(node) {
80 let events
81 if (node.type === 'document') {
82 events = ['Document', CHILDREN, 'DocumentExit']
83 } else if (node.type === 'root') {
84 events = ['Root', CHILDREN, 'RootExit']
85 } else {
86 events = getEvents(node)
87 }
88
89 return {
90 eventIndex: 0,
91 events,
92 iterator: 0,
93 node,
94 visitorIndex: 0,
95 visitors: []
96 }
97}
98
99function cleanMarks(node) {
100 node[isClean] = false

Callers 2

runAsyncMethod · 0.85
visitTickMethod · 0.85

Calls 1

getEventsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…