Lines Matching refs:method
361 const ConversionMethod &method) in print_method() argument
363 print_full_method_header(method); in print_method()
368 void plain_cpp_generator::decl_printer::print_method(const Method &method) in print_method() argument
370 print_full_method_header(method); in print_method()
546 FunctionDecl *method) in print_persistent_callback_prototype() argument
549 ParmVarDecl *param = persistent_callback_arg(method); in print_persistent_callback_prototype()
559 callback_name = clazz.persistent_callback_name(method); in print_persistent_callback_prototype()
575 FunctionDecl *method) in print_persistent_callback_setter_prototype() argument
578 ParmVarDecl *param = persistent_callback_arg(method); in print_persistent_callback_setter_prototype()
584 callback_name = clazz.persistent_callback_name(method); in print_persistent_callback_setter_prototype()
601 FunctionDecl *method) in print_persistent_callback_data() argument
604 ParmVarDecl *param = generator.persistent_callback_arg(method); in print_persistent_callback_data()
606 callback_name = clazz.persistent_callback_name(method); in print_persistent_callback_data()
612 print_persistent_callback_prototype(method); in print_persistent_callback_data()
615 print_persistent_callback_setter_prototype(method); in print_persistent_callback_data()
924 void plain_cpp_generator::impl_printer::print_method(const Method &method) in print_method() argument
926 string methodname = method.fd->getName().str(); in print_method()
927 int num_params = method.c_num_params(); in print_method()
930 print_full_method_header(method); in print_method()
932 print_argument_validity_check(method); in print_method()
933 print_save_ctx(method); in print_method()
936 for (const auto &callback : method.callbacks) in print_method()
941 method.print_fd_arg_list(os, 0, num_params, [&] (int i, int arg) { in print_method()
942 method.print_param_use(os, i); in print_method()
946 print_exceptional_execution_check(method); in print_method()
947 if (method.kind == Method::Kind::constructor) { in print_method()
950 print_method_return(method); in print_method()
997 const ConversionMethod &method) in print_method() argument
999 if (method.kind != Method::Kind::member_method) in print_method()
1004 print_full_method_header(method); in print_method()
1008 method.print_call(os, generator.isl_namespace()); in print_method()
1009 method.print_cpp_arg_list(os, [&] (int i, int arg) { in print_method()
1010 ParmVarDecl *param = method.fd->getParamDecl(i); in print_method()
1012 print_arg_conversion(param, method.get_param(i)); in print_method()
1325 const Method &method) in print_argument_validity_check() argument
1333 n = method.num_params(); in print_argument_validity_check()
1336 ParmVarDecl *param = method.fd->getParamDecl(i); in print_argument_validity_check()
1341 is_this = i == 0 && method.kind == Method::Kind::member_method; in print_argument_validity_check()
1382 void plain_cpp_generator::impl_printer::print_save_ctx(const Method &method) in print_save_ctx() argument
1385 ParmVarDecl *param = method.fd->getParamDecl(0); in print_save_ctx()
1390 if (method.kind == Method::Kind::member_method) in print_save_ctx()
1394 n = method.num_params(); in print_save_ctx()
1396 ParmVarDecl *param = method.fd->getParamDecl(i); in print_save_ctx()
1436 const Method &method) in print_persistent_callback_exceptional_execution_check() argument
1438 if (method.kind != Method::Kind::member_method) in print_persistent_callback_exceptional_execution_check()
1441 for (const auto &pcb : method.clazz.persistent_callbacks) { in print_persistent_callback_exceptional_execution_check()
1442 auto callback_name = method.clazz.persistent_callback_name(pcb); in print_persistent_callback_exceptional_execution_check()
1473 const Method &method) in print_exceptional_execution_check() argument
1476 QualType return_type = method.fd->getReturnType(); in print_exceptional_execution_check()
1481 print_persistent_callback_exceptional_execution_check(os, method); in print_exceptional_execution_check()
1483 for (const auto &callback : method.callbacks) { in print_exceptional_execution_check()
1524 std::string plain_cpp_generator::get_return_type(const Method &method) in get_return_type() argument
1526 return type_printer()->return_type(method); in get_return_type()
1539 const Method &method) in print_set_persistent_callback() argument
1541 string fullname = method.fd->getName().str(); in print_set_persistent_callback()
1542 ParmVarDecl *param = persistent_callback_arg(method.fd); in print_set_persistent_callback()
1544 string callback_name = clazz.persistent_callback_name(method.fd); in print_set_persistent_callback()
1547 print_persistent_callback_prototype(method.fd); in print_set_persistent_callback()
1554 print_persistent_callback_setter_prototype(method.fd); in print_set_persistent_callback()
1567 print_full_method_header(method); in print_set_persistent_callback()
1596 const Method &method) in print_method_return() argument
1598 QualType return_type = method.fd->getReturnType(); in print_method_return()
1599 string rettype_str = generator.get_return_type(method); in print_method_return()
1600 bool returns_super = method.is_subclass_mutator(); in print_method_return()
1605 if (is_mutator(clazz, method.fd) && in print_method_return()
1615 if (gives(method.fd)) in print_method_return()
1629 const Method &method) in print_full_method_header() argument
1633 print_method_header(method, *type_printer); in print_full_method_header()