(visitor: WhitespaceVisitor, nodes: html.Node[])
| 343 | } |
| 344 | |
| 345 | export function visitAllWithSiblings(visitor: WhitespaceVisitor, nodes: html.Node[]): any[] { |
| 346 | const result: any[] = []; |
| 347 | |
| 348 | nodes.forEach((ast, i) => { |
| 349 | const context: SiblingVisitorContext = {prev: nodes[i - 1], next: nodes[i + 1]}; |
| 350 | const astResult = ast.visit(visitor, context); |
| 351 | if (astResult) { |
| 352 | result.push(astResult); |
| 353 | } |
| 354 | }); |
| 355 | return result; |
| 356 | } |
no test coverage detected
searching dependent graphs…