mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 01:44:37 +00:00
idetools improvements (2)
This commit is contained in:
@@ -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) =
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user