absyntax_utils/search_base_type.cc
changeset 808 7a6b53d61ea3
parent 793 268bf4ca5fa1
child 810 d9c48ad646f1
--- 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 */