diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index 7b16edb796..33c31c71d1 100755 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -449,6 +449,7 @@ proc debugTree(n: PNode, indent: int, maxRecDepth: int): PRope = appf(result, "$N$1$2", [spaces(indent + 4), debugTree(n.sons[i], indent + 4, maxRecDepth - 1)]) appf(result, "$N$1]", [istr]) + appf(result, ",$N$1\"info\": $2", [istr, lineInfoToStr(n.info)]) appf(result, "$N$1}", [spaces(indent)]) proc debug(n: PSym) = diff --git a/compiler/parser.nim b/compiler/parser.nim index f78f073258..33a2b6aaec 100755 --- a/compiler/parser.nim +++ b/compiler/parser.nim @@ -274,8 +274,8 @@ proc exprList(p: var TParser, endTok: TTokType, result: PNode) = eat(p, endTok) proc dotExpr(p: var TParser, a: PNode): PNode = - getTok(p) var info = p.lex.getlineInfo + getTok(p) optInd(p, a) case p.tok.tokType of tkType: diff --git a/compiler/suggest.nim b/compiler/suggest.nim index 10d50a6b70..fb8a74ef5f 100755 --- a/compiler/suggest.nim +++ b/compiler/suggest.nim @@ -218,6 +218,7 @@ proc suggestExpr*(c: PContext, node: PNode) = var obj = safeSemExpr(c, n.sons[0]) suggestFieldAccess(c, obj, outputs) else: + #debug n suggestEverything(c, n, outputs) if optContext in gGlobalOptions: