update

This commit is contained in:
ValKmjolnir
2023-06-18 00:14:21 +08:00
parent 7d8f199c8e
commit 78b7bec786
2 changed files with 38 additions and 2 deletions
+3
View File
@@ -2,6 +2,7 @@
bool ast_visitor::visit_expr(expr* node) {
node->accept(this);
return true;
}
bool ast_visitor::visit_null_expr(null_expr* node) {
@@ -39,10 +40,12 @@ bool ast_visitor::visit_hash_expr(hash_expr* node) {
for(auto i : node->get_members()) {
i->accept(this);
}
return true;
}
bool ast_visitor::visit_hash_pair(hash_pair* node) {
if (node->get_element()) {
node->get_element()->accept(this);
}
return true;
}