idetools improvements (2)

This commit is contained in:
Araq
2012-08-03 20:31:49 +02:00
parent 79aaf213d6
commit f7f6bc2ba3
3 changed files with 3 additions and 1 deletions

View File

@@ -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) =

View File

@@ -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:

View File

@@ -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: