passed local tests
This commit is contained in:
@ -257,6 +257,7 @@ std::any Visitor::visitClass_constructor(MXParser::Class_constructorContext *con
|
||||
auto cur_scope = std::make_shared<FunctionScope>();
|
||||
cur_scope->parent = nodetype_stk.back().second.get();
|
||||
construct_func->current_scope = cur_scope;
|
||||
construct_func->func_name = context->ID()->getText();
|
||||
cur_scope->schema.return_type = "void";
|
||||
nodetype_stk.push_back({ASTNodeType::Constructor, construct_func->current_scope});
|
||||
|
||||
|
Reference in New Issue
Block a user