stage3/fill_candidate_datatypes.cc
changeset 732 f6a46e29853b
parent 729 3840cb4a623a
child 733 246b4ef78da6
equal deleted inserted replaced
731:151f0b57b4e4 732:f6a46e29853b
  1135 /******************************************/
  1135 /******************************************/
  1136 /* B 1.4.3 - Declaration & Initialisation */
  1136 /* B 1.4.3 - Declaration & Initialisation */
  1137 /******************************************/
  1137 /******************************************/
  1138 
  1138 
  1139 void *fill_candidate_datatypes_c::visit(var1_list_c *symbol) {
  1139 void *fill_candidate_datatypes_c::visit(var1_list_c *symbol) {
  1140 #if 0   /* We don't really need to set the datatype of each variable. We just check the declaration itself! */
       
  1141   for(int i = 0; i < symbol->n; i++) {
  1140   for(int i = 0; i < symbol->n; i++) {
  1142     add_datatype_to_candidate_list(symbol->elements[i], search_varfb_instance_type->get_basetype_decl(symbol->elements[i])); /* will only add if non NULL */
  1141     /* We don't really need to set the datatype of each variable. We just check the declaration itself! 
       
  1142     add_datatype_to_candidate_list(symbol->elements[i], search_varfb_instance_type->get_basetype_decl(symbol->elements[i])); // will only add if non NULL 
       
  1143     */
       
  1144     symbol->elements[i]->accept(*this); // handle the extensible_input_parameter_c, etc...
  1143   }
  1145   }
  1144 #endif
       
  1145   return NULL;
  1146   return NULL;
  1146 }  
  1147 }  
  1147 
  1148 
  1148 
  1149 
  1149 /*  AT direct_variable */
  1150 /*  AT direct_variable */