Fix nim doc ignoring doc comments with implicit returns and implicit conversions (#11173)

This commit is contained in:
nc-x
2019-05-05 02:05:00 +05:30
committed by Andreas Rumpf
parent d3db189eb4
commit 20e3a39d6c

View File

@@ -254,7 +254,7 @@ proc genRecCommentAux(d: PDoc, n: PNode): Rope =
result = genComment(d, n).rope
if result == nil:
if n.kind in {nkStmtList, nkStmtListExpr, nkTypeDef, nkConstDef,
nkObjectTy, nkRefTy, nkPtrTy, nkAsgn, nkFastAsgn}:
nkObjectTy, nkRefTy, nkPtrTy, nkAsgn, nkFastAsgn, nkHiddenStdConv}:
# notin {nkEmpty..nkNilLit, nkEnumTy, nkTupleTy}:
for i in countup(0, len(n)-1):
result = genRecCommentAux(d, n.sons[i])