mirror of
https://github.com/nim-lang/Nim.git
synced 2026-07-22 00:41:28 +00:00
revert line info generation change; produces worse results for other cases
This commit is contained in:
@@ -192,8 +192,8 @@ proc freshLineInfo(p: BProc; info: TLineInfo): bool =
|
||||
|
||||
proc genLineDir(p: BProc, t: PNode) =
|
||||
var tt = t
|
||||
while tt.kind in {nkStmtListExpr}+nkCallKinds:
|
||||
tt = tt.lastSon
|
||||
#while tt.kind in {nkStmtListExpr}+nkCallKinds:
|
||||
# tt = tt.lastSon
|
||||
let line = tt.info.safeLineNm
|
||||
|
||||
if optEmbedOrigSrc in gGlobalOptions:
|
||||
|
||||
Reference in New Issue
Block a user