diff options
author | Araq <rumpf_a@web.de> | 2020-07-10 09:45:41 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2020-07-10 13:36:02 +0200 |
commit | 78513a9204005955b8b433e2a73599be7fe12304 (patch) | |
tree | 6836ce969f268db8b6621f7c72a58d4f2cbc9211 /compiler | |
parent | bf51cee4311f5715c2eac675e95fb3d4f2909404 (diff) | |
download | Nim-78513a9204005955b8b433e2a73599be7fe12304.tar.gz |
renderer.nim: more obvious debug output
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/renderer.nim | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim index 4b8c78cc7..449ee4504 100644 --- a/compiler/renderer.nim +++ b/compiler/renderer.nim @@ -1016,11 +1016,21 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) = put(g, tkRStrLit, '\"' & replace(n[1].strVal, "\"", "\"\"") & '\"') else: gsub(g, n, 1) - of nkHiddenStdConv, nkHiddenSubConv, nkHiddenCallConv: + of nkHiddenStdConv, nkHiddenSubConv: if n.len >= 2: gsub(g, n[1]) else: put(g, tkSymbol, "(wrong conv)") + of nkHiddenCallConv: + if renderIds in g.flags: + accentedName(g, n[0]) + put(g, tkParLe, "(") + gcomma(g, n, 1) + put(g, tkParRi, ")") + elif n.len >= 2: + gsub(g, n[1]) + else: + put(g, tkSymbol, "(wrong conv)") of nkCast: put(g, tkCast, "cast") put(g, tkBracketLe, "[") |