| 43 | #include "method_bind.h" |
| 44 | |
| 45 | uint32_t MethodBind::get_hash() const { |
| 46 | MethodInfo mi; |
| 47 | mi.return_val = get_return_info(); |
| 48 | mi.flags = get_hint_flags(); |
| 49 | for (int i = 0; i < get_argument_count(); i++) { |
| 50 | mi.arguments.push_back(get_argument_info(i)); |
| 51 | } |
| 52 | mi.default_arguments = default_arguments; |
| 53 | |
| 54 | return mi.get_compatibility_hash(); |
| 55 | } |
| 56 | |
| 57 | PropertyInfo MethodBind::get_argument_info(int p_argument) const { |
| 58 | ERR_FAIL_INDEX_V(p_argument, get_argument_count(), PropertyInfo()); |
no test coverage detected