MCPcopy
hub / github.com/postcss/postcss / remove

Method remove

lib/node.js:344–350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342 }
343
344 remove() {
345 if (this.parent) {
346 this.parent.removeChild(this)
347 }
348 this.parent = undefined
349 return this
350 }
351
352 replaceWith(...nodes) {
353 if (this.parent) {

Callers 10

replaceWithMethod · 0.95
root.test.tsFile · 0.80
postcss.test.tsFile · 0.80
DeclarationFunction · 0.80
OnceFunction · 0.80
prepareFunction · 0.80
RuleFunction · 0.80
OnceExitFunction · 0.80
node.test.tsFile · 0.80
fromJSON.test.tsFile · 0.80

Calls 1

removeChildMethod · 0.45

Tested by 5

DeclarationFunction · 0.64
OnceFunction · 0.64
prepareFunction · 0.64
RuleFunction · 0.64
OnceExitFunction · 0.64