| 158 | } |
| 159 | |
| 160 | bool Callable::is_valid() const { |
| 161 | if (is_custom()) { |
| 162 | return get_custom()->is_valid(); |
| 163 | } else { |
| 164 | return get_object() && get_object()->has_method(get_method()); |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | Object *Callable::get_object() const { |
| 169 | if (is_null()) { |
no test coverage detected