feat(generator): render constructor as a function
This commit is contained in:
parent
cfa32b7199
commit
b70158cae7
|
@ -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