This commit is contained in:
Egor Aristov 2025-10-27 17:32:28 +03:00
parent 855d742203
commit 7583530c6c
Signed by: egor3f
GPG Key ID: 40482A264AAEC85F

View File

@ -82,6 +82,9 @@ func (t *TypescriptApiParser) parseFile(sourceFilePath string) ([]api.Endpoint,
outer: outer:
for _, jsDocNode := range jsDocNodes { for _, jsDocNode := range jsDocNodes {
jsDoc := jsDocNode.AsJSDoc() jsDoc := jsDocNode.AsJSDoc()
if jsDoc.Tags == nil {
continue
}
for _, tag := range jsDoc.Tags.Nodes { for _, tag := range jsDoc.Tags.Nodes {
if tag.TagName().Text() == TagName { if tag.TagName().Text() == TagName {
for _, com := range tag.Comments() { for _, com := range tag.Comments() {