stage1_2/create_enumtype_conversion_functions.cc
changeset 958 7474d2cd1d6e
parent 765 d15f13bff9c6
child 1041 56ebe2a31b5b
--- a/stage1_2/create_enumtype_conversion_functions.cc	Sun Nov 30 12:49:42 2014 +0000
+++ b/stage1_2/create_enumtype_conversion_functions.cc	Sat Dec 06 19:11:32 2014 +0000
@@ -76,11 +76,12 @@
     return singleton->text;
 }
 
-
-void *create_enumtype_conversion_functions_c::visit(identifier_c *symbol) {
-    currentToken = symbol->value;
-    return NULL;
-}
+/* As the name of derived datatypes and POUs are still stored as identifiers in the respective datatype and POU declaration,  */
+/* only the indintifier_c visitor should be necessary!                                                                        */
+void *create_enumtype_conversion_functions_c::visit(                 identifier_c *symbol) {currentToken = symbol->value; return NULL;}
+void *create_enumtype_conversion_functions_c::visit(         poutype_identifier_c *symbol) {ERROR; return NULL;}
+void *create_enumtype_conversion_functions_c::visit(derived_datatype_identifier_c *symbol) {ERROR; return NULL;}
+
 
 /**********************/
 /* B 1.3 - Data types */