Fix alias resolution with type declarations

This commit is contained in:
2025-03-28 10:40:14 +01:00
parent d359056354
commit 413f23af4d
4 changed files with 30 additions and 35 deletions

View File

@ -35,9 +35,10 @@ namespace elna::gcc
std::deque<std::unique_ptr<boot::error>> do_semantic_analysis(const char *path,
std::unique_ptr<boot::program>& ast, std::shared_ptr<boot::symbol_table> info_table,
std::shared_ptr<symbol_table> symbols, std::unordered_map<std::string, tree>& unresolved);
tree handle_symbol(const std::string& symbol_name, const boot::type& type,
tree handle_symbol(const std::string& symbol_name, std::shared_ptr<boot::alias_type> reference,
std::shared_ptr<symbol_table> symbols, std::unordered_map<std::string, tree>& unresolved);
class generic_visitor final : public boot::parser_visitor
{
tree current_expression{ NULL_TREE };