Line | Branch | Exec | Source |
---|---|---|---|
1 | // Copyright (c) 2021-2025 ChilliBits. All rights reserved. | ||
2 | |||
3 | #include "AbstractASTVisitor.h" | ||
4 | |||
5 | #include <ast/ASTNodes.h> | ||
6 | |||
7 | namespace spice::compiler { | ||
8 | |||
9 | 2678804 | std::any AbstractASTVisitor::visit(ASTNode *node) { return node->accept(this); } | |
10 | |||
11 | 1170840 | std::any AbstractASTVisitor::visitChildren(ASTNode *node) { | |
12 |
3/4✓ Branch 0 (2→3) taken 1170840 times.
✗ Branch 1 (2→20) not taken.
✓ Branch 2 (12→5) taken 1214489 times.
✓ Branch 3 (12→13) taken 1170766 times.
|
2385255 | for (ASTNode *child : node->getChildren()) { |
13 |
1/2✗ Branch 0 (6→7) not taken.
✓ Branch 1 (6→8) taken 1214489 times.
|
1214489 | assert(child != nullptr); |
14 |
2/2✓ Branch 0 (8→9) taken 1214415 times.
✓ Branch 1 (8→17) taken 74 times.
|
1214489 | child->accept(this); |
15 | 1170840 | } | |
16 |
1/2✓ Branch 0 (14→15) taken 1170766 times.
✗ Branch 1 (14→21) not taken.
|
1170766 | return nullptr; |
17 | } | ||
18 | |||
19 | } // namespace spice::compiler | ||
20 |