Fix idetools --def crash.

This commit is contained in:
Dominik Picheta 2014-06-15 20:17:23 +01:00
commit 79b08488f7

View file

@ -322,7 +322,7 @@ proc suggestSym*(n: PNode, s: PSym) {.inline.} =
findUsages(n, s)
if optDef in gGlobalOptions:
findDefinition(n, s)
if isServing:
if isServing and not n.isNil:
addToSourceMap(s, n.info)
proc markUsed(n: PNode, s: PSym) =