Diff for /parser3/src/classes/reflection.C between versions 1.84 and 1.87

version 1.84, 2017/02/15 17:05:21 version 1.87, 2020/12/15 17:10:29
Line 1 Line 1
 /** @file  /** @file
         Parser: @b reflection parser class.          Parser: @b reflection parser class.
   
         Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com)          Copyright (c) 2001-2020 Art. Lebedev Studio (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
Line 66  static void _create(Request& r, MethodPa Line 66  static void _create(Request& r, MethodPa
                         valid_options++;                          valid_options++;
                         params_hash=vparams_hash->as_hash("arguments");                          params_hash=vparams_hash->as_hash("arguments");
                         if(params.count()>1)                          if(params.count()>1)
                                 throw Exception(PARSER_RUNTIME, 0, "agruments should not be specified as hash and as create params");                                  throw Exception(PARSER_RUNTIME, 0, "arguments should not be specified as hash and as create params");
                 }                  }
                 if(valid_options!=options->count())                  if(valid_options!=options->count())
                         throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION);                          throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION);
Line 222  static void _methods(Request& r, MethodP Line 222  static void _methods(Request& r, MethodP
   
         VHash& result=*new VHash;          VHash& result=*new VHash;
   
   #ifdef HASH_ORDER
         if(reverse){          if(reverse){
                 for(HashStringMethod::ReverseIterator i(vclass->get_methods()); i; i.prev()){                  for(HashStringMethod::ReverseIterator i(vclass->get_methods()); i; i.prev()){
                         result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser));                          result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser));
                 }                  }
         } else {          } else {
   #else
           {
   #endif
                 for(HashStringMethod::Iterator i(vclass->get_methods()); i; i.next()){                  for(HashStringMethod::Iterator i(vclass->get_methods()); i; i.next()){
                         result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser));                          result.hash().put(i.key(), new VString(i.value()->native_code ? method_type_native : method_type_parser));
                 }                  }

Removed from v.1.84  
changed lines
  Added in v.1.87


E-mail: