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
commit 20e3a39d6c

View file

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