hotfix doc comments for procs without body (#14494)

This commit is contained in:
Timothee Cour 2020-05-29 05:30:36 -07:00 • committed by GitHub
commit e646c16e06
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 99 additions and 5 deletions

View file

@ -642,6 +642,7 @@ proc getAllRunnableExamples(d: PDoc, n: PNode, dest: var Rope) =
var state = rsStart
template fn(n2) =
state = getAllRunnableExamplesImpl(d, n2, dest, state)
dest.add genComment(d, n).rope
case n.kind
of routineDefs:
n = n.getRoutineBody