absyntax_utils/function_call_param_iterator.cc
changeset 247 560075ece524
parent 202 da1a8186f86f
child 265 4d222f46f8cc
equal deleted inserted replaced
245:799466384604 247:560075ece524
   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