This commit is contained in:
Araq 2019-05-21 01:11:43 +02:00 • committed by Andreas Rumpf
commit 90e882d55b
4 changed files with 55 additions and 53 deletions

View file

@ -1517,6 +1517,7 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
internalError(g.config, n.info, "rnimsyn.gsub(" & $n.kind & ')')
proc renderTree*(n: PNode, renderFlags: TRenderFlags = {}): string =
if n == nil: return "<nil tree>"
var g: TSrcGen
initSrcGen(g, renderFlags, newPartialConfigRef())
# do not indent the initial statement list so that