mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:47:34 +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);
|
auto it = interface.typedefs.find(type->name);
|
||||||
if (it == interface.typedefs.end())
|
if (it == interface.typedefs.end())
|
||||||
return;
|
return;
|
||||||
|
bool is_nullable = type->nullable;
|
||||||
type = it->value.type;
|
type = it->value.type;
|
||||||
|
type->nullable = is_nullable;
|
||||||
if (!extended_attributes)
|
if (!extended_attributes)
|
||||||
return;
|
return;
|
||||||
for (auto& attribute : it->value.extended_attributes)
|
for (auto& attribute : it->value.extended_attributes)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue