Skip to content

Commit

Permalink
fixes nim-lang#23051; don't generate documentation for exported symbo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored and Graveflo committed Dec 14, 2023
1 parent 7d9271f commit 448448f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compiler/docgen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,8 @@ proc generateDoc*(d: PDoc, n, orig: PNode, config: ConfigRef, docFlags: DocFlags
for it in n: traceDeps(d, it)
of nkExportStmt:
for it in n:
if it.kind == nkSym:
# bug #23051; don't generate documentation for exported symbols again
if it.kind == nkSym and sfExported notin it.sym.flags:
if d.module != nil and d.module == it.sym.owner:
generateDoc(d, it.sym.ast, orig, config, kForceExport)
elif it.sym.ast != nil:
Expand Down

0 comments on commit 448448f

Please sign in to comment.