diff options
author | Araq <rumpf_a@web.de> | 2020-09-23 10:41:23 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2020-09-23 10:41:33 +0200 |
commit | 94c8d53a03c437d1601fa75aecb5b84bb694711f (patch) | |
tree | ec6a3202d4132b991be37ff9455a255004f063ac /compiler | |
parent | e2d80b15a6963f4a1ea64c32d7aeec9fcb862260 (diff) | |
download | Nim-94c8d53a03c437d1601fa75aecb5b84bb694711f.tar.gz |
'koch temp' bugfix
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/docgen.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/docgen.nim b/compiler/docgen.nim index ff3a540be..c2ce12e50 100644 --- a/compiler/docgen.nim +++ b/compiler/docgen.nim @@ -992,7 +992,7 @@ proc documentEffect(cache: IdentCache; n, x: PNode, effectType: TSpecialWord, id # set the type so that the following analysis doesn't screw up: effects[i].typ = real[i].typ - result = newTreeI(nkExprColonExpr, n.info, + result = newTreeI(nkExprColonExpr, n.info, newIdentNode(getIdent(cache, specialWords[effectType]), n.info), effects) proc documentWriteEffect(cache: IdentCache; n: PNode; flag: TSymFlag; pragmaName: string): PNode = @@ -1005,7 +1005,7 @@ proc documentWriteEffect(cache: IdentCache; n: PNode; flag: TSymFlag; pragmaName effects.add params[i] if effects.len > 0: - result = newTreeI(nkExprColonExpr, n.info, + result = newTreeI(nkExprColonExpr, n.info, newIdentNode(getIdent(cache, pragmaName), n.info), effects) proc documentRaises*(cache: IdentCache; n: PNode) = |