Skip to content

Commit

Permalink
nodeJs: inject NODOC comment for d.ts generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Giannini authored and Matthew Giannini committed Sep 20, 2024
1 parent 9e00400 commit 90f7657
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/nodeJs/fan/ts/GenTsDecl.fan
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,14 @@ class GenTsDecl
{
doc := node.doc
text := doc?.text?.trimToNull
if (node.isNoDoc)
{
if (!genNoDoc) return
insert := "NODOC API\n"
text = text == null ? insert : "${insert}\n${text}"
}
if (text == null) return

if (node.isNoDoc) return

parser := FandocParser()
parser.silent = true
fandoc := parser.parse(node.toStr, text.in)
Expand Down

0 comments on commit 90f7657

Please sign in to comment.