MCPcopy
hub / github.com/postcss/postcss / removeChild

Method removeChild

lib/root.js:34–42  ·  view source on GitHub ↗
(child, ignore)

Source from the content-addressed store, hash-verified

32 }
33
34 removeChild(child, ignore) {
35 let index = this.index(child)
36
37 if (!ignore && index === 0 && this.nodes.length > 1) {
38 this.nodes[1].raws.before = this.nodes[index].raws.before
39 }
40
41 return super.removeChild(child)
42 }
43
44 toResult(opts = {}) {
45 let lazy = new LazyResult(new Processor(), this, opts)

Callers 4

removeMethod · 0.45
clearAnnotationMethod · 0.45
container.test.tsFile · 0.45
CommentFunction · 0.45

Calls 1

indexMethod · 0.80

Tested by

no test coverage detected