feat(generator): render constructor as a function
This commit is contained in:
parent
d4f1e55004
commit
4a10957c57
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue