From f2e21c720abb4a044db1c7d0181fa0b9338d7626 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 14 Dec 2023 11:45:21 +0000 Subject: [PATCH] fixes #23051; don't generate documentation for exported symbols again --- compiler/docgen.nim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/compiler/docgen.nim b/compiler/docgen.nim index 29eeced9be67d..5cdfda7d41390 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -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: