lineInfoObj (and check, expect) now return absolute paths (#8466)

This commit is contained in:
Timothee Cour 2018-07-31 14:02:04 -07:00 • committed by Andreas Rumpf
commit 818d9be311
3 changed files with 4 additions and 2 deletions

View file

@ -425,6 +425,7 @@ proc getColumn(arg: NimNode): int {.magic: "NLineInfo", noSideEffect.}
proc getFile(arg: NimNode): string {.magic: "NLineInfo", noSideEffect.}
proc lineInfoObj*(n: NimNode): LineInfo {.compileTime.} =
## returns ``LineInfo`` of ``n``, using absolute path for ``filename``
result.filename = n.getFile
result.line = n.getLine
result.column = n.getColumn