(visitors, node)
| 454 | } |
| 455 | |
| 456 | visitSync(visitors, node) { |
| 457 | for (let [plugin, visitor] of visitors) { |
| 458 | this.result.lastPlugin = plugin |
| 459 | let promise |
| 460 | try { |
| 461 | promise = visitor(node, this.helpers) |
| 462 | } catch (e) { |
| 463 | throw this.handleError(e, node.proxyOf) |
| 464 | } |
| 465 | if (node.type !== 'root' && node.type !== 'document' && !node.parent) { |
| 466 | return true |
| 467 | } |
| 468 | if (isPromise(promise)) { |
| 469 | throw this.getAsyncError() |
| 470 | } |
| 471 | } |
| 472 | } |
| 473 | |
| 474 | visitTick(stack) { |
| 475 | let visit = stack[stack.length - 1] |
no test coverage detected