1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:47:44 +00:00

LibWeb/IDL: Make inner type of typedef inherit nullable attribute

This commit is contained in:
Luke Wilde 2022-06-04 03:59:51 +01:00 committed by Linus Groh
parent 85c617fb1c
commit a9a9614b6b

View file

@ -809,7 +809,9 @@ void resolve_typedef(Interface& interface, NonnullRefPtr<Type>& type, HashMap<St
auto it = interface.typedefs.find(type->name);
if (it == interface.typedefs.end())
return;
bool is_nullable = type->nullable;
type = it->value.type;
type->nullable = is_nullable;
if (!extended_attributes)
return;
for (auto& attribute : it->value.extended_attributes)