Skip to content

Commit

Permalink
fixes #23051; don't generate documentation for exported symbols again
Browse files Browse the repository at this point in the history
  • Loading branch information
ringabout authored Dec 14, 2023
1 parent 1b7b0d6 commit f2e21c7
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 @@ -1400,7 +1400,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 f2e21c7

Please sign in to comment.