(element)
| 2292 | } |
| 2293 | |
| 2294 | function elementEmptier(element) { |
| 2295 | var children = removeEmpty(element.children); |
| 2296 | if (children.length === 0 && !ast.isVoidElement(element)) { |
| 2297 | return []; |
| 2298 | } else { |
| 2299 | return [ast.elementWithTag(element.tag, children)]; |
| 2300 | } |
| 2301 | } |
| 2302 | |
| 2303 | function textEmptier(node) { |
| 2304 | if (node.value.length === 0) { |
nothing calls this directly
no test coverage detected