31
31
#define mts (x, y ) stack_expr(x).move_to_sub((irept &)stack_expr(y))
32
32
#define swapop (x, y ) stack_expr(x).operands().swap(stack_expr(y).operands())
33
33
#define addswap (x, y, z ) stack_expr(x).add(y).swap(stack_expr(z))
34
- #define push_scope (name , separator, kind ) PARSER.scopes.push_scope(name , separator, kind)
34
+ #define push_scope (base_name , separator, kind ) PARSER.scopes.push_scope(base_name , separator, kind)
35
35
#define pop_scope () PARSER.scopes.pop_scope();
36
36
37
37
int yyveriloglex ();
@@ -1457,7 +1457,7 @@ type_declaration:
1457
1457
data_type any_identifier ' ;'
1458
1458
{ $$ = $2 ;
1459
1459
// add to the scope as a type name
1460
- PARSER.scopes .add_name (stack_expr ($4 ).get (ID_identifier ), " " , verilog_scopet::TYPEDEF);
1460
+ PARSER.scopes .add_name (stack_expr ($4 ).get (ID_base_name ), " " , verilog_scopet::TYPEDEF);
1461
1461
addswap ($$, ID_type, $3 );
1462
1462
stack_expr ($4 ).id (ID_declarator);
1463
1463
mto ($$, $4 );
@@ -2162,7 +2162,7 @@ function_declaration: TOK_FUNCTION lifetime_opt function_body_declaration
2162
2162
function_body_declaration:
2163
2163
function_data_type_or_implicit
2164
2164
function_identifier
2165
- { push_scope (stack_expr ($2 ).get (ID_identifier ), " ." , verilog_scopet::FUNCTION); }
2165
+ { push_scope (stack_expr ($2 ).get (ID_base_name ), " ." , verilog_scopet::FUNCTION); }
2166
2166
' ;'
2167
2167
tf_item_declaration_brace statement
2168
2168
TOK_ENDFUNCTION
@@ -2176,7 +2176,7 @@ function_body_declaration:
2176
2176
}
2177
2177
| function_data_type_or_implicit
2178
2178
function_identifier
2179
- { push_scope (stack_expr ($2 ).get (ID_identifier ), " ." , verilog_scopet::FUNCTION); }
2179
+ { push_scope (stack_expr ($2 ).get (ID_base_name ), " ." , verilog_scopet::FUNCTION); }
2180
2180
' (' tf_port_list_opt ' )' ' ;'
2181
2181
tf_item_declaration_brace statement
2182
2182
TOK_ENDFUNCTION
@@ -2216,7 +2216,7 @@ function_prototype: TOK_FUNCTION data_type_or_void function_identifier
2216
2216
2217
2217
task_declaration:
2218
2218
TOK_TASK task_identifier
2219
- { push_scope (stack_expr ($2 ).get (ID_identifier ), " ." , verilog_scopet::TASK); }
2219
+ { push_scope (stack_expr ($2 ).get (ID_base_name ), " ." , verilog_scopet::TASK); }
2220
2220
' ;'
2221
2221
tf_item_declaration_brace
2222
2222
statement_or_null TOK_ENDTASK
@@ -2227,7 +2227,7 @@ task_declaration:
2227
2227
pop_scope ();
2228
2228
}
2229
2229
| TOK_TASK task_identifier
2230
- { push_scope (stack_expr ($2 ).get (ID_identifier ), " ." , verilog_scopet::TASK); }
2230
+ { push_scope (stack_expr ($2 ).get (ID_base_name ), " ." , verilog_scopet::TASK); }
2231
2231
' (' tf_port_list_opt ' )' ' ;'
2232
2232
tf_item_declaration_brace
2233
2233
statement_or_null TOK_ENDTASK
0 commit comments