| 289 | } |
| 290 | |
| 291 | void common_peg_ast_arena::visit(common_peg_ast_id id, const common_peg_ast_visitor & visitor) const { |
| 292 | if (id == COMMON_PEG_INVALID_AST_ID) { |
| 293 | return; |
| 294 | } |
| 295 | const auto & node = get(id); |
| 296 | visitor(node); |
| 297 | for (const auto & child : node.children) { |
| 298 | visit(child, visitor); |
| 299 | } |
| 300 | } |
| 301 | |
| 302 | void common_peg_ast_arena::visit(const common_peg_parse_result & result, const common_peg_ast_visitor & visitor) const { |
| 303 | for (const auto & node : result.nodes) { |
no outgoing calls
no test coverage detected