MCPcopy
hub / github.com/postcss/postcss / clone

Method clone

lib/node.js:126–132  ·  view source on GitHub ↗
(overrides = {})

Source from the content-addressed store, hash-verified

124 }
125
126 clone(overrides = {}) {
127 let cloned = cloneNode(this)
128 for (let name in overrides) {
129 cloned[name] = overrides[name]
130 }
131 return cloned
132 }
133
134 cloneAfter(overrides = {}) {
135 let cloned = this.clone(overrides)

Callers 6

cloneAfterMethod · 0.95
cloneBeforeMethod · 0.95
constructorMethod · 0.80
map.test.tsFile · 0.80
RuleFunction · 0.80
node.test.tsFile · 0.80

Calls 1

cloneNodeFunction · 0.85

Tested by 1

RuleFunction · 0.64