preparations of making compiler/msgs.nim free of global variables

This commit is contained in:
Andreas Rumpf
2018-05-17 15:21:22 +02:00
parent 2a7fc84c86
commit bf6c2c5ccf
38 changed files with 179 additions and 183 deletions

View File

@@ -148,7 +148,7 @@ proc makeInstPair*(s: PSym, inst: PInstantiation): TInstantiationPair =
proc filename*(c: PContext): string =
# the module's filename
return toFilename(FileIndex c.module.position)
return toFilename(c.config, FileIndex c.module.position)
proc scopeDepth*(c: PContext): int {.inline.} =
result = if c.currentScope != nil: c.currentScope.depthLevel