new dependency tracking for nimsuggest

This commit is contained in:
Araq 2016-11-05 01:19:23 +01:00
commit 9e6fb3f696
21 changed files with 284 additions and 393 deletions

View file

@ -233,7 +233,7 @@ proc suggestFieldAccess(c: PContext, n: PNode, outputs: var int) =
# error: no known module name:
typ = nil
else:
let m = gImportModule(c.module, fullpath.fileInfoIdx, c.cache)
let m = gImportModule(c.graph, c.module, fullpath.fileInfoIdx, c.cache)
if m == nil: typ = nil
else:
for it in items(n.sym.tab):