mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:57:42 +00:00
LibWeb/IDL: Make inner type of typedef inherit nullable attribute
This commit is contained in:
parent
85c617fb1c
commit
a9a9614b6b
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue