From a9a9614b6bb0ce9d90401bd2e963bd6cff02fb15 Mon Sep 17 00:00:00 2001 From: Luke Wilde Date: Sat, 4 Jun 2022 03:59:51 +0100 Subject: [PATCH] LibWeb/IDL: Make inner type of typedef inherit nullable attribute --- .../Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLParser.cpp | 2 ++ 1 file changed, 2 insertions(+) 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, HashMapname); 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)