Преглед на файлове

LibWeb/IDL: Make inner type of typedef inherit nullable attribute

Luke Wilde преди 3 години
родител
ревизия
a9a9614b6b
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLParser.cpp

+ 2 - 0
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)