mirror of
https://github.com/Hilbis/Hilbish
synced 2025-03-31 02:33:23 +00:00
fix(docgen): make functions that take varargs have the signature
This commit is contained in:
parent
ee4d97ff9a
commit
b712efd278
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user