Fix nim doc ignoring doc comments with implicit returns and implicit conversions (#11173)
This commit is contained in:
parent
d3db189eb4
commit
20e3a39d6c
1 changed files with 1 additions and 1 deletions
|
|
@ -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])
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue