MCPcopy
hub / github.com/postcss/postcss / set

Method set

lib/node.js:171–186  ·  view source on GitHub ↗
(node, prop, value)

Source from the content-addressed store, hash-verified

169 },
170
171 set(node, prop, value) {
172 if (node[prop] === value) return true
173 node[prop] = value
174 if (
175 prop === 'prop' ||
176 prop === 'value' ||
177 prop === 'name' ||
178 prop === 'params' ||
179 prop === 'important' ||
180 /* c8 ignore next */
181 prop === 'text'
182 ) {
183 node.markDirty()
184 }
185 return true
186 }
187 }
188 }
189

Callers 4

toJSONMethod · 0.45
pathMethod · 0.45
toFileUrlMethod · 0.45
toUrlMethod · 0.45

Calls 1

markDirtyMethod · 0.80

Tested by

no test coverage detected