summaryrefslogtreecommitdiff
path: root/Meta
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2022-02-17 04:41:53 +0330
committerAndreas Kling <kling@serenityos.org>2022-02-17 19:55:27 +0100
commit144ef3eb9f418a69bcad5bad22d459e9b2e283e3 (patch)
tree5ef8d30b90028d7f4be46a592dfaefc619a562ce /Meta
parentc38163494a2e8abbf8c7ebd056c9428f095bd23a (diff)
downloadserenity-144ef3eb9f418a69bcad5bad22d459e9b2e283e3.zip
WrapperGenerator: Don't emit code for imported enumerations
Diffstat (limited to 'Meta')
-rw-r--r--Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
index 3c39341081..df17512353 100644
--- a/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
+++ b/Meta/Lagom/Tools/CodeGenerators/LibWeb/WrapperGenerator/IDLGenerators.cpp
@@ -1408,6 +1408,8 @@ private:
)~~~");
for (auto& it : interface.enumerations) {
+ if (!it.value.is_original_definition)
+ continue;
auto enum_generator = generator.fork();
enum_generator.set("enum.type.name", it.key);
enum_generator.append(R"~~~(