diff -r 4d71292f8732 -r 7a6b53d61ea3 absyntax_utils/search_base_type.cc --- a/absyntax_utils/search_base_type.cc Wed Jan 23 14:30:03 2013 +0000 +++ b/absyntax_utils/search_base_type.cc Wed Jan 23 14:53:14 2013 +0000 @@ -372,7 +372,19 @@ */ void *search_base_type_c::visit(string_type_declaration_c *symbol) {return (void *)symbol;} - + +/******************************************/ +/* B 1.4.3 - Declaration & Initialisation */ +/******************************************/ +/* fb_name_list ':' function_block_type_name ASSIGN structure_initialization */ +/* structure_initialization -> may be NULL ! */ +// SYM_REF3(fb_name_decl_c, fb_name_list, function_block_type_name, structure_initialization) +// NOTE: Although the fb_name_decl_c is in section ( B 1.4.3 - Declaration & Initialisation), it is also acting +// as a datatype declaration, so we need to handle it here! +void *search_base_type_c::visit(fb_name_decl_c *symbol) { + return symbol->function_block_type_name->accept(*this); +} + /*****************************/ /* B 1.5.2 - Function Blocks */