stage3/narrow_candidate_datatypes.cc
changeset 808 7a6b53d61ea3
parent 807 4d71292f8732
child 810 d9c48ad646f1
--- a/stage3/narrow_candidate_datatypes.cc	Wed Jan 23 14:30:03 2013 +0000
+++ b/stage3/narrow_candidate_datatypes.cc	Wed Jan 23 14:53:14 2013 +0000
@@ -718,6 +718,14 @@
 }
 
 
+/* 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 *narrow_candidate_datatypes_c::visit(fb_name_decl_c *symbol) {return narrow_spec_init(symbol, symbol->function_block_type_name, symbol->structure_initialization);}
+
+
 /************************************/
 /* B 1.5 Program organization units */
 /************************************/