MCPcopy
hub / github.com/postcss/postcss / index

Method index

lib/container.js:138–142  ·  view source on GitHub ↗
(child)

Source from the content-addressed store, hash-verified

136 }
137
138 index(child) {
139 if (typeof child === 'number') return child
140 if (child.proxyOf) child = child.proxyOf
141 return this.proxyOf.nodes.indexOf(child)
142 }
143
144 insertAfter(exist, add) {
145 let existIndex = this.index(exist)

Callers 7

insertAfterMethod · 0.95
insertBeforeMethod · 0.95
removeChildMethod · 0.95
nextMethod · 0.80
prevMethod · 0.80
removeChildMethod · 0.80
container.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected