LibIDL: Fix bug where Type::is_json doesn't look at parent interface
This commit is contained in:
parent
43825acc79
commit
2e1d6f624d
Notes:
sideshowbarker
2024-07-17 02:14:39 +09:00
Author: https://github.com/bplaat Commit: https://github.com/SerenityOS/serenity/commit/2e1d6f624d Pull-request: https://github.com/SerenityOS/serenity/pull/20691
1 changed files with 2 additions and 2 deletions
|
@ -277,10 +277,10 @@ bool Type::is_json(Interface const& interface) const
|
|||
if (to_json_iterator != current_interface_for_to_json->functions.end())
|
||||
return true;
|
||||
|
||||
if (interface.parent_name.is_empty())
|
||||
if (current_interface_for_to_json->parent_name.is_empty())
|
||||
break;
|
||||
|
||||
auto imported_interface_iterator = interface.imported_modules.find_if([¤t_interface_for_to_json](IDL::Interface const& imported_interface) {
|
||||
auto imported_interface_iterator = current_interface_for_to_json->imported_modules.find_if([¤t_interface_for_to_json](IDL::Interface const& imported_interface) {
|
||||
return imported_interface.name == current_interface_for_to_json->parent_name;
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue