absyntax_utils/function_call_param_iterator.cc
changeset 258 d7d92b2f87e9
parent 247 560075ece524
child 265 4d222f46f8cc
equal deleted inserted replaced
257:90782e241346 258:d7d92b2f87e9
   493 void *function_call_param_iterator_c::visit(function_invocation_c *symbol) {
   493 void *function_call_param_iterator_c::visit(function_invocation_c *symbol) {
   494   TRACE("function_invocation_c");
   494   TRACE("function_invocation_c");
   495   /* If the syntax parser is working correctly, exactly one of the 
   495   /* If the syntax parser is working correctly, exactly one of the 
   496    * following two symbols will be NULL, while the other is != NULL.
   496    * following two symbols will be NULL, while the other is != NULL.
   497    */
   497    */
   498   if (symbol->   formal_param_list != NULL) return symbol->   formal_param_list->accept(*this);
   498   if (symbol == (function_invocation_c *)f_call) {
   499   if (symbol->nonformal_param_list != NULL) return symbol->nonformal_param_list->accept(*this);
   499 	if (symbol->   formal_param_list != NULL) return symbol->   formal_param_list->accept(*this);
       
   500     if (symbol->nonformal_param_list != NULL) return symbol->nonformal_param_list->accept(*this);
       
   501   }
   500 
   502 
   501   return NULL;
   503   return NULL;
   502 }
   504 }
   503 
   505 
   504 
   506