doc2 improvements
This commit is contained in:
parent
2d8138768a
commit
869a5aa90d
10 changed files with 27 additions and 22 deletions
|
|
@ -703,8 +703,11 @@ proc transform(c: PTransf, n: PNode): PTransNode =
|
|||
of nkConstSection:
|
||||
# do not replace ``const c = 3`` with ``const 3 = 3``
|
||||
return transformConstSection(c, n)
|
||||
of nkTypeSection:
|
||||
# no need to transform type sections:
|
||||
return PTransNode(n)
|
||||
of nkVarSection, nkLetSection:
|
||||
if c.inlining > 0:
|
||||
if c.inlining > 0:
|
||||
# we need to copy the variables for multiple yield statements:
|
||||
result = transformVarSection(c, n)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue