feat(generator): render constructor as a function
ci/woodpecker/pr/build Pipeline was successful Details
ci/woodpecker/pr/docker-build Pipeline was successful Details
ci/woodpecker/pr/lint Pipeline was successful Details

This commit is contained in:
Aire-One 2022-11-03 19:47:22 +01:00
parent d4f1e55004
commit 4a10957c57
1 changed files with 5 additions and 0 deletions

View File

@ -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)