Implement constructor parameter comment parsing
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user