MCPcopy
hub / github.com/postcss/postcss / walk

Method walk

lib/container.js:311–325  ·  view source on GitHub ↗
(callback)

Source from the content-addressed store, hash-verified

309 }
310
311 walk(callback) {
312 return this.each((child, i) => {
313 let result
314 try {
315 result = callback(child, i)
316 } catch (e) {
317 throw child.addToError(e)
318 }
319 if (result !== false && child.walk) {
320 result = child.walk(callback)
321 }
322
323 return result
324 })
325 }
326
327 walkAtRules(name, callback) {
328 if (!callback) {

Callers 15

walkAtRulesMethod · 0.95
walkCommentsMethod · 0.95
walkDeclsMethod · 0.95
walkRulesMethod · 0.95
rawMethod · 0.80
rawBeforeCloseMethod · 0.80
rawBeforeOpenMethod · 0.80
rawBeforeRuleMethod · 0.80
rawEmptyBodyMethod · 0.80
rawIndentMethod · 0.80
rawSemicolonMethod · 0.80
previousMethod · 0.80

Calls 2

eachMethod · 0.95
addToErrorMethod · 0.80

Tested by

no test coverage detected