absyntax_utils/function_param_iterator.cc
changeset 805 b737cfc92614
parent 662 b1b11dd09a54
child 810 d9c48ad646f1
equal deleted inserted replaced
798:d21e598b0b75 805:b737cfc92614
   425    * variables, because if the desired parameter is not in the
   425    * variables, because if the desired parameter is not in the
   426    * variable list we will be analysing, the current_param_XXXX
   426    * variable list we will be analysing, the current_param_XXXX
   427    * variables will get overwritten when we visit the next
   427    * variables will get overwritten when we visit the next
   428    * var1_init_decl_c list!
   428    * var1_init_decl_c list!
   429    */
   429    */
   430   current_param_default_value = symbol->value;
   430   current_param_default_value = spec_init_sperator_c::get_init(symbol->type_decl);
   431   current_param_type = symbol->type;
   431   current_param_type = spec_init_sperator_c::get_spec(symbol->type_decl);
   432 
   432   
   433   void *res = handle_single_param(symbol->name);
   433   void *res = handle_single_param(symbol->name);
   434   
   434   
   435     /* If we have found the parameter we will be returning, we set the en_eno_param_implicit to TRUE if implicitly defined */
   435     /* If we have found the parameter we will be returning, we set the en_eno_param_implicit to TRUE if implicitly defined */
   436   if (res != NULL) symbol->method->accept(*this);
   436   if (res != NULL) symbol->method->accept(*this);
   437   
   437