idetools improvements (2)
This commit is contained in:
parent
79aaf213d6
commit
f7f6bc2ba3
3 changed files with 3 additions and 1 deletions
|
|
@ -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],
|
appf(result, "$N$1$2", [spaces(indent + 4), debugTree(n.sons[i],
|
||||||
indent + 4, maxRecDepth - 1)])
|
indent + 4, maxRecDepth - 1)])
|
||||||
appf(result, "$N$1]", [istr])
|
appf(result, "$N$1]", [istr])
|
||||||
|
appf(result, ",$N$1\"info\": $2", [istr, lineInfoToStr(n.info)])
|
||||||
appf(result, "$N$1}", [spaces(indent)])
|
appf(result, "$N$1}", [spaces(indent)])
|
||||||
|
|
||||||
proc debug(n: PSym) =
|
proc debug(n: PSym) =
|
||||||
|
|
|
||||||
|
|
@ -274,8 +274,8 @@ proc exprList(p: var TParser, endTok: TTokType, result: PNode) =
|
||||||
eat(p, endTok)
|
eat(p, endTok)
|
||||||
|
|
||||||
proc dotExpr(p: var TParser, a: PNode): PNode =
|
proc dotExpr(p: var TParser, a: PNode): PNode =
|
||||||
getTok(p)
|
|
||||||
var info = p.lex.getlineInfo
|
var info = p.lex.getlineInfo
|
||||||
|
getTok(p)
|
||||||
optInd(p, a)
|
optInd(p, a)
|
||||||
case p.tok.tokType
|
case p.tok.tokType
|
||||||
of tkType:
|
of tkType:
|
||||||
|
|
|
||||||
|
|
@ -218,6 +218,7 @@ proc suggestExpr*(c: PContext, node: PNode) =
|
||||||
var obj = safeSemExpr(c, n.sons[0])
|
var obj = safeSemExpr(c, n.sons[0])
|
||||||
suggestFieldAccess(c, obj, outputs)
|
suggestFieldAccess(c, obj, outputs)
|
||||||
else:
|
else:
|
||||||
|
#debug n
|
||||||
suggestEverything(c, n, outputs)
|
suggestEverything(c, n, outputs)
|
||||||
|
|
||||||
if optContext in gGlobalOptions:
|
if optContext in gGlobalOptions:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue