nimpretty: first version that seems useful for others to test it
This commit is contained in:
parent
bf5d619a52
commit
a1bd4a6cbd
6 changed files with 239 additions and 6 deletions
|
|
@ -1453,11 +1453,12 @@ proc `$`*(n: PNode): string = n.renderTree
|
|||
|
||||
proc renderModule*(n: PNode, infile, outfile: string,
|
||||
renderFlags: TRenderFlags = {};
|
||||
fid = FileIndex(-1)) =
|
||||
fid = FileIndex(-1);
|
||||
conf: ConfigRef = nil) =
|
||||
var
|
||||
f: File
|
||||
g: TSrcGen
|
||||
initSrcGen(g, renderFlags, newPartialConfigRef())
|
||||
initSrcGen(g, renderFlags, conf)
|
||||
g.fid = fid
|
||||
for i in countup(0, sonsLen(n) - 1):
|
||||
gsub(g, n.sons[i])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue