(visitor: WhitespaceVisitor, nodes: html.Node[])
| 294 | } |
| 295 | |
| 296 | export function visitAllWithSiblings(visitor: WhitespaceVisitor, nodes: html.Node[]): any[] { |
| 297 | const result: any[] = []; |
| 298 | |
| 299 | nodes.forEach((ast, i) => { |
| 300 | const context: SiblingVisitorContext = {prev: nodes[i - 1], next: nodes[i + 1]}; |
| 301 | const astResult = ast.visit(visitor, context); |
| 302 | if (astResult) { |
| 303 | result.push(astResult); |
| 304 | } |
| 305 | }); |
| 306 | return result; |
| 307 | } |
no test coverage detected