From b70158cae73d64fcfef71f43940890e9f6b59efd Mon Sep 17 00:00:00 2001 From: Aire-One Date: Thu, 3 Nov 2022 19:47:22 +0100 Subject: [PATCH] feat(generator): render constructor as a function --- src/awesomewm.d.tl/generator/teal_type_definitions.tl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/awesomewm.d.tl/generator/teal_type_definitions.tl b/src/awesomewm.d.tl/generator/teal_type_definitions.tl index 6f3d899..d9f58c5 100644 --- a/src/awesomewm.d.tl/generator/teal_type_definitions.tl +++ b/src/awesomewm.d.tl/generator/teal_type_definitions.tl @@ -21,7 +21,12 @@ $(snippets.indent(snippets.render_record_functions(module.methods))) # if #module.properties ~= 0 then -- Object properties $(snippets.indent(snippets.render_record_properties(module.properties))) + # end -- /properties +# if #module.constructors ~= 0 then + -- Constructors +$(snippets.indent(snippets.render_record_functions(module.constructors))) +# end -- /constructors end return $(module.record_name)