summaryrefslogtreecommitdiff
path: root/Meta/Lagom/Tools
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-06-04 03:59:51 +0100
committerLinus Groh <mail@linusgroh.de>2022-06-13 21:45:27 +0100
commita9a9614b6bb0ce9d90401bd2e963bd6cff02fb15 (patch)
treeb0f5aa65984b0cb31c9a83210895f154371746e4 /Meta/Lagom/Tools
parent85c617fb1c101f457c7f64014b33edd22cd131a1 (diff)
downloadserenity-a9a9614b6bb0ce9d90401bd2e963bd6cff02fb15.zip
LibWeb/IDL: Make inner type of typedef inherit nullable attribute
Diffstat (limited to 'Meta/Lagom/Tools')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLParser.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLParser.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLParser.cpp
index 623df632c6..15083ce0d9 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLParser.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLParser.cpp
@@ -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)