removed dead code
This commit is contained in:
parent
fe30ec83e2
commit
e9a197e704
1 changed files with 2 additions and 9 deletions
|
|
@ -306,14 +306,6 @@ proc safeSemExpr*(c: PContext, n: PNode): PNode =
|
||||||
except ERecoverableError:
|
except ERecoverableError:
|
||||||
result = ast.emptyNode
|
result = ast.emptyNode
|
||||||
|
|
||||||
proc fuzzySemCheck(c: PContext, n: PNode): PNode =
|
|
||||||
# use only for idetools support!
|
|
||||||
result = safeSemExpr(c, n)
|
|
||||||
if result == nil or result.kind == nkEmpty:
|
|
||||||
result = newNodeIT(n.kind, n.info, errorType(c))
|
|
||||||
if n.kind notin {nkNone..nkNilLit}:
|
|
||||||
for i in 0 .. < sonsLen(n): result.addSon(fuzzySemCheck(c, n.sons[i]))
|
|
||||||
|
|
||||||
proc suggestExpr*(c: PContext, node: PNode) =
|
proc suggestExpr*(c: PContext, node: PNode) =
|
||||||
if nfIsCursor notin node.flags:
|
if nfIsCursor notin node.flags:
|
||||||
if gTrackPos.line < 0: return
|
if gTrackPos.line < 0: return
|
||||||
|
|
@ -329,9 +321,10 @@ proc suggestExpr*(c: PContext, node: PNode) =
|
||||||
if n == nil: n = node
|
if n == nil: n = node
|
||||||
if n.kind == nkDotExpr:
|
if n.kind == nkDotExpr:
|
||||||
var obj = safeSemExpr(c, n.sons[0])
|
var obj = safeSemExpr(c, n.sons[0])
|
||||||
|
suggestFieldAccess(c, obj, outputs)
|
||||||
if optIdeDebug in gGlobalOptions:
|
if optIdeDebug in gGlobalOptions:
|
||||||
echo "expression ", renderTree(obj), " has type ", typeToString(obj.typ)
|
echo "expression ", renderTree(obj), " has type ", typeToString(obj.typ)
|
||||||
suggestFieldAccess(c, obj, outputs)
|
#writeStackTrace()
|
||||||
else:
|
else:
|
||||||
suggestEverything(c, n, outputs)
|
suggestEverything(c, n, outputs)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue