mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-28 17:41:45 +00:00
preparations of making compiler/msgs.nim free of global variables
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user