change parameter::name to std::string

This commit is contained in:
ValKmjolnir
2023-06-26 19:35:21 +08:00
parent bc95fcab43
commit d475eaa8f3
6 changed files with 22 additions and 38 deletions
+3 -7
View File
@@ -116,18 +116,14 @@ bool ast_dumper::visit_code_block(code_block* node) {
bool ast_dumper::visit_parameter(parameter* node) {
dump_indent();
std::cout << "parameter";
std::cout << "parameter " << node->get_parameter_name();
std::cout << format_location(node->get_location());
push_indent();
if (!node->get_default_value()) {
set_last();
}
node->get_parameter_name()->accept(this);
if (node->get_default_value()) {
push_indent();
set_last();
node->get_default_value()->accept(this);
pop_indent();
}
pop_indent();
return true;
}