absyntax_utils/search_var_instance_decl.cc
changeset 205 96d8b6e006f0
parent 202 da1a8186f86f
child 217 f5dfadf5de54
equal deleted inserted replaced
200:fde2d08ebaee 205:96d8b6e006f0
   118   if (res == NULL) {
   118   if (res == NULL) {
   119     current_vartype = none_vt;
   119     current_vartype = none_vt;
   120   }
   120   }
   121   return res;
   121   return res;
   122 }
   122 }
       
   123 
       
   124 /* ENO : BOOL */
       
   125 void *search_var_instance_decl_c::visit(eno_param_declaration_c *symbol) {
       
   126   if (compare_identifiers(symbol->name, search_name) == 0)
       
   127     return symbol->type;
       
   128   return NULL;
       
   129 }
       
   130 
   123 
   131 
   124 /* VAR [CONSTANT] var_init_decl_list END_VAR */
   132 /* VAR [CONSTANT] var_init_decl_list END_VAR */
   125 /* option -> may be NULL ! */
   133 /* option -> may be NULL ! */
   126 /* helper symbol for input_declarations */
   134 /* helper symbol for input_declarations */
   127 void *search_var_instance_decl_c::visit(var_declarations_c *symbol) {
   135 void *search_var_instance_decl_c::visit(var_declarations_c *symbol) {