mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 10:37:17 +02:00
LibWeb/IDL: Make inner type of typedef inherit nullable attribute
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 10:16:28 +09:00
Author: https://github.com/Lubrsi Commit: https://github.com/SerenityOS/serenity/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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user