(ast /* , options */)
| 34 | } |
| 35 | |
| 36 | function removeIgnorableFirstLf(ast /* , options */) { |
| 37 | ast.walk((node) => { |
| 38 | if ( |
| 39 | node.kind === "element" && |
| 40 | node.tagDefinition.ignoreFirstLf && |
| 41 | node.children.length > 0 && |
| 42 | node.children[0].kind === "text" && |
| 43 | node.children[0].value[0] === "\n" |
| 44 | ) { |
| 45 | const text = node.children[0]; |
| 46 | if (text.value.length === 1) { |
| 47 | node.removeChild(text); |
| 48 | } else { |
| 49 | text.value = text.value.slice(1); |
| 50 | } |
| 51 | } |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | function mergeIfConditionalStartEndCommentIntoElementOpeningTag( |
| 56 | ast /* , options */, |
nothing calls this directly
no test coverage detected
searching dependent graphs…