fix(docgen): make functions that take varargs have the signature

ctrl-delete
TorchedSammy 2022-04-04 21:34:46 -04:00
parent ee4d97ff9a
commit b712efd278
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,9 @@ func main() {
if emmyType == "@param" { if emmyType == "@param" {
em.Params = append(em.Params, emmyLinePieces[1]) em.Params = append(em.Params, emmyLinePieces[1])
} }
if emmyType == "@vararg" {
em.Params = append(em.Params, "...") // add vararg
}
em.Docs = append(em.Docs, d) em.Docs = append(em.Docs, d)
} else { } else {
funcdoc = append(funcdoc, d) funcdoc = append(funcdoc, d)
@ -111,6 +114,9 @@ func main() {
if emmyType == "@param" { if emmyType == "@param" {
em.Params = append(em.Params, emmyLinePieces[1]) em.Params = append(em.Params, emmyLinePieces[1])
} }
if emmyType == "@vararg" {
em.Params = append(em.Params, "...") // add vararg
}
em.Docs = append(em.Docs, d) em.Docs = append(em.Docs, d)
} else { } else {
funcdoc = append(funcdoc, d) funcdoc = append(funcdoc, d)