mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 14:19:48 +00:00
LibWeb/IDL: Make inner type of typedef inherit nullable attribute
This commit is contained in:
parent
85c617fb1c
commit
a9a9614b6b
Notes:
sideshowbarker
2024-07-17 10:16:28 +09:00
Author: https://github.com/Lubrsi
Commit: a9a9614b6b
Pull-request: https://github.com/SerenityOS/serenity/pull/14184
Reviewed-by: https://github.com/Quaker762 ✅
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/sunverwerth
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