mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-15 13:28:59 +00:00
read_verilog: set location of AST_TCALL.
Useful for error reporting of $display() arguments, etc.
This commit is contained in:
parent
389b8d0f94
commit
f8e2c955fc
|
@ -2721,6 +2721,7 @@ behavioral_stmt:
|
||||||
ast_stack.push_back(node);
|
ast_stack.push_back(node);
|
||||||
append_attr(node, $1);
|
append_attr(node, $1);
|
||||||
} opt_arg_list ';'{
|
} opt_arg_list ';'{
|
||||||
|
SET_AST_NODE_LOC(ast_stack.back(), @2, @5);
|
||||||
ast_stack.pop_back();
|
ast_stack.pop_back();
|
||||||
} |
|
} |
|
||||||
attr TOK_MSG_TASKS {
|
attr TOK_MSG_TASKS {
|
||||||
|
@ -2731,6 +2732,7 @@ behavioral_stmt:
|
||||||
ast_stack.push_back(node);
|
ast_stack.push_back(node);
|
||||||
append_attr(node, $1);
|
append_attr(node, $1);
|
||||||
} opt_arg_list ';'{
|
} opt_arg_list ';'{
|
||||||
|
SET_AST_NODE_LOC(ast_stack.back(), @2, @5);
|
||||||
ast_stack.pop_back();
|
ast_stack.pop_back();
|
||||||
} |
|
} |
|
||||||
attr TOK_BEGIN {
|
attr TOK_BEGIN {
|
||||||
|
|
Loading…
Reference in a new issue