mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 13:33:22 +00:00
Fix idetools --def crash.
This commit is contained in:
@@ -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) =
|
||||
|
||||
Reference in New Issue
Block a user