| 301 | } |
| 302 | |
| 303 | const Object::VTable::MethodItem* Object::findMethod(const VTable& vtable, std::string_view methodName) |
| 304 | { |
| 305 | auto it = std::lower_bound(vtable.methods.begin(), vtable.methods.end(), methodName, [](const auto& methodItem, const auto& methodName) |
| 306 | { |
| 307 | return methodItem.name < methodName; |
| 308 | }); |
| 309 | |
| 310 | return it != vtable.methods.end() && it->name == methodName ? &*it : nullptr; |
| 311 | } |
| 312 | |
| 313 | const Object::VTable::PropertyItem* Object::findProperty(const VTable& vtable, std::string_view propertyName) |
| 314 | { |
nothing calls this directly
no outgoing calls
no test coverage detected