Implement constructor parameter comment parsing

This commit is contained in:
2024-09-12 17:41:23 +02:00
parent 867c31b6d3
commit a9b0ccb3ee
2 changed files with 24 additions and 4 deletions

View File

@@ -21,8 +21,12 @@
}
-- Define class globally so it's "available" to other files
---@type {{$.ClassName}}
{{range .Constructors -}}
{{range .Params -}}
{{if ne .Comment ""}}---{{.Name}} ({{.Type}}) -> {{.Comment}}{{end}}
{{end -}}
---@overload fun({{range $index, $param := .Params}}{{if $index}}, {{end}}{{$param.Name}}: {{$param.Type}}{{end}}): {{$.ClassName}}
{{end -}}
{{$.ClassName}} = nil