diff options
author | Neelesh Chandola <neelesh.chandola@outlook.com> | 2018-12-19 00:21:14 +0530 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-12-18 19:51:14 +0100 |
commit | 2acefee0449b440b109aad9e5c263305dcd10f96 (patch) | |
tree | e9943f4b545124e5c7a99330938eafc9668a83b1 /compiler/importer.nim | |
parent | 8f4befe3680b1d2ce38d9b5e482a5436b49f122f (diff) | |
download | Nim-2acefee0449b440b109aad9e5c263305dcd10f96.tar.gz |
Nimsuggest now shows gotodef for y in `from x import y` (#10023)
Diffstat (limited to 'compiler/importer.nim')
-rw-r--r-- | compiler/importer.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/importer.nim b/compiler/importer.nim index 131b1ad8a..118d26d80 100644 --- a/compiler/importer.nim +++ b/compiler/importer.nim @@ -92,6 +92,7 @@ proc importSymbol(c: PContext, n: PNode, fromMod: PSym) = rawImportSymbol(c, e) e = nextIdentIter(it, fromMod.tab) else: rawImportSymbol(c, s) + suggestSym(c.config, n.info, s, c.graph.usageSym, false) proc importAllSymbolsExcept(c: PContext, fromMod: PSym, exceptSet: IntSet) = var i: TTabIter |