3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-08-10 21:20:53 +00:00

fixup! ast: fix import node

This commit is contained in:
Emil J. Tywoniak 2025-08-08 16:19:18 +02:00
parent a5228e5bb0
commit 65b53e6473

View file

@ -833,7 +833,7 @@ package_body_stmt:
import_stmt:
TOK_IMPORT hierarchical_id TOK_PACKAGESEP '*' ';' {
// Create an import node to track package imports
auto import_node = std::make_unique<AstNode>(AST_IMPORT);
auto import_node = std::make_unique<AstNode>(@$, AST_IMPORT);
import_node->str = *$2;
extra->ast_stack.back()->children.push_back(std::move(import_node));
};