refactoring: make FileIndex a distinct type; make line information an uint16; fixes #7654

This commit is contained in:
Andreas Rumpf 2018-04-21 08:13:37 +02:00
commit 33b69f0ed0
29 changed files with 196 additions and 311 deletions

View file

@ -2261,7 +2261,7 @@ proc myClose(graph: ModuleGraph; b: PPassContext, n: PNode): PNode =
var m = BModule(b)
if sfMainModule in m.module.flags:
let ext = "js"
let f = if globals.classes.len == 0: m.module.filename
let f = if globals.classes.len == 0: toFilename(FileIndex m.module.position)
else: "nimsystem"
let code = wholeCode(graph, m)
let outfile =