equal
deleted
inserted
replaced
338 } |
338 } |
339 |
339 |
340 /* name_list ':' function_block_type_name ASSIGN structure_initialization */ |
340 /* name_list ':' function_block_type_name ASSIGN structure_initialization */ |
341 /* structure_initialization -> may be NULL ! */ |
341 /* structure_initialization -> may be NULL ! */ |
342 void *search_var_instance_decl_c::visit(fb_name_decl_c *symbol) { |
342 void *search_var_instance_decl_c::visit(fb_name_decl_c *symbol) { |
343 current_type_decl = symbol->function_block_type_name; |
343 // TODO: The following line is wrong! It should be |
|
344 // current_type_decl = symbol->fb_spec_init; |
|
345 // However, this change will require a check of all callers, to see if they would handle this correctly. |
|
346 // For now, just keep what we have had historically, and seems to be working. |
|
347 current_type_decl = spec_init_sperator_c::get_spec(symbol->fb_spec_init); |
344 return symbol->fb_name_list->accept(*this); |
348 return symbol->fb_name_list->accept(*this); |
345 } |
349 } |
346 |
350 |
347 /* name_list ',' fb_name */ |
351 /* name_list ',' fb_name */ |
348 void *search_var_instance_decl_c::visit(fb_name_list_c *symbol) { |
352 void *search_var_instance_decl_c::visit(fb_name_list_c *symbol) { |