* Walks the tree and passes all nodes via a callback * * @memberof tree * * @param {Function} cb Callback * @return {Function} Callback(node) * *@example * ```js * export const walk = (tree) => { * tree.walk((node) => { * let classes = node.attrs && node.attrs.class.split(' ')
(cb)
| 36 | * ``` |
| 37 | */ |
| 38 | function walk (cb) { |
| 39 | return traverse(this, cb) |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Matches an expression to search for nodes in the tree |
nothing calls this directly
no test coverage detected
searching dependent graphs…